AI-Assisted Quantum Development

Build and compile quantum circuits for real hardware

Follow a 30-qubit MaxCut experiment from a graph in Python to a circuit compiled for IBM Fez. Compare circuit depth and two-qubit gate count as you add QAOA layers.

Download the notebook
The connected MaxCut graph. Each of the 30 numbered vertices has three neighbours.
MaxCut instance · 30 vertices · 45 unit-weight edges

Build three QAOA circuits

Each vertex maps to one qubit. Every cost layer adds a ZZ rotation for each edge, and the mixer rotates each qubit around X. All three circuits share the same graph and the same angles for their common layers.

The notebook includes the exact edge list and angles. Change a cell and rerun it to try another graph or layer count.

Notebook promptBuild MaxCut QAOA circuits on this 30-vertex graph at p = 1, 3 and 5. Compile all three for IBM Fez and compare their two-qubit costs.

def maxcut_circuit(p):
    circuit = QuantumCircuit(30)
    circuit.h(range(30))
    for gamma, beta in zip(gammas[:p], betas[:p]):
        for a, b in edges:
            circuit.rzz(gamma, a, b)
        circuit.rx(2 * beta, range(30))
    return circuit

circuits = {p: maxcut_circuit(p) for p in (1, 3, 5)}

Compare compilation on IBM Fez

Weylattice and standard Qiskit compiled the same three circuits against the archived 156-qubit Fez target at optimization level 2. Two-qubit depth counts sequential layers of two-qubit operations. Two-qubit gate count is the total number of those operations.

Measured circuit resources after compilation
QAOA layers (p)Circuit depthTwo-qubit depthTwo-qubit gates
WeylatticeQiskitWeylatticeQiskitWeylatticeQiskit
1781143962219231
3273284116152699690
547346417724911441149

At five QAOA layers, Weylattice produced a two-qubit depth of 177 and Qiskit produced 249. Counting all gates in the depth calculation gives 473 and 464, respectively.

Compiler run on the 9 November 2026 Fez target snapshot. Qiskit 2.4.2, Qiskit IBM Transpiler 0.18.0. Each entry records one compilation. Hardware execution is a separate step.

Inspect a published hardware job

For a separate hardware example, open this teleportation tomography record from IBM Fez. Its job ID, physical layout and calibration describe that published experiment. Select a qubit or coupler to inspect it.

IBM Quantum · Published job

Teleportation tomography

d8ne35032u0s73fcb6sg

Status
Completed
Executed
14 Jun 2026
Physical qubits
Q0, Q1, Q2
Shots per circuit
8,192
Which of the physical connections in this job had the highest calibrated CZ error?

Q1–Q2 had the highest reported CZ error in this job’s layout, at 3.62%. The calibration was recorded on 14 Jun 2026 · 16:47 UTC.

IBM FezHeron r2 · 156 qubits · 176 couplers
Physical coupling map
Q0–Q1Q1–Q2Q2–Q3Q3–Q4Q3–Q16Q4–Q5Q5–Q6Q6–Q7Q7–Q8Q7–Q17Q8–Q9Q9–Q10Q10–Q11Q11–Q12Q11–Q18Q12–Q13Q13–Q14Q14–Q15Q15–Q19Q16–Q23Q17–Q27Q18–Q31Q19–Q35Q20–Q21Q21–Q22Q21–Q36Q22–Q23Q23–Q24Q24–Q25Q25–Q26Q25–Q37Q26–Q27Q27–Q28Q28–Q29Q29–Q30Q29–Q38Q30–Q31Q31–Q32Q32–Q33Q33–Q34Q33–Q39Q34–Q35Q36–Q41Q37–Q45Q38–Q49Q39–Q53Q40–Q41Q41–Q42Q42–Q43Q43–Q44Q43–Q56Q44–Q45Q45–Q46Q46–Q47Q47–Q48Q47–Q57Q48–Q49Q49–Q50Q50–Q51Q51–Q52Q51–Q58Q52–Q53Q53–Q54Q54–Q55Q55–Q59Q56–Q63Q57–Q67Q58–Q71Q59–Q75Q60–Q61Q61–Q62Q61–Q76Q62–Q63Q63–Q64Q64–Q65Q65–Q66Q65–Q77Q66–Q67Q67–Q68Q68–Q69Q69–Q70Q69–Q78Q70–Q71Q71–Q72Q72–Q73Q73–Q74Q73–Q79Q74–Q75Q76–Q81Q77–Q85Q78–Q89Q79–Q93Q80–Q81Q81–Q82Q82–Q83Q83–Q84Q83–Q96Q84–Q85Q85–Q86Q86–Q87Q87–Q88Q87–Q97Q88–Q89Q89–Q90Q90–Q91Q91–Q92Q91–Q98Q92–Q93Q93–Q94Q94–Q95Q95–Q99Q96–Q103Q97–Q107Q98–Q111Q99–Q115Q100–Q101Q101–Q102Q101–Q116Q102–Q103Q103–Q104Q104–Q105Q105–Q106Q105–Q117Q106–Q107Q107–Q108Q108–Q109Q109–Q110Q109–Q118Q110–Q111Q111–Q112Q112–Q113Q113–Q114Q113–Q119Q114–Q115Q116–Q121Q117–Q125Q118–Q129Q119–Q133Q120–Q121Q121–Q122Q122–Q123Q123–Q124Q123–Q136Q124–Q125Q125–Q126Q126–Q127Q127–Q128Q127–Q137Q128–Q129Q129–Q130Q130–Q131Q131–Q132Q131–Q138Q132–Q133Q133–Q134Q134–Q135Q135–Q139Q136–Q143Q137–Q147Q138–Q151Q139–Q155Q140–Q141Q141–Q142Q142–Q143Q143–Q144Q144–Q145Q145–Q146Q146–Q147Q147–Q148Q148–Q149Q149–Q150Q150–Q151Q151–Q152Q152–Q153Q153–Q154Q154–Q155Physical qubit Q00Physical qubit Q11Physical qubit Q22Physical qubit Q33Physical qubit Q44Physical qubit Q55Physical qubit Q66Physical qubit Q77Physical qubit Q88Physical qubit Q99Physical qubit Q1010Physical qubit Q1111Physical qubit Q1212Physical qubit Q1313Physical qubit Q1414Physical qubit Q1515Physical qubit Q1616Physical qubit Q1717Physical qubit Q1818Physical qubit Q1919Physical qubit Q2020Physical qubit Q2121Physical qubit Q2222Physical qubit Q2323Physical qubit Q2424Physical qubit Q2525Physical qubit Q2626Physical qubit Q2727Physical qubit Q2828Physical qubit Q2929Physical qubit Q3030Physical qubit Q3131Physical qubit Q3232Physical qubit Q3333Physical qubit Q3434Physical qubit Q3535Physical qubit Q3636Physical qubit Q3737Physical qubit Q3838Physical qubit Q3939Physical qubit Q4040Physical qubit Q4141Physical qubit Q4242Physical qubit Q4343Physical qubit Q4444Physical qubit Q4545Physical qubit Q4646Physical qubit Q4747Physical qubit Q4848Physical qubit Q4949Physical qubit Q5050Physical qubit Q5151Physical qubit Q5252Physical qubit Q5353Physical qubit Q5454Physical qubit Q5555Physical qubit Q5656Physical qubit Q5757Physical qubit Q5858Physical qubit Q5959Physical qubit Q6060Physical qubit Q6161Physical qubit Q6262Physical qubit Q6363Physical qubit Q6464Physical qubit Q6565Physical qubit Q6666Physical qubit Q6767Physical qubit Q6868Physical qubit Q6969Physical qubit Q7070Physical qubit Q7171Physical qubit Q7272Physical qubit Q7373Physical qubit Q7474Physical qubit Q7575Physical qubit Q7676Physical qubit Q7777Physical qubit Q7878Physical qubit Q7979Physical qubit Q8080Physical qubit Q8181Physical qubit Q8282Physical qubit Q8383Physical qubit Q8484Physical qubit Q8585Physical qubit Q8686Physical qubit Q8787Physical qubit Q8888Physical qubit Q8989Physical qubit Q9090Physical qubit Q9191Physical qubit Q9292Physical qubit Q9393Physical qubit Q9494Physical qubit Q9595Physical qubit Q9696Physical qubit Q9797Physical qubit Q9898Physical qubit Q9999Physical qubit Q100100Physical qubit Q101101Physical qubit Q102102Physical qubit Q103103Physical qubit Q104104Physical qubit Q105105Physical qubit Q106106Physical qubit Q107107Physical qubit Q108108Physical qubit Q109109Physical qubit Q110110Physical qubit Q111111Physical qubit Q112112Physical qubit Q113113Physical qubit Q114114Physical qubit Q115115Physical qubit Q116116Physical qubit Q117117Physical qubit Q118118Physical qubit Q119119Physical qubit Q120120Physical qubit Q121121Physical qubit Q122122Physical qubit Q123123Physical qubit Q124124Physical qubit Q125125Physical qubit Q126126Physical qubit Q127127Physical qubit Q128128Physical qubit Q129129Physical qubit Q130130Physical qubit Q131131Physical qubit Q132132Physical qubit Q133133Physical qubit Q134134Physical qubit Q135135Physical qubit Q136136Physical qubit Q137137Physical qubit Q138138Physical qubit Q139139Physical qubit Q140140Physical qubit Q141141Physical qubit Q142142Physical qubit Q143143Physical qubit Q144144Physical qubit Q145145Physical qubit Q146146Physical qubit Q147147Physical qubit Q148148Physical qubit Q149149Physical qubit Q150150Physical qubit Q151151Physical qubit Q152152Physical qubit Q153153Physical qubit Q154154Physical qubit Q155155
Job layout
Job calibration · 14 Jun 2026 · 16:47 UTC
T1
52.0 µs
T2
51.7 µs
Readout error
1.56%
Data sources
Device geometry and calibration from IBM’s archived Fez snapshot in Qiskit IBM Runtime 0.46.1. Apache 2.0.
Job records and run-specific measurements adapted from Rai & Farhat, Scientific Reports (2026). CC BY 4.0.

Solve the same graph with Hilvarian

Which vertices should go on each side to maximize the weight of the edges crossing the cut? Hilvarian takes the edge list as input and returns a candidate partition.

On this graph, Hilvarian’s classical tabu search found a partition crossing 39 of 45 edges. Each edge has weight one. The notebook includes both the partition check and a cell to prepare a new Hilvarian solver plan.

Explore Hilvarian

Candidate cut

39 / 45 edges

Partition A0, 2, 3, 4, 6, 7, 11, 12, 14, 15, 16, 17, 23, 28, 29

Partition B1, 5, 8, 9, 10, 13, 18, 19, 20, 21, 22, 24, 25, 26, 27

Download graph and partition