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 notebookBuild 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.
| QAOA layers (p) | Circuit depth | Two-qubit depth | Two-qubit gates | |||
|---|---|---|---|---|---|---|
| Weylattice | Qiskit | Weylattice | Qiskit | Weylattice | Qiskit | |
| 1 | 78 | 114 | 39 | 62 | 219 | 231 |
| 3 | 273 | 284 | 116 | 152 | 699 | 690 |
| 5 | 473 | 464 | 177 | 249 | 1144 | 1149 |
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.
- T1
- 52.0 µs
- T2
- 51.7 µs
- Readout error
- 1.56%
Data sources
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 HilvarianCandidate cut
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