Skip to content
DAH
Wiki/Quantum AlgorithmsAlgorithmActive

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
Why other work relies on it

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.

  1. 1Quantum circuit with adjustable knobs
  2. 2Measure an energy or cost
  3. 3Classical optimiser turns the knobs
  4. 4Repeat until the score stops improving
  5. 5Flat landscapes and noise get in the way

VQE. A circuit U(θ)U(\theta) with adjustable angles θ\theta prepares a trial state ∣ψ(θ)⟩|\psi(\theta)\rangle. The energy E(θ)=⟨ψ(θ)∣H∣ψ(θ)⟩E(\theta)=\langle\psi(\theta)|H|\psi(\theta)\rangle is estimated by measuring the pieces of the Hamiltonian HH (written as a sum of Pauli terms) many times and averaging. A classical optimiser, such as gradient descent, updates θ\theta. By the variational principle, every trial energy is at least the true ground energy, so lower is better.

QAOA. For a cost function C(z)C(z) on bit strings (for example the number of edges cut in a graph, MaxCut), the circuit alternates two kinds of layers: e−iγCe^{-i\gamma C}, which applies phases according to the cost, and e−iβBe^{-i\beta B} with B=∑iXiB=\sum_i X_i, which mixes bit strings. With pp layers there are 2p2p angles to tune. As pp grows the method can imitate slow adiabatic evolution towards the best answer.

Obstacles.

  • Barren plateaus: for random deep circuits the gradient of E(θ)E(\theta) 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 SS measurements falls like 1/S1/\sqrt S, 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 e−iθP/2e^{-i\theta P/2} with PP a Pauli operator, the derivative equals half the difference of two energy measurements at θ±π/2\theta\pm\pi/2.

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 ∣ψ(θ)⟩=U(θ)∣0⟩|\psi(\theta)\rangle=U(\theta)|0\rangle; the energy E(θ)=⟨ψ(θ)∣H∣ψ(θ)⟩E(\theta)=\langle\psi(\theta)|H|\psi(\theta)\rangle is estimated by measuring the Pauli terms of HH; a classical optimiser updates θ\theta. By the variational principle every E(θ)E(\theta) 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 BeH2_2.

The quantum approximate optimisation algorithm

Farhi, Goldstone and Gutmann (2014) introduced the QAOA for combinatorial optimisation. For a cost function CC on bit strings and the mixer B=∑iXiB=\sum_i X_i, depth pp prepares ∏k=1pe−iβkBe−iγkC∣+⟩⊗n\prod_{k=1}^{p}e^{-i\beta_k B}e^{-i\gamma_k C}|+\rangle^{\otimes n}; as p→∞p\to\infty it can follow an adiabatic path to the optimum. At p=1p=1 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 log⁡n\log n cannot find near-maximum independent sets in sparse random graphs. On the other side, Basso et al. (2022) computed that QAOA at p=11p=11 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 E(θ)E(\theta) to precision ε\varepsilon needs O(1/ε2)O(1/\varepsilon^2) 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)
Words on this page
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)
New to this? Read first

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.

  1. Start with
  2. Step 2
  3. Step 3
  4. Then

Open problems & questions

Progress timeline

  1. Dec 14, 2023
    Trainability versus simulability

    Cerezo et al. argued that provably trainable models are often classically simulable.

    source
  2. Aug 4, 2023
    LABS scaling evidence
    Related to: A QAOA speedup over every known classical algorithm on a natural optimisation family

    Shaydulin et al. reported better empirical scaling than branch-and-bound on LABS up to 40 qubits.

    source
  3. Oct 27, 2021
    High-depth QAOA analysis

    Basso et al. evaluated QAOA up to p=20p=20 on large-girth graphs and the SK model.

    source
  4. Oct 27, 2021
    High-depth QAOA beats known unconditional algorithms
    Related to: A QAOA speedup over every known classical algorithm on a natural optimisation family

    Basso et al. found p=11p=11 QAOA beats classical algorithms free of unproven conjectures on large-girth regular graphs.

    source
  5. Apr 20, 2020
    Overlap-gap limit at low depth
    Related to: A QAOA speedup over every known classical algorithm on a natural optimisation family

    Farhi, Gamarnik and Gutmann showed low-depth QAOA cannot find near-optimal independent sets in sparse random graphs.

    source
  6. Mar 29, 2018
    Barren plateaus

    McClean et al. showed exponentially vanishing gradients for random deep circuits.

    source
  7. May 13, 2015
    Classical algorithm beats an early QAOA guarantee
    Related to: A QAOA speedup over every known classical algorithm on a natural optimisation family

    Barak et al. gave a classical algorithm beating the QAOA's guarantee for bounded-occurrence Max-E3LIN2.

    source
  8. Nov 14, 2014
    QAOA proposed

    Farhi, Goldstone and Gutmann introduced the QAOA.

    source
  9. Apr 10, 2013
    VQE proposed

    Peruzzo et al. posted the variational eigensolver; published in Nature Communications in July 2014.

    source