Algorithms

QAOA (Quantum Approximate Optimization Algorithm)

A hybrid algorithm that tries to find good solutions to combinatorial optimisation problems using alternating layers of quantum operations.

Definition

The Quantum Approximate Optimization Algorithm, abbreviated QAOA, is a hybrid quantum-classical algorithm for combinatorial optimisation problems such as Max-Cut. It applies p alternating layers of a problem-specific operation and a mixing operation, with angles chosen by a classical optimiser, and samples bit strings that tend to have low cost.

In depth

A concrete case is Max-Cut on a graph: colour each vertex 0 or 1 to maximise the number of edges whose endpoints differ. The cost Hamiltonian has one term per edge, and measuring a bit string gives a candidate cut. With p = 1 on three-regular graphs, the original paper by Farhi, Goldstone and Gutmann showed a guaranteed approximation ratio of at least 0.6924 of the optimal cut, a precise statement that I describe from memory and not from a source I opened for this entry.

Parameter finding is the practical challenge. The cost landscape in (γ, β) can have many local minima, and each evaluation needs many shots. Strategies include starting from parameters that worked on similar instances and increasing p gradually.

Because the circuits are shallow for small p, QAOA is a natural candidate for noisy devices, but noise erases much of the benefit once p grows. Our lesson on QAOA works through a small example and discusses the evidence for and against an advantage.

Technical Definition

Starting from the uniform superposition, QAOA applies exp(−iγ_k C) followed by exp(−iβ_k B), for k = 1 to p, where C is the cost Hamiltonian encoding the objective and B = Σ X_i is the mixer. The 2p angles (γ, β) are tuned to minimise the expected cost, measured by sampling. As p grows the algorithm can approach the optimum, and in the limit it relates to adiabatic quantum computation.

Visual Explanation: An Analogy

Imagine shaking a tray of marbles over a landscape of valleys. A phase of tilting the tray towards low points (the cost layer) alternates with a phase of shaking (the mixer) so the marbles do not stay stuck in a shallow dip. You adjust how hard you tilt and shake, and hope most marbles end up in a deep valley.

Key facts

ItemDetail
IntroducedEdward Farhi, Jeffrey Goldstone and Sam Gutmann, 2014
Parameters2p angles for p layers
Typical targetMax-Cut and similar problems
StatusNo proven practical advantage yet

Where the idea comes from

QAOA was proposed in 2014 by Farhi, Goldstone and Gutmann at MIT. It was one of the first algorithms designed for the limited circuit depth of early quantum devices.

Real-World Use Cases

  • Studying Max-Cut and other graph optimisation problems
  • Experiments on scheduling and portfolio-style problems
  • Benchmarking near-term quantum hardware

How it differs from related ideas

  • Compared with quantum annealing, QAOA uses a gate-based circuit with chosen angles, while annealing evolves a physical system slowly.
  • Compared with VQE, QAOA has a fixed structure tied to the problem, while VQE uses a flexible ansatz.

Common Misconceptions

  • QAOA has not been shown to beat the best classical optimisers on useful problems.
  • QAOA does not guarantee the optimal answer. It returns samples whose quality improves with depth and good parameters.

Frequently asked questions

What problems does QAOA target?

Combinatorial optimisation such as Max-Cut, where the goal is a bit string that minimises a cost.

What does p mean?

The number of alternating layers. Larger p gives more expressive circuits and deeper hardware requirements.

Is QAOA faster than classical solvers?

Not demonstrated in general. It is an active research question.

Related Terms

Learn it in a lesson

← Back to the dictionary