← Atlas

Basic circuits · QAOA / MaxCut

QAOA ring layer benchmark · 16 qubits

A fixed-angle p=1 MaxCut-style QAOA layer on a cycle graph, including cost and mixer blocks.

Strong empiricalUpdated

View frozen graph

A small worked example, computed in your browser. It is not a result from this record's papers.

QAOA, p=1, MaxCut on a 4-cycle

4 qubits on a 4-cycle (edges 0-1, 1-2, 2-3, 3-0), one QAOA layer with gamma=pi/8, beta=3*pi/8.

q0q1q2q3Step 1 of 2 · Hadamard layer(4)Hadamard layer(4)Step 2 of 2 · QAOA MaxCut layerQAOA MaxCut layer

Step 1 of 2 · Hadamard layer(4)

Probability of each outcome after this step

  • 00006%
  • 00016%
  • 00106%
  • 00116%
  • 01006%
  • 01016%
  • 01106%
  • 01116%
  • 8 more outcomes50%
  1. Starts from the uniform superposition over all 16 possible cuts.

    Probability spreads from 1 outcome to 16. All 16 are equally likely.

  2. The cost layer (RZZ(2*gamma) on each of the 4 edges) rewards cuts that separate connected qubits, then the mixer (RX(2*beta) on every qubit) lets amplitude move between cuts.

    Probability moves between the same 16 outcomes. Up: 0101 6.3% → 26.6%, 1010 6.3% → 26.6%. Down: 0001 6.3% → 1.6%. This is the step that entangles the qubits: from here on no single qubit has a state of its own, only the register as a whole does.

Readout 0101 and 1010 are the two optimal cuts of a 4-cycle (alternating around the ring); at these angles measuring the register returns one of them clearly more often than any other cut.

Open in Studio
  • Steps80
  • Wires16
  • Qubits16
  • Operations80
  • Framework exports7
  • Papers1
  1. H on q0
  2. H on q1
  3. H on q2
  4. H on q3
  5. H on q4
  6. H on q5
  7. H on q6
  8. H on q7
  9. H on q8
  10. H on q9
  11. H on q10
  12. H on q11
  13. H on q12
  14. H on q13
  15. H on q14
  16. H on q15
  17. CX on q0, q1
  18. RZ on q1
  19. CX on q0, q1
  20. CX on q1, q2
  21. RZ on q2
  22. CX on q1, q2
  23. CX on q2, q3
  24. RZ on q3
  25. CX on q2, q3
  26. CX on q3, q4
  27. RZ on q4
  28. CX on q3, q4
  29. CX on q4, q5
  30. RZ on q5
  31. CX on q4, q5
  32. CX on q5, q6
  33. RZ on q6
  34. CX on q5, q6
  35. CX on q6, q7
  36. RZ on q7
  37. CX on q6, q7
  38. CX on q7, q8
  39. RZ on q8
  40. CX on q7, q8
  41. CX on q8, q9
  42. RZ on q9
  43. CX on q8, q9
  44. CX on q9, q10
  45. RZ on q10
  46. CX on q9, q10
  47. CX on q10, q11
  48. RZ on q11
  49. CX on q10, q11
  50. CX on q11, q12
  51. RZ on q12
  52. CX on q11, q12
  53. CX on q12, q13
  54. RZ on q13
  55. CX on q12, q13
  56. CX on q13, q14
  57. RZ on q14
  58. CX on q13, q14
  59. CX on q14, q15
  60. RZ on q15
  61. CX on q14, q15
  62. CX on q15, q0
  63. RZ on q0
  64. CX on q15, q0
  65. RX on q0
  66. RX on q1
  67. RX on q2
  68. RX on q3
  69. RX on q4
  70. RX on q5
  71. RX on q6
  72. RX on q7
  73. RX on q8
  74. RX on q9
  75. RX on q10
  76. RX on q11
  77. RX on q12
  78. RX on q13
  79. RX on q14
  80. RX on q15

References

Strong empirical
  • Verified by construction
  • Peer-reviewed paper
Method
Deterministic portable-gate construction plus catalog schema validation
Result
Pass · 16 qubits and 80 pre-measurement operations emit non-empty Qiskit, PennyLane, Cirq, CUDA-Q, Amazon Braket, OpenQASM 3.0, and PyQuil source.
Caveat
This is a parameterized Leona Quantum benchmark scaffold informed by the cited suite, not an upstream benchmark file or a hardware result.
MQT Bench: Benchmarking Software and Design Automation Tools for Quantum Computing ↗
Kind
curated reference
Reviewed by
Leona Quantum curation pass
License
Citation metadata; Leona Quantum-authored scaffold
QAOAMaxCutcycle graph16 qubitsseven-framework export

Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.