← Atlas

Algorithms · QAOA

QAOA MaxCut on a 5-node ring

A p=1 QAOA circuit with a classical MaxCut comparison and reproducible simulation evidence.

Strong empiricalUpdated

Open on the mapView 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
  • Steps3
  • Wires5
  • Qubits5
  • Depth14 gates
  • Shots4096
  • Papers2

Nobody has reviewed this record for gaps yet.

References

Strong empirical
  • Statistical re-execution
  • Peer-reviewed paper
Method
Sampled distribution compared with the reference simulator using total variation distance.
Result
Pass · TVD 0.0088 is below the 0.05 acceptance threshold.
A Quantum Approximate Optimization Algorithm ↗
Kind
curated reference
Contributor
LeonaQ public reference set
Reviewed by
LeonaQ literature curation pass
License
CC BY 4.0-compatible reference metadata
optimizationmaxcutqaoasimulation
  • Portfolio and scheduling heuristics
  • Routing and graph partitioning
  • Constraint-aware resource allocation

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