Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Variational quantum eigensolver

A hybrid method that minimizes a measured energy expectation over a parameterized family of quantum states.

Also called VQE

Edition released Coverage: Overview · Technical
On this page

Definition and significance

The variational quantum eigensolver, or VQE, searches for a low-energy state by adjusting circuit parameters with a classical optimizer. A quantum processor estimates expectation values; the optimizer selects new parameters. This division can reduce the coherent circuit requirements relative to direct phase estimation, but introduces state-family bias, optimization difficulty and measurement cost.

For any normalized state and Hermitian Hamiltonian H, its exact energy expectation is at least the lowest eigenvalue E0. This variational inequality motivates the method. The inequality applies to the true expectation of the specified Hamiltonian; a finite-shot estimator, mitigation procedure or optimization over noisy estimates can report a number below E0 without discovering a lower physical eigenvalue.

Mechanism and mathematical treatment

Let |psi(theta)>=U(theta)|0>. The objective is E(theta)=<psi(theta)|H|psi(theta)>. If H=sum_j h_j P_j with Pauli strings P_j, estimate each required expectation and combine them. Independent measurement contributions have variance sum_j h_j^2 Var(P_j)/N_j, although commuting-group measurements introduce covariances that need separate accounting.

The spectral expansion |psi>=sum_k c_k|E_k> gives E=sum_k |c_k|^2 E_k >= E0. A low energy alone does not establish high ground-state overlap unless the relevant spectral gap is known. With a nondegenerate ground state and gap Delta, 1-|c0|^2 <= (E-E0)/Delta.

Fully worked reference example

Choose H=Z+(1/2)X and ansatz R_Y(theta)|0>. Then <Z>=cos(theta), <X>=sin(theta), and E(theta)=cos(theta)+(1/2)sin(theta). Write E=sqrt(5)/2 cos(theta-alpha), where cos(alpha)=2/sqrt(5) and sin(alpha)=1/sqrt(5). The minimum is -sqrt(5)/2 at theta=pi+alpha. Direct diagonalization of [[1,1/2],[1/2,-1]] gives the same eigenvalues plus or minus sqrt(5)/2.

This one-parameter family spans real qubit states and contains the ground state of this real Hamiltonian. If the ansatz were restricted to computational-basis states, its best energy would be -1, leaving a positive ansatz error sqrt(5)/2-1 even with perfect measurement and optimization.

Limitations and common misconceptions

VQE is not proven to solve arbitrary chemistry instances efficiently. A shallow circuit can be hard to train or insufficiently expressive; a highly expressive circuit can require many parameters and measurements. Comparisons should include classical electronic-structure approximations at matching accuracy, not only exact diagonalization.

Scientific relationships

The chosen state family defines the variational search space.

Suitable circuit parameters can be differentiated through shifted expectation evaluations.

A Hamiltonian expansion determines measurable expectation terms.

Historical source context

The Peruzzo and collaborators preprint was submitted on 10 April 2013; its Nature Communications article appeared in 2014. The paper included an experimental photonic demonstration, distinct from a general proof of practical advantage.

A two-qubit variational family with an analytic optimum

Consider H=-Z0Z1-(X0+X1)/2. The operator commutes with X0X1, so the symmetric Bell states |Phi+> and |Psi+> span an invariant sector with X0X1 eigenvalue +1. In the ordered basis (|Phi+>,|Psi+>), the Hamiltonian is [[-1,-1],[-1,1]]. The remaining Bell states |Phi-> and |Psi-> have energies -1 and +1, respectively. Diagonalizing the two-dimensional block gives energies plus and minus sqrt(2), so the full ground energy is -sqrt(2).

Choose the normalized ansatz |psi(theta)>=cos(theta)|Phi+>+sin(theta)|Psi+>. Its expectation is E(theta)=-cos(2theta)-sin(2theta). Differentiating gives E'(theta)=2sin(2theta)-2cos(2theta), which vanishes at theta=pi/8 modulo pi/2. The second derivative at pi/8 is 4sqrt(2), so this point is a minimum. Substituting gives -sqrt(2), proving that this ansatz contains the exact ground state for this particular Hamiltonian.

One preparation starts with R_Y(2theta) on q1, then H on q0, then CNOT q0->q1. The first two steps give cos(theta)|+0>+sin(theta)|+1>; the CNOT produces exactly the desired Bell-state combination. This uses two single-qubit gates and one entangling gate before measurement. It is a complete circuit construction, rather than an assumption that an arbitrary state in the invariant sector is available for free.

A restricted family can have a flat but incorrect optimum

Now restrict the state to cos(theta)|00>+sin(theta)|11>. Its Z0Z1 expectation is always one, and each single-qubit X expectation is zero because X maps the state into the odd-parity sector. Consequently its energy is always -1. Every parameter value is an optimizer, yet the energy error is sqrt(2)-1. A zero gradient here is caused by an unsuitable state family, not by successful ground-state preparation and not by a statistical barren-plateau diagnosis.

The restricted family includes highly entangled states, so entanglement alone does not diagnose expressivity for the chosen objective. Conversely, the successful family uses the Hamiltonian's symmetry to reduce the search to one parameter. Its usefulness depends on matching the sector containing the ground state. If the sector were chosen incorrectly, perfect optimization would yield only the lowest energy in that sector.

The full spectral gap above the ground is Delta=sqrt(2)-1, because the next energy is -1. If a normalized state has exact energy E=-sqrt(2)+0.01, its ground-state infidelity is at most 0.01/(sqrt(2)-1), approximately 0.024142. This overlap bound uses the full gap, not the larger separation between the two eigenvalues within the selected two-dimensional block. If symmetry is independently guaranteed, a stronger sector-specific bound may be appropriate, but that is an additional assumption.

Measurement noise despite an exact eigenstate

At the optimum, <Z0Z1>=1/sqrt(2) and <X0>=<X1>=1/sqrt(2). Each of these Pauli measurements has variance one-half. If each term is measured on N independent preparations, the energy estimator variance is (1^2+1/2^2+1/2^2)(1/2)/N=3/(4N). The total preparation count is 3N under this separate-measurement strategy. The physical energy variance of the exact ground state is zero, but the termwise estimator still fluctuates because different noncommuting measurements are performed on different copies.

The two X terms can instead be measured together in the X basis. Their covariance must then be included. Since <X0X1>=1 and both marginal means are 1/sqrt(2), the covariance is one-half. The variance of -(X0+X1)/2 is therefore one-half, not one-quarter. Grouping reduces the number of distinct measurement circuits but does not automatically reduce variance for a fixed total number of shots. An allocation decision must use the grouped estimator's actual variance.

Optimization can preferentially select downward statistical fluctuations. A minimum among many noisy energy estimates can lie below the true ground energy without violating the variational principle, which applies to exact state expectations. An independent final evaluation at the selected parameters estimates the reported energy without reusing the same selection noise. Its uncertainty should be kept separate from ansatz bias and optimization error.

Sources

  • Alberto Peruzzo et al. · · Research paper · Publication status unspecified · arXiv · DOI 10.1038/ncomms5213
    Verification scope

    Selected source text checked ·

    Primary formal source anchor; original worked examples independently derived, not reported experiments.

  • Jarrod R. McClean et al. · · Research paper · Publication status unspecified · arXiv · DOI 10.1038/s41467-018-07090-4
    Verification scope

    Selected source text checked ·

    Formal or reference-semantic source anchor only; no SDK execution, hardware run, or empirical advantage is asserted. Original worked examples are independent mathematical constructions.