Introduces QAOA for approximate combinatorial optimization and analyzes MaxCut at fixed depth.
arxiv.org/abs/1411.4028 ↗QAOA MaxCut on a 5-node ring
A p=1 QAOA circuit with a classical MaxCut comparison and reproducible simulation evidence.
Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.
This record moves from primitives to a small optimization workload: the objective, circuit, sampling boundary, and acceptance metric stay visible together.
Circuit & simulation
What this takes and returns
TakesNothingWhat joins here
No input port at this edge: the record publishes no gate sequence and no register, so there is nothing here to read one off — and unlike a declared hole, nothing has been recorded about what belongs here.
Nothing in the Atlas meets this end.
ReturnsNothingWhat joins here
No output port at this edge: the record publishes no gate sequence and no register, so there is nothing here to read one off — and unlike a declared hole, nothing has been recorded about what belongs here.
Nothing in the Atlas meets this end.
This record publishes no gate sequence and no register, so there is nothing here to read an interface off. Absent rather than empty. See all 152 →
Where this sits
This record is named by the layer graph at:
- Alternate a cost unitary with a mixer, p times Method
Takes An Ising or QUBO operator, diagonal in the computational basis, whose extremal eigenvector encodes the problem's solution — given, for QAOA, as a sum of clause terms over bits and clauses; given, for adiabatic evolution, as the final Hamiltonian of an interpolation whose starting point has an easily-constructed ground state. Neither method is told how the operator was built, or by which encoding. Returns A bit string read off the computational basis — the assignment — together with the objective value it achieves, or, for the adiabatic route, the stated promise that this string is (with fidelity approaching 1, for a long enough evolution time) the true minimiser. Neither route returns an energy with an error bar; both return a string.
How it works
QAOA at depth prepares , alternating a problem (cost) unitary and a mixer unitary. For MaxCut on a graph , the cost Hamiltonian is , whose expectation counts cut edges, and the mixer is , whose exponential is a product of independent -rotations letting the state explore bitstrings. For this record's 5-node ring, sums five such terms around the cycle. The reported acceptance is empirical, not a matrix identity: the sampled 4096-shot distribution (seed 42) is compared with the reference simulator using total variation distance, giving against a threshold — evidence that the sampled circuit matches its own noiseless simulation, not a claim that finds the graph's true maximum cut.
Implementation
from qiskit import QuantumCircuit
qc = QuantumCircuit(5, 5)
qc.h(range(5))
# p=1 cost and mixer layers
for edge in ((0, 1), (1, 2), (2, 3), (3, 4), (4, 0)):
qc.cx(*edge)
qc.measure(range(5), range(5))
FINAL_CIRCUIT = qcThe public snippet keeps the graph structure readable; the verified run stores the full parameterized circuit.
Quantum vs classical
Classical baseline
Exact enumeration for the five-node fixture; Goemans–Williamson or MILP for larger MaxCut instances.
Quantum claim
The circuit samples candidate cuts; it does not replace the classical optimizer or certify a global optimum by itself.
How to compare
Report approximation ratio, success probability, optimizer cost, shots, and wall-clock time against the same instance and budget.
Declared gaps
Nobody has reviewed this record for gaps yet.
Literature & references
Analyzes parameter setting and the ring-of-disagrees instance used by this record.
doi.org/10.1103/physreva.97.022304 ↗