Overview
Combinatorial optimization asks for a bit string that minimizes (or maximizes) a cost . Quantum algorithms approach it by writing as a diagonal Hamiltonian whose ground state is the optimum and then using quantum dynamics to reach low-energy states. Three routes dominate: the quantum approximate optimization algorithm (QAOA) of Farhi, Goldstone and Gutmann, a shallow variational circuit; adiabatic evolution and annealing (quantum annealing), which slowly deform an easy Hamiltonian into the cost Hamiltonian; and Grover-type search, which gives a provable quadratic speed-up for unstructured search over candidate solutions.
Nothing in quantum mechanics is known to make NP-hard problems efficiently solvable, and it is widely believed that it does not. The realistic questions are whether a quantum method gives a better approximation ratio, a better scaling of the time to reach a given quality, or a polynomial speed-up over the best classical method on some family of instances. This page separates what is proved, what is supported by numerics, and what is conjecture.
Intuition
Imagine the cost as a landscape over all bit strings. A classical local search walks downhill and gets stuck in valleys. QAOA prepares a superposition over all strings and applies two kinds of operations in turn: one that writes the cost of each string into its phase, and one that mixes neighbouring strings so that the phases interfere. With well-chosen angles, constructive interference concentrates amplitude on good strings.
At small depth , each qubit is influenced only by qubits within steps in the problem graph, so QAOA behaves like a local algorithm. This makes it analysable (expectation values can be computed from small neighbourhoods) and also limits it: classical local algorithms can match or beat it, and problems whose good solutions have global structure defeat it. At large depth QAOA can imitate slow adiabatic evolution, which inherits the difficulty of small spectral gaps.
Prerequisites
Variational quantum algorithms for the hybrid loop, Grover's algorithm for search-based speed-ups, and approximation ratios from classical optimization theory. The lesson QAOA for MaxCut works through the circuit.
Mathematical Definitions
Let be a cost function. Its cost Hamiltonian is the diagonal operator on qubits; its ground states are spanned by the minimizers of and its ground energy is . Since , every such operator is a real polynomial in .
When is quadratic, for a real matrix (a QUBO instance; linear terms sit on the diagonal because ), substituting with spins gives the Ising form
with the constant . The two forms describe the same problem; they differ only in variables. For MaxCut on a graph one maximizes the number of cut edges, , equivalently minimizes . Constraints are usually added as penalty terms that raise the energy of infeasible strings; Lucas collects Ising encodings of many NP-hard problems.
Input. The cost Hamiltonian , the mixer , a depth .
Procedure.
-
For angles and prepare
For an Ising , is a product of two-qubit rotations and single-qubit rotations, and is a layer of gates.
-
Estimate by sampling, and let a classical optimizer update the angles to increase it.
-
Measure the final state in the computational basis several times and keep the best string found.
Guarantee. Each sample has expected cost , and the best of several samples is at least as good in expectation. is non-decreasing in at the optimum, since setting recovers depth . As the optimum of tends to , because a Trotterized adiabatic path from the ground state of to the maximum of 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 mixer that conserves Hamming weight), avoiding penalty terms. Zhou et al. study optimal angles numerically and find patterns that give heuristic initializations at larger .
- A cost function to be maximized, given as a diagonal Hamiltonian that is a sum of few-body terms, so that is an efficient circuit.
For a maximization problem, an algorithm has approximation ratio on a class of instances if its output (in expectation, for randomized or quantum algorithms) has cost at least on every instance of the class.
Theorems
Depth one on MaxCut
Let and be the degrees of and . Then
For a -regular triangle-free graph every edge gives , maximized at and . For the maximum is per edge. Since no cut exceeds , depth-one QAOA then achieves an expected cut of at least times the maximum cut.
The value for 3-regular graphs is the depth-one guarantee of Farhi, Goldstone and Gutmann (preprint), who obtain it for all 3-regular graphs by treating the local subgraphs that contain triangles separately; the general formula for arbitrary graphs, with a correction term counting the triangles through , is due to Wang, Hadfield, Jiang and Rieffel.
- MaxCut cost with on a simple graph ; depth-one QAOA state with .
- The edge lies in no triangle, that is and have no common neighbour.
Proof · Proof of the depth-one QAOA MaxCut formula
It suffices to compute , since . Write , where equals up to a global phase.
Mixer layer. gives , using . With and ,
Cost layer. commutes with every . If an operator on qubit anticommutes with , then . Writing for the neighbours of and expanding :
- , whose expectation in is .
- . In , and , and the state is a product, so a Pauli string has non-zero expectation only if it is a product of 's and identities. Every appears in exactly one factor, so the cosine must be taken there; at the sine must be taken to cancel . The surviving term is , using . Its expectation is .
- By symmetry .
- commutes with and anticommutes with () and (), so . Because is in no triangle, the two neighbour sets are disjoint, so each occurs in a single factor and must come with a cosine. What remains is a multiple of , whose expectation is .
Assembling. and , so .
Optimization for -regular graphs. The -dependence is maximized by . For on , vanishes only at , a maximum. For : , , and , giving .
The calculation is the triangle-free case of Wang, Hadfield, Jiang and Rieffel; the 3-regular optimum reproduces the value of Farhi, Goldstone and Gutmann.
The classical comparison is the semidefinite-programming algorithm of Goemans and Williamson, with ratio about on all graphs; under the Unique Games Conjecture no polynomial-time algorithm beats that ratio on all graphs (Khot, Kindler, Mossel and O'Donnell). Depth-one QAOA is well below it. Hastings (preprint) shows that one step of a local classical algorithm outperforms depth-one QAOA on every triangle-free MaxCut instance.
Locality and its consequences
In at depth , conjugating backwards through the circuit spreads it only along edges of the problem graph, one step per layer, so the value depends only on the subgraph within distance of the edge (Farhi, Goldstone and Gutmann). Two obstruction results use this:
- Bravyi, Kliesch, Koenig and Tang prove that, because QAOA is local and respects the spin-flip symmetry, the Goemans–Williamson algorithm outperforms QAOA at every constant depth on certain MaxCut instances.
- Farhi, Gamarnik and Gutmann (preprint) use the overlap gap property of near-optimal independent sets in random sparse graphs to show that, when is below a degree-dependent constant times , QAOA cannot find independent sets larger than about of the optimum for large degree. The bound says nothing once exceeds that logarithmic scale.
Grover-type speed-ups
There is a quantum algorithm that, for every , outputs an index with with probability at least after queries (Dürr and Høyer, preprint).
The algorithm keeps a threshold index , initially uniformly random. It repeatedly runs the variant of Grover search for an unknown number of marked items (Boyer, Brassard, Høyer and Tapp) on the set and replaces by the index found whenever its value is smaller. Because each improvement is a uniformly random element of the improving set, the expected number of improvements is logarithmic, and the expected total cost of the searches sums to ; running for a fixed budget and repeating times gives the stated success probability.
Applied to optimization over (), the method finds an exact optimum with evaluations of the cost function instead of the of exhaustive search. The search lower bound shows that no quantum algorithm does better than queries without using the structure of , so this quadratic speed-up is the most that black-box quantum search provides; in particular it does not make NP-hard problems polynomial-time.
- A table accessed through a quantum oracle that, for a threshold held in a register, marks the indices with (one query of per comparison).
- The cost measure is the number of oracle queries; no structure of is assumed.
The same idea applies to any randomized heuristic: if one run succeeds with probability , amplitude amplification boosts a coherent version of it to constant success with runs instead of . These speed-ups are provable but only quadratic. Babbush et al. estimate that on early fault-tolerant hardware the error-correction overhead per operation outweighs a quadratic speed-up unless the problem is very large, so a quadratic speed-up alone is unlikely to give a practical advantage in that regime.
Worked Examples
Depth-one QAOA on the cube graph
The 3-dimensional cube graph has vertices, edges, every vertex of degree 3, and no triangles. It is bipartite, so the maximum cut is all 12 edges. By the depth-one formula with , the optimal angles are and , where and . Each edge is cut with probability
so the expected cut is edges, an approximation ratio of (the exact value is ). A uniformly random assignment cuts 6 edges in expectation, and a classical breadth-first two-colouring finds the cut of 12 in linear time. The example shows what depth-one QAOA guarantees, not where it could help.
Cost of one circuit
For MaxCut, each layer applies one rotation per edge and one per vertex. At on the cube this is 12 two-qubit rotations and 8 single-qubit rotations, and the cost is estimated by sampling cuts. The cut value of a sample lies between 0 and 12, so its variance is at most , and with 1000 shots the standard error of the estimated mean cut is at most edges.
Applications
Ising encodings exist for many NP-hard problems, including partitioning, colouring, covering and scheduling (Lucas). Constraints can be imposed by penalty terms or by constraint-preserving mixers (Hadfield et al.). Each encoding fixes the number of qubits and the locality of the cost Hamiltonian, which together determine circuit size.
Limitations and Common Pitfalls
- Compare against the right baseline. Exhaustive search is not the baseline; tuned classical heuristics and approximation algorithms on the same instances and time budget are.
- QAOA at finite depth is not digitized annealing. The two coincide only for large with angles that discretize a slow schedule. Optimized angles at small depth need not follow any adiabatic path, so adiabatic intuitions (minimum gap, tunnelling) do not by themselves explain finite-depth behaviour.
- The large- limit is not free. Convergence to the optimum as via the adiabatic argument needs depth growing with the inverse minimum gap, which can be exponential in ; deep circuits also inherit the trainability and noise problems of variational algorithms.
- Expected cut versus best sample. The theorems bound the mean cost of a sample; reporting the best of many samples is legitimate but must be compared with classical methods given the same number of trials.
State of the Art
As of 2026-12, summarizing the cited papers only:
- High-depth analysis (peer-reviewed, analytical with numerical evaluation). Basso et al. (TQC 2022) give an iteration that evaluates QAOA on MaxCut for large-girth -regular graphs at any depth, evaluated to . For random regular graphs in the limit , at QAOA exceeds every classical algorithm known to the authors that does not rely on an unproven conjecture. The same iteration gives the ensemble-averaged performance on the Sherrington–Kirkpatrick model, studied at infinite size by Farhi, Goldstone, Gutmann and Zhou. The authors conjecture, without proof, that QAOA reaches the Parisi value as .
- Scaling evidence (peer-reviewed, numerical). Shaydulin et al. (Science Advances 2024) simulated noiseless QAOA with fixed parameters on the low autocorrelation binary sequences problem up to 40 qubits and observed better runtime scaling than branch-and-bound solvers; combined with quantum minimum finding it gave the best empirical scaling they found for that problem. This is evidence from extrapolation of small sizes, not a proof, and it compares against exact solvers on one problem family.
- No demonstrated practical advantage. None of the cited works reports a hardware run that beats the best classical method on an optimization problem of practical size.
Related Research
Quantum annealing (the analog, adiabatic counterpart, introduced as an algorithm by Farhi, Goldstone, Gutmann and Sipser), variational quantum algorithms, Grover's algorithm, and the parameter studies of Zhou et al. that motivate heuristic angle schedules.