← Atlas

Algorithms · QAOA

The Quantum Approximate Optimization Algorithm

A quantum algorithm that produces approximate solutions for combinatorial optimization problems, tunable by a positive integer p.

Attested & literatureUpdated

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
  • Wires3
  • Record typeLiterature reference
  • Tunable parameterA positive integer p
  • Circuit depthLinear in p times (at worst) the number of constraints
  • Papers1
  1. prepare on objective
  2. cost(γ) on objective, ansatz
  3. mixer(β) on ansatz, readout

References

  • A Quantum Approximate Optimization Algorithm

    Edward Farhi, Jeffrey Goldstone, Sam Gutmann · 2014

    Primary source, and the only source read for this record. It introduces the algorithm, fixes the meaning of p, states the locality bound on the gates and the linear growth of circuit depth, separates the fixed-p and growing-p regimes, and proves the 0.6924 ratio for p = 1 on 3-regular graphs. Consult it for the form of the cost and mixer operators, for how the fixed-p classical preprocessing selects the angles, for the strategy proposed when p grows with the input size, and for the 2-regular analysis — none of which the abstract states. It formulates MaxCut and no other problem.

Attested & literature
  • Peer-reviewed paper
Method
Curation only. The title, the three authors, the submission date (14 Nov 2014, v1 and the only version), the report number MIT-CTP/4610 and the complete abstract were read from https://arxiv.org/abs/1411.4028 and every span this record quotes was compared character-for-character against that page. No circuit was constructed, compiled, simulated or run, no value of p was chosen, and no instance of any problem was encoded or solved.
Result
Pass · the parameter p, the locality bound on the gates, the linear depth growth, the two regimes for fixed and growing p, and the 0.6924 ratio are each stated by that abstract in the terms repeated here.
Caveat
This is a literature record for the method, and its most important limit is about what the paper does NOT contain. Farhi, Goldstone and Gutmann study one problem — MaxCut on regular graphs, analysed on 2-regular and 3-regular graphs for fixed p. The paper does not formulate portfolio optimisation, facility location, vehicle routing, electric-grid dispatch, integer linear programming, kidney exchange, colourable induced subgraphs, k-bounded vertex cover, minimum dominating sets, rectangle packing, network traffic, radio access networks or resiliency planning, and no reader should take the thirteen demonstrations declared against this record as evidence that it does; see the basis recorded for each in ./classiq-coverage.ts. Nor does it supply the machinery those demonstrations sit on: the modelling layer that turns a constrained program into a QUBO, the penalty weights that carry the constraints, the classical outer optimiser, and the CVaR objective some of them substitute for the expectation value are all later work by other authors. The 0.6924 figure is an approximation ratio, not a running time and not a speedup: the abstract states no comparison with any classical algorithm, and this record makes none. It holds for p = 1 on 3-regular graphs and for nothing else quoted here. The statement that quality improves as p is increased is the paper's, about its own algorithm, and carries no claim about the cost of finding good parameters at any p. Finally, the alternating-operator ansatz that generalises this construction to constrained problems is a different paper by different authors and is not cited here.
A Quantum Approximate Optimization Algorithm ↗
Kind
curated reference
Reviewed by
Leona Quantum curation pass
License
Citation metadata only; source publication terms apply
qaoacombinatorial optimizationvariationalmaxcutapproximation ratio

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