Skip to main content
KetQat

Appearance

Algorithm · intermediate

Quantum approximate optimization algorithm (QAOA)

A depth-p variational circuit that alternates evolution under a diagonal cost Hamiltonian and a transverse-field mixer, starting from the uniform superposition, with 2p angles tuned classically to optimize the expected cost; measuring yields candidate solutions.

ExpositionMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Input. The cost Hamiltonian CC, the mixer B=∑j=1nXjB = \sum_{j=1}^n X_j, a depth p≥1p \ge 1.

Procedure.

  1. For angles γ⃗=(γ1,…,γp)\vec\gamma = (\gamma_1, \dots, \gamma_p) and β⃗=(β1,…,βp)\vec\beta = (\beta_1, \dots, \beta_p) prepare

    ∣γ⃗,β⃗⟩=e−iβpBe−iγpC⋯e−iβ1Be−iγ1C ∣+⟩⊗n.\ket{\vec\gamma, \vec\beta} = e^{-i\beta_p B} e^{-i\gamma_p C} \cdots e^{-i\beta_1 B} e^{-i\gamma_1 C}\, \ket{+}^{\otimes n} .

    For an Ising CC, e−iγCe^{-i\gamma C} is a product of two-qubit ZZZZ rotations and single-qubit ZZ rotations, and e−iβBe^{-i\beta B} is a layer of Rx(2β)R_x(2\beta) gates.

  2. Estimate Fp(γ⃗,β⃗)=⟨γ⃗,β⃗∣C∣γ⃗,β⃗⟩F_p(\vec\gamma, \vec\beta) = \bra{\vec\gamma, \vec\beta} C \ket{\vec\gamma, \vec\beta} by sampling, and let a classical optimizer update the 2p2p angles to increase it.

  3. Measure the final state in the computational basis several times and keep the best string found.

Guarantee. Each sample xx has expected cost FpF_p, and the best of several samples is at least as good in expectation. FpF_p is non-decreasing in pp at the optimum, since setting γp+1=βp+1=0\gamma_{p+1} = \beta_{p+1} = 0 recovers depth pp. As p→∞p \to \infty the optimum of FpF_p tends to max⁡xC(x)\max_x C(x), because a Trotterized adiabatic path from the ground state of −B-B to the maximum of CC is one choice of angles (Farhi, Goldstone and Gutmann, preprint); the depth needed for this argument grows with the inverse spectral gap of that path. No efficient bound on the depth or on the classical optimization is part of the algorithm.

Hadfield et al. generalize the mixer so that it preserves a feasible subspace (for example an XYXY mixer that conserves Hamming weight), avoiding penalty terms. Zhou et al. study optimal angles numerically and find patterns that give heuristic initializations at larger pp.

Holds when

  • A cost function C:{0,1}n→RC : \{0,1\}^n \to \R to be maximized, given as a diagonal Hamiltonian that is a sum of few-body ZZ terms, so that e−iγCe^{-i\gamma C} is an efficient circuit.
Related
Stated in

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. Edward Farhi, Jeffrey Goldstone, Sam Gutmann (2014). A quantum approximate optimization algorithm. arXiv:1411.4028
  2. Stuart Hadfield, Zhihui Wang, Bryan O'Gorman, … Rupak Biswas (2019). From the quantum approximate optimization algorithm to a quantum alternating operator ansatz. Algorithms 12(2), 34. doi:10.3390/a12020034arXiv:1709.03489
  3. Leo Zhou, Sheng-Tao Wang, Soonwon Choi, … Mikhail D. Lukin (2020). Quantum approximate optimization algorithm: performance, mechanism, and implementation on near-term devices. Physical Review X 10, 021067. doi:10.1103/PhysRevX.10.021067arXiv:1812.01041

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Circuit, monotonicity M_p >= M_{p-1} and lim M_p = max C compared with Farhi-Goldstone-Gutmann arXiv:1411.4028 eqs. (9)-(10) and the adiabatic argument there; R_x(2 beta) gate identity checked; XY Hamming-weight-preserving mixers compared with Hadfield et al. arXiv:1709.03489; heuristic initialization strategies compared with Zhou et al. arXiv:1812.01041 abstract and introduction; reference metadata (titles, authors, DOIs, venues) confirmed via the arXiv API.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e

Current revision 2bf3131b34639014. Source file knowledge/records/algorithm/quantum-approximate-optimization-algorithm.md in the content repository (readable there once it is public).