Overview
A variational quantum algorithm splits a computation between a quantum device and a classical computer. The device prepares a state with a circuit whose gates depend on real parameters , and measures an observable; the classical computer treats the measured expectation value as a cost function and adjusts to minimize it. The best known example is the variational quantum eigensolver (VQE) of Peruzzo et al., which approximates the ground energy of a Hamiltonian; the quantum approximate optimization algorithm (quantum optimization) and parameterized-circuit models in quantum machine learning are built the same way. McClean, Romero, Babbush and Aspuru-Guzik set out the general framework, and Cerezo et al. review the field.
The approach was designed for devices without error correction, the regime that Preskill called NISQ: circuits stay short, and the iteration happens in classical software. This page states the principles that make the method work, the theorems that limit it, and the status of claims about quantum advantage. Each such claim is labelled by the kind of evidence behind it.
Intuition
Think of the quantum device as a function evaluator. You give it a list of angles, it returns a noisy number, and you want the angles that make the number as small as possible. Two facts make this sensible. First, for an energy the answer is always on the correct side: no state has energy below the ground energy, so a lower measured energy is (up to error bars) a better approximation. Second, the gradient with respect to each angle can be measured exactly by running the same circuit at two shifted angles, so standard gradient-based optimizers apply.
Three costs then multiply. Each energy is an average over many measurement shots, and the number of shots grows like the inverse square of the desired precision. Each optimization step needs many energies. And for large, unstructured circuits the landscape is almost perfectly flat, a barren plateau, so the gradient is hidden below the shot noise. Much of the research in the area is about which of these costs can be tamed, and at what price.
Prerequisites
The circuit model, Pauli operators and the measurement of observables; for the barren-plateau theorem, averages over the Haar measure. The lessons Variational quantum eigensolver and VQE in practice give a hands-on introduction.
Mathematical Definitions
Fix qubits, a reference state , Hermitian operators (the generators) and unitaries that do not depend on any parameter. The parameterized quantum circuit with these data is the map , where
The set is the ansatz (trial-state family). Usually each is a Pauli string, so and each parameterized gate is a Pauli rotation; a parameter that enters several gates is the same as a circuit with tied parameters. For an observable the associated cost function is . When every squares to the identity, is a trigonometric polynomial of degree at most 1 in each separately.
Common families differ only in the choice of the and . Hardware-efficient ansätze alternate layers of native single-qubit rotations with fixed entangling gates (Kandala et al.). Problem-inspired ansätze, such as unitary coupled cluster (Peruzzo et al.), take generators from the Hamiltonian or from a classical method. The quantum approximate optimization algorithm alternates the problem Hamiltonian and a mixing Hamiltonian as generators. General background is in McClean et al. and the review of Cerezo et al..
Input. on qubits; an ansatz with parameters; a classical optimizer; a shot budget per energy evaluation.
Procedure.
- Choose initial parameters (for chemistry often those that make the identity, so the trial state is the Hartree–Fock reference).
- For : prepare repeatedly, measure the Pauli terms (grouped where they commute), and form the estimate . If the optimizer uses gradients, estimate them with the parameter-shift rule.
- Pass the estimates to the classical optimizer, which returns ; stop when the estimated energy or gradient no longer changes beyond its statistical error.
- Output the final parameters and the energy estimate.
Guarantee. Only the variational principle: every exactly evaluated energy is at least the ground energy . Nothing guarantees that the optimizer finds the best parameters, that the ansatz contains a state close to the ground state, or that the number of iterations is small; the energy estimate carries the statistical error quantified by the measurement-cost formula and any bias from device noise.
The method was introduced and demonstrated on a photonic processor by Peruzzo et al. and given a general framework by McClean, Romero, Babbush and Aspuru-Guzik. Adaptive variants grow the ansatz one generator at a time, choosing at each step the operator from a pool with the largest energy gradient (Grimsley, Economou, Barnes and Mayhall).
- A Hamiltonian given as a Pauli sum (for fermions, after a fermion-to-qubit mapping).
- A parameterized circuit that can be run repeatedly, and measurements of each Pauli term (or of commuting groups of terms).
The cost function of a variational algorithm is in general for a few observables and a classical function ; VQE takes a single observable . A cost is local if each is a sum of terms acting on a bounded number of qubits and global if it involves operators on all qubits (for instance the fidelity with a fixed state).
Theorems
The variational principle
For every density operator on ,
with equality if and only if , that is, is supported on the ground space. In particular , and for any family of trial states the number is an upper bound on , attained only if the family reaches the ground space.
This is the principle behind the variational quantum eigensolver of Peruzzo et al.: every exactly evaluated energy of a prepared state is a certified upper bound on the ground energy. The certificate is lost once the energy is only estimated from finitely many samples, or the prepared state differs from the intended one because of noise.
- is a Hermitian operator on a finite-dimensional Hilbert space , with smallest eigenvalue and spectral projector onto the corresponding eigenspace.
Proof · Proof of the Rayleigh–Ritz variational principle
By the spectral theorem write with distinct eigenvalues and orthogonal spectral projectors summing to . For a density operator put ; since and , the sum to 1. Then
because every term is a product of non-negative numbers. Equality holds if and only if for all , that is with . Since , this forces , hence , which is the same as . Taking with a unit eigenvector for shows that the minimum over pure states is attained and equals . The statement about trial families follows by applying the inequality to each .
Exact gradients
Let for a state , a unitary and an observable . Then has the form with real , and for every
The right-hand side is an exact identity, not a finite-difference approximation: the two shifted circuits are ordinary circuits of the same depth, so the gradient of a cost with such parameters costs expectation-value estimates. For a parameter shared by several gates, apply the rule to each occurrence and add (chain rule). The rule appeared for Pauli rotations in Mitarai, Negoro, Kitagawa and Fujii and, for gates whose generator has exactly two eigenvalues , in the form with (the case above is , ) in Schuld, Bergholm, Gogolin, Izaac and Killoran.
- The parameter enters the circuit only through one gate with Hermitian and (for example a Pauli string); all other gates, the input state and the observable are independent of .
- Exact expectation values; with finitely many measurement shots each term is estimated with statistical error.
Proof · Proof of the parameter-shift rule
Since , the power series of the exponential splits into even and odd parts: . Hence
Using , and , and writing ,
The coefficients and are real because , and are Hermitian; is real because is Hermitian. Now and , so
which is the claim. For a gate whose generator has eigenvalues , apply the result to , which squares to , and the variable (so that ); the chain rule gives the shift and prefactor stated by Schuld et al.. The Pauli case is that of Mitarai et al..
For gates whose generator has more than two distinct eigenvalues, more shifted evaluations are needed; Wierichs, Izaac, Wang and Lin give general shift rules derived from the trigonometric-polynomial structure of the cost. Other optimizers precondition the gradient with the Fubini–Study metric of the state family (the quantum natural gradient of Stokes, Izaac, Killoran and Carleo), at the price of estimating that metric.
The measurement cost
The estimator , with the mean of outcomes of , is unbiased with variance , because a single outcome has variance . For any allocation with variance at most and total , the Cauchy–Schwarz inequality gives
with equality for . Hence the minimum total number of shots is the formula above, and since it never exceeds , the square of the one-norm of the coefficients over the squared target error. The cost per energy evaluation therefore scales with the square of , independently of the circuit; this quadratic dependence on the inverse precision is the standard-quantum-limit scaling of sampling, in contrast with the scaling of phase estimation.
Wecker, Hastings and Troyer analysed this measurement cost for variational chemistry and found it to be a dominant expense. Measuring mutually commuting terms together (Verteletskyi, Yen and Izmaylov) and randomized measurements such as classical shadows (Huang, Kueng and Preskill) change the constants and the dependence on the number of terms, not the scaling.
- with real and Pauli strings ; the identity term is a known constant and is dropped.
- Each is estimated separately by averaging independent single-shot outcomes on fresh copies of the state; no grouping of commuting terms, no correlated estimators.
- Integer rounding of the is ignored; the standard error is the square root of the variance of the unbiased estimator.
Barren plateaus
Let and . Under the assumptions, for every fixed and ,
where . For an -qubit Pauli observable, , so the variance is at most . By Chebyshev's inequality, : almost all circuits in the ensemble have gradients exponentially close to zero, and resolving a gradient component by sampling needs a number of measurement shots exponential in .
This exact computation is a special case of the theorem of McClean, Boixo, Smelyanskiy, Babbush and Neven, who treat the cases where the circuit before or after the parameter (or both) is a 2-design and conclude that the gradient variance vanishes exponentially in . Locality of the cost and depth matter for circuits that are not 2-designs: Cerezo et al. prove that for layered circuits of local two-qubit blocks, global costs have exponentially vanishing gradients at any depth, whereas local costs at depth have gradients that vanish at most polynomially. A survey of the mechanisms is Larocca et al..
- The circuit is on qubits, , with Hermitian and ; the input is a pure state and .
- The unitary (the gates after the -th parameter) is random and its distribution agrees with the Haar measure on in all second moments, for all (a unitary 2-design); and are arbitrary, possibly random and independent of .
- The observable is Hermitian and traceless, .
Proof · Proof of the barren-plateau variance formula for 2-designs
Write , and .
The derivative. Since , at . Hence
is Hermitian (the commutator of two Hermitian operators is anti-Hermitian) and traceless.
First moment. Taking in the 2-design condition and tracing out the second factor shows , the last equality because the Haar average commutes with every unitary and is therefore a multiple of , fixed by its trace. With this gives .
Second moment. , so by the 2-design assumption with the Haar twirl . By invariance of the Haar measure, commutes with every , and by Schur–Weyl duality the commutant of is spanned by the identity and the swap (with ). So . Because and are invariant under conjugation by (which commutes with ), and . Using , , and for the identities and :
Then, with and ,
The commutator norm. Expand . Since is a pure state, and ; with the four traces are , , and , where . Thus , which gives the stated formula. For a Pauli observable , and for . The variance is the second moment because the mean is zero, and Chebyshev's inequality gives the tail bound.
This computation follows the strategy of McClean, Boixo, Smelyanskiy, Babbush and Neven, restricted to the case in which the circuit after the parameter is a 2-design, where it becomes exact.
Further mechanisms produce flat landscapes even without a 2-design:
- Expressibility. Holmes, Sharma, Cerezo and Coles bound the gradient variance in terms of how far the ensemble of circuits is from a 2-design: the more uniformly an ansatz explores the unitary group, the smaller its gradients.
- Global costs. For layered circuits of local blocks, Cerezo et al. prove exponentially vanishing gradients for global costs at every depth, and at most polynomially vanishing gradients for local costs at logarithmic depth.
- Noise. Wang et al. prove that under local Pauli noise the gradient is bounded by a quantity decaying exponentially with circuit depth, so a depth growing linearly in gives exponentially small gradients regardless of the ansatz. Choosing a better circuit does not remove this mechanism.
Hardness of the classical optimization
Even with perfect expectation values the outer loop is a non-convex optimization. Bittel and Kliesch prove that the classical optimization problem underlying variational algorithms is NP-hard, including instances in which the quantum part is classically simulable, such as circuits on logarithmically many qubits or free-fermion models. This is a worst-case statement; it does not say that typical instances are hard, but it rules out a general efficient training guarantee.
Worked Examples
A one-qubit VQE, computed exactly
Take and the ansatz , with . Then and , so
The eigenvalues of are , and attains the lower one at , where and . The ansatz is exact here, so the variational bound is tight.
Gradient by parameter shift. At : and , so the shift rule gives , which equals .
Shot budget at the optimum. The two terms do not commute and need separate measurement settings. With and we get and , so . For a standard error the optimal number of shots is , split equally ( each) because . Check: the variance is . The worst-case bound with is . One energy to three decimal places thus costs close to a million shots even for one qubit; a gradient step with parameters costs such estimates.
How small is a barren-plateau gradient?
For qubits, a Pauli observable and a circuit whose final part is a 2-design, the theorem gives , a typical gradient of size about . Resolving it against shot noise of standard deviation about needs of order shots for a single component.
Algorithms and Implementations
Practical variational algorithms differ in four choices: the ansatz (hardware-efficient layers as in Kandala et al., chemically motivated unitary coupled cluster as in Peruzzo et al., or adaptively grown circuits as in ADAPT-VQE); the measurement strategy (term-by-term, commuting groups, or randomized classical shadows); the optimizer (gradient-free, parameter-shift gradients, natural gradient); and the error mitigation applied to the measured numbers (see quantum error mitigation). Variationally prepared states are also used as inputs to phase estimation, whose cost depends on the overlap of the input with the target eigenstate rather than on precise optimization.
Limitations and Common Pitfalls
- An energy without a shot count is not a result. The variational bound holds for exact expectation values only; a reported energy needs its statistical error and the number of shots behind it.
- Noise breaks the bound. A noisy device prepares a different state than intended; mitigated estimates can fall below the true ground energy.
- Gradients below shot noise look like convergence. A flat landscape and an optimizer that stops because gradient estimates are noise are indistinguishable without reporting gradient magnitudes against their errors.
- Trainable is not the same as useful. Ansätze proven free of barren plateaus often have structure that also makes them easy to simulate classically (see State of the Art), so a trainability guarantee should be accompanied by an argument that the circuit is hard to simulate.
- Small-instance results do not extrapolate. Successful runs on a few qubits say little about the scaling of shot cost, optimization difficulty and noise at sizes where classical methods fail.
State of the Art
As of 2026-12, the statements below summarize the cited reviews and papers; they are not an independent survey.
- Advantage: no demonstrated case. No peer-reviewed work cited here establishes a practical quantum advantage for a variational algorithm on a problem of interest; the reviews of Cerezo et al. (2021) and Larocca et al. (2025) present advantage as an open question. Claims of advantage should be read with their evidence level: proved separations exist only for specially constructed problems, numerical evidence covers small sizes, and heuristic arguments remain heuristic.
- Barren plateaus and simulability. Cerezo et al. (Nature Communications, 2025) argue, from a survey of the known proofs, that the structures used to prove the absence of barren plateaus typically confine the computation to a polynomially sized subspace, which in many cases allows the cost landscape to be simulated classically, possibly after collecting data from a quantum device. They present this as a widely applicable pattern with explicit caveats, not as a theorem covering every ansatz.
- Training is hard in the worst case (Bittel and Kliesch, 2021), and noise-induced plateaus (Wang et al., 2021) limit the useful depth on unmitigated hardware.
Related Research
Quantum optimization (QAOA), quantum chemistry (Hamiltonians and mappings that VQE consumes), quantum machine learning (parameterized circuits as models), quantum error mitigation, tensor networks (the main classical competitor for ground states), and quantum phase estimation (the fault-tolerant route to energies).