Variational quantum algorithms: VQE and QAOA
Hybrid methods in which a classical optimiser tunes the parameters of a short quantum circuit to minimise a measured energy or cost; proposed for noisy devices, with no proven advantage so far.
On this page14 sections
Most near-term (pre-fault-tolerant) application claims in chemistry and optimisation are variational, so their trainability and classical simulability decide whether noisy quantum hardware has practical uses.
Hybrid methods where an ordinary computer tunes a short quantum circuit to lower an energy or a cost.
- 1Quantum circuit with adjustable knobs
- 2Measure an energy or cost
- 3Classical optimiser turns the knobs
- 4Repeat until the score stops improving
- 5Flat landscapes and noise get in the way
VQE. A circuit with adjustable angles prepares a trial state . The energy is estimated by measuring the pieces of the Hamiltonian (written as a sum of Pauli terms) many times and averaging. A classical optimiser, such as gradient descent, updates . By the variational principle, every trial energy is at least the true ground energy, so lower is better.
QAOA. For a cost function on bit strings (for example the number of edges cut in a graph, MaxCut), the circuit alternates two kinds of layers: , which applies phases according to the cost, and with , which mixes bit strings. With layers there are angles to tune. As grows the method can imitate slow adiabatic evolution towards the best answer.
Obstacles.
- Barren plateaus: for random deep circuits the gradient of is exponentially small in the number of qubits, so estimating it needs exponentially many measurements.
- Classical simulability: circuits proven to avoid barren plateaus often live in a small subspace that a classical computer can simulate.
- Shot noise: the error of an average of measurements falls like , so high precision needs many runs.
Record. Early QAOA guarantees were later matched by classical algorithms; high-depth analyses and small-scale numerical studies give mixed but sometimes encouraging evidence. The open question is whether any natural problem shows a lasting advantage.
Practical note. Gradients can be measured on the device itself with the parameter-shift rule: for gates of the form with a Pauli operator, the derivative equals half the difference of two energy measurements at .
Go deeper
The full technical text.
The variational quantum eigensolver
Peruzzo et al. (2014) proposed the variational quantum eigensolver (VQE) and ran it on a photonic chip. A parametrised circuit prepares ; the energy is estimated by measuring the Pauli terms of ; a classical optimiser updates . By the variational principle every is an upper bound on the ground energy. McClean et al. (2016) set out the general theory, and Kandala et al. (2017) ran hardware-efficient ansätze on superconducting qubits for small molecules up to BeH.
The quantum approximate optimisation algorithm
Farhi, Goldstone and Gutmann (2014) introduced the QAOA for combinatorial optimisation. For a cost function on bit strings and the mixer , depth prepares ; as it can follow an adiabatic path to the optimum. At on MaxCut for 3-regular graphs it guarantees an approximation ratio of at least 0.6924.
The QAOA's record against classical algorithms is mixed. A 2014 QAOA result for bounded-occurrence Max-E3LIN2 was overtaken by a classical algorithm of Barak et al. (2015). Hastings (2019) showed simple local classical algorithms match or beat single-layer QAOA on several problems. Farhi, Gamarnik and Gutmann (2020) used the overlap gap property to show that QAOA with depth below a constant times cannot find near-maximum independent sets in sparse random graphs. On the other side, Basso et al. (2022) computed that QAOA at beats all classical algorithms they knew that do not rely on unproven conjectures for MaxCut on large-girth regular graphs of high degree, and Shaydulin et al. (2024) reported numerical evidence that QAOA's time to solution for the low-autocorrelation binary sequences (LABS) problem scales better than branch-and-bound solvers, for up to 40 qubits.
Obstacles
Barren plateaus. McClean et al. (2018) showed that for sufficiently random deep circuits the gradient vanishes exponentially in the number of qubits, so training needs exponentially many measurements; Larocca et al. (2025) review the many variants. Classical simulability. Cerezo et al. (2025) collect evidence that the structures that provably avoid barren plateaus often confine the computation to a small subspace that a classical computer can simulate, given data gathered from the device. Measurement cost. Estimating to precision needs shots per term, which is large at chemical accuracy. Noise biases the measured costs and flattens landscapes further.
Status
No variational algorithm has a proven or convincingly demonstrated advantage over the best classical method on a problem of practical interest. They remain useful as benchmarks for hardware and as heuristics whose value at large scale is an open empirical question.
Words on this page (7)
- variational principle
- Any trial state's average energy is at least the true lowest energy.
- VQE
- Variational quantum eigensolver: tunes a circuit to minimise a molecule's energy.
- QAOA
- Quantum approximate optimisation algorithm: alternating cost and mixing layers for optimisation problems.
- MaxCut
- Splitting a graph's nodes into two groups to cut as many edges as possible.
- gradient descent
- Repeatedly stepping in the direction that lowers a function the fastest.
- barren plateau
- A region where the cost is almost flat, so the optimiser gets no useful direction.
- Pauli operators
- The basic single-qubit measurements X, Y and Z, from which Hamiltonians are built.
New to this? Read first (2)
- Variational quantum eigensolver (Wikipedia)How the loop works for chemistry.
- Quantum optimization algorithms (Wikipedia)QAOA and related methods in context.
Understanding map
map of the whole wiki →What to read before Variational quantum algorithms: VQE and QAOA (left), and what builds on it: entries that depend on it and its open problems (right). Every box links to its page.
- Start with
- Step 2
- Quantum algorithmsAlgorithm
- Step 3
- Variational quantum algorithms: VQE and QAOAYou are here
- Then
Open problems & questions
Progress timeline
- Dec 14, 2023Trainability versus simulabilitysource
Cerezo et al. argued that provably trainable models are often classically simulable.
- Aug 4, 2023LABS scaling evidenceRelated to: A QAOA speedup over every known classical algorithm on a natural optimisation familysource
Shaydulin et al. reported better empirical scaling than branch-and-bound on LABS up to 40 qubits.
- Oct 27, 2021High-depth QAOA analysissource
Basso et al. evaluated QAOA up to on large-girth graphs and the SK model.
- Oct 27, 2021High-depth QAOA beats known unconditional algorithmsRelated to: A QAOA speedup over every known classical algorithm on a natural optimisation familysource
Basso et al. found QAOA beats classical algorithms free of unproven conjectures on large-girth regular graphs.
- Apr 20, 2020Overlap-gap limit at low depthRelated to: A QAOA speedup over every known classical algorithm on a natural optimisation familysource
Farhi, Gamarnik and Gutmann showed low-depth QAOA cannot find near-optimal independent sets in sparse random graphs.
- Mar 29, 2018Barren plateaussource
McClean et al. showed exponentially vanishing gradients for random deep circuits.
- May 13, 2015Classical algorithm beats an early QAOA guaranteeRelated to: A QAOA speedup over every known classical algorithm on a natural optimisation familysource
Barak et al. gave a classical algorithm beating the QAOA's guarantee for bounded-occurrence Max-E3LIN2.
- Nov 14, 2014QAOA proposedsource
Farhi, Goldstone and Gutmann introduced the QAOA.
- Apr 10, 2013VQE proposedsource
Peruzzo et al. posted the variational eigensolver; published in Nature Communications in July 2014.