Skip to main content
KetQat

Appearance

Topic · intermediate

Variational Quantum Algorithms

Hybrid quantum-classical methods that optimize the parameters of a quantum circuit with a classical loop - the variational principle, ansatz families, exact gradients by parameter shifts, measurement cost, barren plateaus, and what is and is not known about their advantage.

ExpositionMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Overview

A variational quantum algorithm splits a computation between a quantum device and a classical computer. The device prepares a state ∣ψ(θ⃗)⟩\ket{\psi(\vec\theta)} with a circuit whose gates depend on real parameters θ⃗\vec\theta, and measures an observable; the classical computer treats the measured expectation value as a cost function and adjusts θ⃗\vec\theta 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

DefinitionParameterized quantum circuit (ansatz)Established definition

Fix nn qubits, a reference state ∣ψ0⟩∈(C2)⊗n\ket{\psi_0} \in (\C^2)^{\otimes n}, Hermitian operators G1,…,GpG_1, \dots, G_p (the generators) and unitaries V0,V1,…,VpV_0, V_1, \dots, V_p that do not depend on any parameter. The parameterized quantum circuit with these data is the map θ⃗=(θ1,…,θp)∈Rp↦U(θ⃗)\vec\theta = (\theta_1, \dots, \theta_p) \in \R^p \mapsto U(\vec\theta), where

U(θ⃗)=Vp e−iθpGp/2 Vp−1⋯V1 e−iθ1G1/2 V0,∣ψ(θ⃗)⟩=U(θ⃗)∣ψ0⟩.U(\vec\theta) = V_p\, e^{-i\theta_p G_p/2}\, V_{p-1} \cdots V_1\, e^{-i\theta_1 G_1/2}\, V_0 , \qquad \ket{\psi(\vec\theta)} = U(\vec\theta)\ket{\psi_0} .

The set {∣ψ(θ⃗)⟩:θ⃗∈Rp}\{\ket{\psi(\vec\theta)} : \vec\theta \in \R^p\} is the ansatz (trial-state family). Usually each GℓG_\ell is a Pauli string, so Gℓ2=IG_\ell^2 = I 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 OO the associated cost function is E(θ⃗)=⟨ψ(θ⃗)∣O∣ψ(θ⃗)⟩E(\vec\theta) = \bra{\psi(\vec\theta)} O \ket{\psi(\vec\theta)}. When every GℓG_\ell squares to the identity, EE is a trigonometric polynomial of degree at most 1 in each θℓ\theta_\ell separately.

Common families differ only in the choice of the GℓG_\ell and VℓV_\ell. 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..

AlgorithmVariational quantum eigensolver (VQE)Exposition

Input. H=∑jαjPjH = \sum_j \alpha_j P_j on nn qubits; an ansatz ∣ψ(θ⃗)⟩=U(θ⃗)∣ψ0⟩\ket{\psi(\vec\theta)} = U(\vec\theta)\ket{\psi_0} with pp parameters; a classical optimizer; a shot budget per energy evaluation.

Procedure.

  1. Choose initial parameters θ⃗(0)\vec\theta^{(0)} (for chemistry often those that make U(θ⃗(0))U(\vec\theta^{(0)}) the identity, so the trial state is the Hartree–Fock reference).
  2. For t=0,1,2,…t = 0, 1, 2, \dots: prepare ∣ψ(θ⃗(t))⟩\ket{\psi(\vec\theta^{(t)})} repeatedly, measure the Pauli terms (grouped where they commute), and form the estimate E^(θ⃗(t))=∑jαjp^j\hat E(\vec\theta^{(t)}) = \sum_j \alpha_j \hat p_j. If the optimizer uses gradients, estimate them with the parameter-shift rule.
  3. Pass the estimates to the classical optimizer, which returns θ⃗(t+1)\vec\theta^{(t+1)}; stop when the estimated energy or gradient no longer changes beyond its statistical error.
  4. Output the final parameters and the energy estimate.

Guarantee. Only the variational principle: every exactly evaluated energy is at least the ground energy E0E_0. 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).

Holds when
  • A Hamiltonian given as a Pauli sum H=∑jαjPjH = \sum_j \alpha_j P_j (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 C(θ⃗)=f(⟨ψ(θ⃗)∣O1∣ψ(θ⃗)⟩,…)C(\vec\theta) = f\big(\bra{\psi(\vec\theta)} O_1 \ket{\psi(\vec\theta)}, \dots\big) for a few observables OiO_i and a classical function ff; VQE takes a single observable O=HO = H. A cost is local if each OiO_i 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

TheoremRayleigh–Ritz variational principleEstablished result

For every density operator ρ\rho on H\mathcal{H},

Tr⁡(Hρ)  ≥  E0,\tr(H\rho) \;\ge\; E_0 ,

with equality if and only if ρ=Π0ρ Π0\rho = \Pi_0 \rho\, \Pi_0, that is, ρ\rho is supported on the ground space. In particular E0=min⁡∥ψ∥=1⟨ψ∣H∣ψ⟩E_0 = \min_{\norm{\psi} = 1} \bra{\psi} H \ket{\psi}, and for any family of trial states ∣ψ(θ⃗)⟩\ket{\psi(\vec\theta)} the number inf⁡θ⃗⟨ψ(θ⃗)∣H∣ψ(θ⃗)⟩\inf_{\vec\theta} \bra{\psi(\vec\theta)} H \ket{\psi(\vec\theta)} is an upper bound on E0E_0, 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.

Holds when
  • HH is a Hermitian operator on a finite-dimensional Hilbert space H\mathcal{H}, with smallest eigenvalue E0E_0 and spectral projector Π0\Pi_0 onto the corresponding eigenspace.
Proof · Proof of the Rayleigh–Ritz variational principle

By the spectral theorem write H=∑kEkΠkH = \sum_k E_k \Pi_k with distinct eigenvalues E0<E1<⋯E_0 < E_1 < \cdots and orthogonal spectral projectors Πk\Pi_k summing to II. For a density operator ρ\rho put wk=Tr⁡(Πkρ)≥0w_k = \tr(\Pi_k \rho) \ge 0; since ∑kΠk=I\sum_k \Pi_k = I and Tr⁡ρ=1\tr\rho = 1, the wkw_k sum to 1. Then

Tr⁡(Hρ)−E0=∑k(Ek−E0) wk  ≥  0,\tr(H\rho) - E_0 = \sum_k (E_k - E_0)\, w_k \;\ge\; 0 ,

because every term is a product of non-negative numbers. Equality holds if and only if wk=0w_k = 0 for all k≥1k \ge 1, that is Tr⁡(Qρ)=0\tr(Q\rho) = 0 with Q=I−Π0Q = I - \Pi_0. Since Tr⁡(Qρ)=Tr⁡((ρ1/2Q)†(ρ1/2Q))\tr(Q\rho) = \tr\big((\rho^{1/2} Q)\dagg (\rho^{1/2} Q)\big), this forces ρ1/2Q=0\rho^{1/2} Q = 0, hence ρQ=Qρ=0\rho Q = Q\rho = 0, which is the same as ρ=Π0ρ Π0\rho = \Pi_0 \rho\, \Pi_0. Taking ρ=∣ψ⟩⟨ψ∣\rho = \ketbra{\psi}{\psi} with ∣ψ⟩\ket{\psi} a unit eigenvector for E0E_0 shows that the minimum over pure states is attained and equals E0E_0. The statement about trial families follows by applying the inequality to each ∣ψ(θ⃗)⟩⟨ψ(θ⃗)∣\ketbra{\psi(\vec\theta)}{\psi(\vec\theta)}.

Exact gradients

TheoremParameter-shift rulePeer-reviewed result

Let E(θ)=Tr⁡ ⁣(O W e−iθG/2ρ eiθG/2W†)E(\theta) = \tr\!\big(O\, W\, e^{-i\theta G/2} \rho\, e^{i\theta G/2} W\dagg\big) for a state ρ\rho, a unitary WW and an observable OO. Then EE has the form E(θ)=a+bcos⁡θ+csin⁡θE(\theta) = a + b\cos\theta + c\sin\theta with real a,b,ca, b, c, and for every θ\theta

dEdθ(θ)=E ⁣(θ+π2)−E ⁣(θ−π2)2.\frac{dE}{d\theta}(\theta) = \frac{E\!\left(\theta + \frac{\pi}{2}\right) - E\!\left(\theta - \frac{\pi}{2}\right)}{2} .

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 pp such parameters costs 2p2p 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 e−iθG′e^{-i\theta G'} whose generator has exactly two eigenvalues ±r\pm r, in the form E′(θ)=r [E(θ+s)−E(θ−s)]E'(\theta) = r\,[E(\theta + s) - E(\theta - s)] with s=π/(4r)s = \pi/(4r) (the case above is G′=G/2G' = G/2, r=1/2r = 1/2) in Schuld, Bergholm, Gogolin, Izaac and Killoran.

Holds when
  • The parameter θ\theta enters the circuit only through one gate e−iθG/2e^{-i\theta G/2} with GG Hermitian and G2=IG^2 = I (for example a Pauli string); all other gates, the input state and the observable are independent of θ\theta.
  • Exact expectation values; with finitely many measurement shots each term is estimated with statistical error.
Proof · Proof of the parameter-shift rule

Since G2=IG^2 = I, the power series of the exponential splits into even and odd parts: e−iθG/2=cos⁡(θ/2) I−isin⁡(θ/2) Ge^{-i\theta G/2} = \cos(\theta/2)\, I - i \sin(\theta/2)\, G. Hence

e−iθG/2ρ eiθG/2=cos⁡2 ⁣θ2 ρ+sin⁡2 ⁣θ2 GρG+isin⁡θ2cos⁡θ2 (ρG−Gρ).e^{-i\theta G/2} \rho\, e^{i\theta G/2} = \cos^2\!\tfrac{\theta}{2}\, \rho + \sin^2\!\tfrac{\theta}{2}\, G\rho G + i \sin\tfrac{\theta}{2}\cos\tfrac{\theta}{2}\, (\rho G - G\rho) .

Using cos⁡2(θ/2)=(1+cos⁡θ)/2\cos^2(\theta/2) = (1 + \cos\theta)/2, sin⁡2(θ/2)=(1−cos⁡θ)/2\sin^2(\theta/2) = (1 - \cos\theta)/2 and sin⁡(θ/2)cos⁡(θ/2)=sin⁡(θ)/2\sin(\theta/2)\cos(\theta/2) = \sin(\theta)/2, and writing O~=W†OW\tilde O = W\dagg O W,

E(θ)=12Tr⁡(O~(ρ+GρG))⏟a+12Tr⁡(O~(ρ−GρG))⏟bcos⁡θ+i2Tr⁡(O~(ρG−Gρ))⏟csin⁡θ.E(\theta) = \underbrace{\tfrac12 \tr\big(\tilde O(\rho + G\rho G)\big)}_{a} + \underbrace{\tfrac12 \tr\big(\tilde O(\rho - G\rho G)\big)}_{b} \cos\theta + \underbrace{\tfrac{i}{2} \tr\big(\tilde O(\rho G - G\rho)\big)}_{c} \sin\theta .

The coefficients aa and bb are real because O~\tilde O, ρ\rho and GρGG\rho G are Hermitian; cc is real because i(ρG−Gρ)i(\rho G - G\rho) is Hermitian. Now cos⁡(θ±π/2)=∓sin⁡θ\cos(\theta \pm \pi/2) = \mp \sin\theta and sin⁡(θ±π/2)=±cos⁡θ\sin(\theta \pm \pi/2) = \pm\cos\theta, so

E ⁣(θ+π2)−E ⁣(θ−π2)=−2bsin⁡θ+2ccos⁡θ=2 dEdθ(θ),E\!\left(\theta + \tfrac{\pi}{2}\right) - E\!\left(\theta - \tfrac{\pi}{2}\right) = -2b\sin\theta + 2c\cos\theta = 2\, \frac{dE}{d\theta}(\theta) ,

which is the claim. For a gate e−iθG′e^{-i\theta G'} whose generator has eigenvalues ±r\pm r, apply the result to G=G′/rG = G'/r, which squares to II, and the variable ϕ=2rθ\phi = 2r\theta (so that e−iθG′=e−iϕG/2e^{-i\theta G'} = e^{-i\phi G/2}); the chain rule gives the shift π/(4r)\pi/(4r) and prefactor rr 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

EquationMeasurement cost of estimating a Pauli-sum energyEstablished result
Mmin⁡=(∑j∣αj∣ σj)2ε2  ≤  λ2ε2,λ=∑j∣αj∣,  σj2=1−⟨Pj⟩2M_{\min} = \frac{\big(\sum_j \abs{\alpha_j}\, \sigma_j\big)^2}{\varepsilon^2} \;\le\; \frac{\lambda^2}{\varepsilon^2}, \qquad \lambda = \sum_j \abs{\alpha_j},\ \ \sigma_j^2 = 1 - \expval{P_j}^2

The estimator E^=∑jαjp^j\hat E = \sum_j \alpha_j \hat p_j, with p^j\hat p_j the mean of mjm_j outcomes of PjP_j, is unbiased with variance ∑jαj2σj2/mj\sum_j \alpha_j^2 \sigma_j^2 / m_j, because a single ±1\pm 1 outcome has variance 1−⟨Pj⟩2=σj21 - \expval{P_j}^2 = \sigma_j^2. For any allocation with variance at most ε2\varepsilon^2 and total M=∑jmjM = \sum_j m_j, the Cauchy–Schwarz inequality gives

(∑j∣αj∣σj)2=(∑j∣αj∣σjmj mj)2≤(∑jαj2σj2mj)(∑jmj)≤ε2M,\Big(\sum_j \abs{\alpha_j}\sigma_j\Big)^2 = \Big(\sum_j \frac{\abs{\alpha_j}\sigma_j}{\sqrt{m_j}}\,\sqrt{m_j}\Big)^2 \le \Big(\sum_j \frac{\alpha_j^2\sigma_j^2}{m_j}\Big)\Big(\sum_j m_j\Big) \le \varepsilon^2 M ,

with equality for mj∝∣αj∣σjm_j \propto \abs{\alpha_j}\sigma_j. Hence the minimum total number of shots is the formula above, and since σj≤1\sigma_j \le 1 it never exceeds λ2/ε2\lambda^2/\varepsilon^2, 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 λ/ε\lambda/\varepsilon, independently of the circuit; this quadratic dependence on the inverse precision is the standard-quantum-limit scaling of sampling, in contrast with the 1/ε1/\varepsilon 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 1/ε21/\varepsilon^2 scaling.

Holds when
  • H=∑j=1LαjPjH = \sum_{j=1}^{L} \alpha_j P_j with real αj\alpha_j and Pauli strings Pj≠IP_j \ne I; the identity term is a known constant and is dropped.
  • Each ⟨Pj⟩\expval{P_j} is estimated separately by averaging mjm_j independent single-shot ±1\pm 1 outcomes on fresh copies of the state; no grouping of commuting terms, no correlated estimators.
  • Integer rounding of the mjm_j is ignored; the standard error is the square root of the variance of the unbiased estimator.

Barren plateaus

TheoremBarren plateaus for circuits that form 2-designsPeer-reviewed result

Let E(θ⃗)=⟨ψ0∣U(θ⃗)†O U(θ⃗)∣ψ0⟩E(\vec\theta) = \bra{\psi_0} U(\vec\theta)\dagg O\, U(\vec\theta) \ket{\psi_0} and ∂kE=∂E/∂θk\partial_k E = \partial E / \partial \theta_k. Under the assumptions, for every fixed W−W_- and θk\theta_k,

EW+ ⁣[∂kE]=0,EW+ ⁣[(∂kE)2]=Tr⁡(O2)d2−1⋅1−⟨ϕk∣P∣ϕk⟩22,\mathbb{E}_{W_+}\!\left[\partial_k E\right] = 0 , \qquad \mathbb{E}_{W_+}\!\left[(\partial_k E)^2\right] = \frac{\tr(O^2)}{d^2 - 1}\cdot\frac{1 - \bra{\phi_k} P \ket{\phi_k}^2}{2} ,

where ∣ϕk⟩=e−iθkP/2∣ϕ⟩\ket{\phi_k} = e^{-i\theta_k P/2}\ket{\phi}. For an nn-qubit Pauli observable, Tr⁡(O2)=d\tr(O^2) = d, so the variance is at most d/(2(d2−1))≤2−nd/(2(d^2 - 1)) \le 2^{-n}. By Chebyshev's inequality, Pr⁡[∣∂kE∣≥ε]≤2−n/ε2\Pr[\abs{\partial_k E} \ge \varepsilon] \le 2^{-n}/\varepsilon^2: 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 nn.

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 nn. 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 O(log⁡n)O(\log n) have gradients that vanish at most polynomially. A survey of the mechanisms is Larocca et al..

Holds when
  • The circuit is U(θ⃗)=W+ e−iθkP/2 W−U(\vec\theta) = W_+\, e^{-i\theta_k P/2}\, W_- on nn qubits, d=2n≥2d = 2^n \ge 2, with PP Hermitian and P2=IP^2 = I; the input is a pure state and ∣ϕ⟩=W−∣ψ0⟩\ket{\phi} = W_- \ket{\psi_0}.
  • The unitary W+W_+ (the gates after the kk-th parameter) is random and its distribution agrees with the Haar measure on U(d)U(d) in all second moments, E[W+⊗2XW+†⊗2]=EHaar[V⊗2XV†⊗2]\mathbb{E}[W_+^{\otimes 2} X W_+^{\dagger\otimes 2}] = \mathbb{E}_{\mathrm{Haar}}[V^{\otimes 2} X V^{\dagger\otimes 2}] for all XX (a unitary 2-design); W−W_- and θk\theta_k are arbitrary, possibly random and independent of W+W_+.
  • The observable OO is Hermitian and traceless, Tr⁡O=0\tr O = 0.
Proof · Proof of the barren-plateau variance formula for 2-designs

Write W=W+W = W_+, R(θ)=e−iθP/2R(\theta) = e^{-i\theta P/2} and σ=R(θk)∣ϕ⟩⟨ϕ∣R(θk)†=∣ϕk⟩⟨ϕk∣\sigma = R(\theta_k)\ketbra{\phi}{\phi}R(\theta_k)\dagg = \ketbra{\phi_k}{\phi_k}.

The derivative. Since ddθR=−i2PR\frac{d}{d\theta} R = -\frac{i}{2} P R, ddθ(R∣ϕ⟩⟨ϕ∣R†)=−i2(Pσ−σP)\frac{d}{d\theta}\big(R\ketbra{\phi}{\phi}R\dagg\big) = -\frac{i}{2}(P\sigma - \sigma P) at θ=θk\theta = \theta_k. Hence

∂kE=Tr⁡ ⁣(O WCW†),C=−i2 [P,σ].\partial_k E = \tr\!\big(O\, W C W\dagg\big), \qquad C = -\tfrac{i}{2}\,[P, \sigma] .

CC is Hermitian (the commutator of two Hermitian operators is anti-Hermitian) and traceless.

First moment. Taking X=Y⊗IX = Y \otimes I in the 2-design condition and tracing out the second factor shows E[WYW†]=EHaar[VYV†]=(Tr⁡Y/d) I\mathbb{E}[W Y W\dagg] = \mathbb{E}_{\mathrm{Haar}}[V Y V\dagg] = (\tr Y / d)\, I, the last equality because the Haar average commutes with every unitary and is therefore a multiple of II, fixed by its trace. With Y=CY = C this gives E[∂kE]=Tr⁡(O) Tr⁡(C)/d=0\mathbb{E}[\partial_k E] = \tr(O)\, \tr(C)/d = 0.

Second moment. (∂kE)2=Tr⁡ ⁣((O⊗O) W⊗2(C⊗C)W†⊗2)(\partial_k E)^2 = \tr\!\big((O \otimes O)\, W^{\otimes 2}(C \otimes C)W^{\dagger\otimes 2}\big), so by the 2-design assumption E[(∂kE)2]=Tr⁡ ⁣((O⊗O) T(C⊗C))\mathbb{E}[(\partial_k E)^2] = \tr\!\big((O\otimes O)\, T(C\otimes C)\big) with the Haar twirl T(X)=EHaar[V⊗2XV†⊗2]T(X) = \mathbb{E}_{\mathrm{Haar}}[V^{\otimes 2} X V^{\dagger\otimes 2}]. By invariance of the Haar measure, T(X)T(X) commutes with every V⊗VV \otimes V, and by Schur–Weyl duality the commutant of {V⊗V:V∈U(d)}\{V \otimes V : V \in U(d)\} is spanned by the identity II and the swap FF (with F(∣a⟩⊗∣b⟩)=∣b⟩⊗∣a⟩F(\ket{a}\otimes\ket{b}) = \ket{b}\otimes\ket{a}). So T(X)=αI+βFT(X) = \alpha I + \beta F. Because Tr⁡\tr and Tr⁡(F ⋅ )\tr(F\,\cdot\,) are invariant under conjugation by V⊗VV \otimes V (which commutes with FF), Tr⁡T(X)=Tr⁡X\tr T(X) = \tr X and Tr⁡(F T(X))=Tr⁡(FX)\tr(F\, T(X)) = \tr(F X). Using Tr⁡F=d\tr F = d, Tr⁡F2=d2\tr F^2 = d^2, and for X=C⊗CX = C \otimes C the identities Tr⁡X=(Tr⁡C)2=0\tr X = (\tr C)^2 = 0 and Tr⁡ ⁣(F(C⊗C))=Tr⁡(C2)\tr\!\big(F(C\otimes C)\big) = \tr(C^2):

αd2+βd=0,αd+βd2=Tr⁡(C2)⟹β=Tr⁡(C2)d2−1,α=−βd.\alpha d^2 + \beta d = 0, \qquad \alpha d + \beta d^2 = \tr(C^2) \quad\Longrightarrow\quad \beta = \frac{\tr(C^2)}{d^2 - 1}, \quad \alpha = -\frac{\beta}{d} .

Then, with Tr⁡ ⁣((O⊗O)I)=(Tr⁡O)2=0\tr\!\big((O\otimes O)I\big) = (\tr O)^2 = 0 and Tr⁡ ⁣((O⊗O)F)=Tr⁡(O2)\tr\!\big((O\otimes O)F\big) = \tr(O^2),

E[(∂kE)2]=β Tr⁡(O2)=Tr⁡(O2) Tr⁡(C2)d2−1.\mathbb{E}[(\partial_k E)^2] = \beta\, \tr(O^2) = \frac{\tr(O^2)\, \tr(C^2)}{d^2 - 1} .

The commutator norm. Expand C2=−14(PσPσ−Pσ2P−σP2σ+σPσP)C^2 = -\frac14\big(P\sigma P\sigma - P\sigma^2 P - \sigma P^2\sigma + \sigma P\sigma P\big). Since σ\sigma is a pure state, σPσ=⟨ϕk∣P∣ϕk⟩ σ\sigma P \sigma = \bra{\phi_k}P\ket{\phi_k}\,\sigma and σ2=σ\sigma^2 = \sigma; with P2=IP^2 = I the four traces are ⟨P⟩2\expval{P}^2, 11, 11 and ⟨P⟩2\expval{P}^2, where ⟨P⟩=⟨ϕk∣P∣ϕk⟩\expval{P} = \bra{\phi_k}P\ket{\phi_k}. Thus Tr⁡(C2)=12(1−⟨P⟩2)\tr(C^2) = \frac{1}{2}\big(1 - \expval{P}^2\big), which gives the stated formula. For a Pauli observable Tr⁡(O2)=d\tr(O^2) = d, and d/(2(d2−1))≤1/dd/(2(d^2-1)) \le 1/d for d≥2d \ge 2. 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 nn 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 H=Z+12XH = Z + \tfrac12 X and the ansatz ∣ψ(θ)⟩=Ry(θ)∣0⟩=cos⁡θ2∣0⟩+sin⁡θ2∣1⟩\ket{\psi(\theta)} = R_y(\theta)\ket{0} = \cos\frac{\theta}{2}\ket{0} + \sin\frac{\theta}{2}\ket{1}, with Ry(θ)=e−iθY/2R_y(\theta) = e^{-i\theta Y/2}. Then ⟨Z⟩=cos⁡θ\expval{Z} = \cos\theta and ⟨X⟩=sin⁡θ\expval{X} = \sin\theta, so

E(θ)=cos⁡θ+12sin⁡θ.E(\theta) = \cos\theta + \tfrac12 \sin\theta .

The eigenvalues of HH are ±1+1/4=±1.1180\pm\sqrt{1 + 1/4} = \pm 1.1180, and E(θ)E(\theta) attains the lower one at θ⋆=π+arctan⁡12=3.6052\theta^\star = \pi + \arctan\frac12 = 3.6052, where cos⁡θ⋆=−0.8944\cos\theta^\star = -0.8944 and sin⁡θ⋆=−0.4472\sin\theta^\star = -0.4472. The ansatz is exact here, so the variational bound is tight.

Gradient by parameter shift. At θ=0\theta = 0: E(π/2)=0.5E(\pi/2) = 0.5 and E(−π/2)=−0.5E(-\pi/2) = -0.5, so the shift rule gives 12(0.5−(−0.5))=0.5\frac12(0.5 - (-0.5)) = 0.5, which equals E′(0)=−sin⁡0+12cos⁡0=0.5E'(0) = -\sin 0 + \frac12\cos 0 = 0.5.

Shot budget at the optimum. The two terms do not commute and need separate measurement settings. With ⟨Z⟩2=0.8\expval{Z}^2 = 0.8 and ⟨X⟩2=0.2\expval{X}^2 = 0.2 we get σZ=0.2=0.4472\sigma_Z = \sqrt{0.2} = 0.4472 and σX=0.8=0.8944\sigma_X = \sqrt{0.8} = 0.8944, so ∑j∣αj∣σj=1⋅0.4472+0.5⋅0.8944=0.8944\sum_j \abs{\alpha_j}\sigma_j = 1 \cdot 0.4472 + 0.5 \cdot 0.8944 = 0.8944. For a standard error ε=10−3\varepsilon = 10^{-3} the optimal number of shots is 0.89442/10−6=8.0×1050.8944^2 / 10^{-6} = 8.0 \times 10^{5}, split equally (4×1054 \times 10^5 each) because ∣αZ∣σZ=∣αX∣σX\abs{\alpha_Z}\sigma_Z = \abs{\alpha_X}\sigma_X. Check: the variance is 0.2/(4×105)+0.25⋅0.8/(4×105)=10−60.2/(4\times10^5) + 0.25 \cdot 0.8/(4\times10^5) = 10^{-6}. The worst-case bound λ2/ε2\lambda^2/\varepsilon^2 with λ=1.5\lambda = 1.5 is 2.25×1062.25 \times 10^{6}. One energy to three decimal places thus costs close to a million shots even for one qubit; a gradient step with pp parameters costs 2p2p such estimates.

How small is a barren-plateau gradient?

For n=50n = 50 qubits, a Pauli observable and a circuit whose final part is a 2-design, the theorem gives Var[∂kE]≤2−50≈8.9×10−16\mathrm{Var}[\partial_k E] \le 2^{-50} \approx 8.9 \times 10^{-16}, a typical gradient of size about 3×10−83 \times 10^{-8}. Resolving it against shot noise of standard deviation about 1/M1/\sqrt{M} needs MM of order 101510^{15} 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.

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).

Part of

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. John Preskill (2018). Quantum computing in the NISQ era and beyond. Quantum 2, 79. doi:10.22331/q-2018-08-06-79
  2. Alberto Peruzzo, Jarrod McClean, Peter Shadbolt, … Jeremy L. O'Brien (2014). A variational eigenvalue solver on a photonic quantum processor. Nature Communications 5, 4213. doi:10.1038/ncomms5213arXiv:1304.3061
  3. Jarrod R. McClean, Jonathan Romero, Ryan Babbush, Alán Aspuru-Guzik (2016). The theory of variational hybrid quantum-classical algorithms. New Journal of Physics 18, 023023. doi:10.1088/1367-2630/18/2/023023arXiv:1509.04279
  4. Abhinav Kandala, Antonio Mezzacapo, Kristan Temme, … Jay M. Gambetta (2017). Hardware-efficient variational quantum eigensolver for small molecules and quantum magnets. Nature 549, 242-246. doi:10.1038/nature23879arXiv:1704.05018
  5. Harper R. Grimsley, Sophia E. Economou, Edwin Barnes, Nicholas J. Mayhall (2019). An adaptive variational algorithm for exact molecular simulations on a quantum computer. Nature Communications 10, 3007. doi:10.1038/s41467-019-10988-2arXiv:1812.11173
  6. M. Cerezo, Andrew Arrasmith, Ryan Babbush, … Patrick J. Coles (2021). Variational quantum algorithms. Nature Reviews Physics 3, 625-644. doi:10.1038/s42254-021-00348-9arXiv:2012.09265
  7. Kosuke Mitarai, Makoto Negoro, Masahiro Kitagawa, Keisuke Fujii (2018). Quantum circuit learning. Physical Review A 98, 032309. doi:10.1103/PhysRevA.98.032309arXiv:1803.00745
  8. Maria Schuld, Ville Bergholm, Christian Gogolin, … Nathan Killoran (2019). Evaluating analytic gradients on quantum hardware. Physical Review A 99, 032331. doi:10.1103/PhysRevA.99.032331arXiv:1811.11184
  9. David Wierichs, Josh Izaac, Cody Wang, Cedric Yen-Yu Lin (2022). General parameter-shift rules for quantum gradients. Quantum 6, 677. doi:10.22331/q-2022-03-30-677arXiv:2107.12390
  10. James Stokes, Josh Izaac, Nathan Killoran, Giuseppe Carleo (2020). Quantum Natural Gradient. Quantum 4, 269. doi:10.22331/q-2020-05-25-269arXiv:1909.02108
  11. Dave Wecker, Matthew B. Hastings, Matthias Troyer (2015). Progress towards practical quantum variational algorithms. Physical Review A 92, 042303. doi:10.1103/PhysRevA.92.042303arXiv:1507.08969
  12. Hsin-Yuan Huang, Richard Kueng, John Preskill (2020). Predicting many properties of a quantum system from very few measurements. Nature Physics 16, 1050-1057. doi:10.1038/s41567-020-0932-7arXiv:2002.08953
  13. Jarrod R. McClean, Sergio Boixo, Vadim N. Smelyanskiy, … Hartmut Neven (2018). Barren plateaus in quantum neural network training landscapes. Nature Communications 9, 4812. doi:10.1038/s41467-018-07090-4arXiv:1803.11173
  14. M. Cerezo, Akira Sone, Tyler Volkoff, … Patrick J. Coles (2021). Cost function dependent barren plateaus in shallow parametrized quantum circuits. Nature Communications 12, 1791. doi:10.1038/s41467-021-21728-warXiv:2001.00550
  15. Zoë Holmes, Kunal Sharma, M. Cerezo, Patrick J. Coles (2022). Connecting ansatz expressibility to gradient magnitudes and barren plateaus. PRX Quantum 3, 010313. doi:10.1103/PRXQuantum.3.010313arXiv:2101.02138
  16. Samson Wang, Enrico Fontana, M. Cerezo, … Patrick J. Coles (2021). Noise-induced barren plateaus in variational quantum algorithms. Nature Communications 12, 6961. doi:10.1038/s41467-021-27045-6arXiv:2007.14384
  17. Lennart Bittel, Martin Kliesch (2021). Training variational quantum algorithms is NP-hard. Physical Review Letters 127, 120502. doi:10.1103/PhysRevLett.127.120502arXiv:2101.07267
  18. Martin Larocca, Supanut Thanasilp, Samson Wang, … M. Cerezo (2025). Barren plateaus in variational quantum computing. Nature Reviews Physics 7, 174-189. doi:10.1038/s42254-025-00813-9arXiv:2405.00781
  19. M. Cerezo, Martin Larocca, Diego García-Martín, … Zoë Holmes (2025). Does provable absence of barren plateaus imply classical simulability?. Nature Communications 16, 7907. doi:10.1038/s41467-025-63099-6arXiv:2312.09121
  20. Michael A. Nielsen, Isaac L. Chuang (2010). Quantum Computation and Quantum Information (10th Anniversary Edition). Cambridge University Press. doi:10.1017/CBO9780511976667
  21. Vladyslav Verteletskyi, Tzu-Ching Yen, Artur F. Izmaylov (2020). Measurement optimization in the variational quantum eigensolver using a minimum clique cover. The Journal of Chemical Physics 152, 124114. doi:10.1063/1.5141458arXiv:1907.03358

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Own text checked: one-qubit VQE recomputed in Python (eigenvalues +-1.1180, theta* = 3.6052, cos -0.8944, sin -0.4472, E = -1.1180; parameter-shift gradient 0.5; shot budget sum |alpha| sigma = 0.8944, 8.0e5 shots split equally, variance 1e-6, worst case 2.25e6); barren-plateau numbers 2^-50 = 8.9e-16, gradient ~3e-8. Mechanism and status claims compared with abstracts of Holmes et al. arXiv:2101.02138, Cerezo et al. arXiv:2001.00550, Wang et al. arXiv:2007.14384, Bittel-Kliesch arXiv:2101.07267, Cerezo et al. arXiv:2312.09121, and the review Cerezo et al. arXiv:2012.09265; Schuld et al. arXiv:1811.11184 for shift rules. Wierichs et al., Stokes et al., Larocca et al. checked by Crossref metadata only (their sentences are descriptive). Embedded records carry their own review states.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e

Current revision 6016c6f2d14ed89f. Source file knowledge/records/topic/variational-quantum-algorithms.md in the content repository (readable there once it is public).