Variational Quantum Eigensolver

Research
Introduced by
Alberto Peruzzo
Year
2014
Type
Hybrid quantum-classical algorithm
Family
Variational Algorithm

What does it do?

The Variational Quantum Eigensolver (VQE) is a hybrid quantum-classical algorithm for estimating the lowest eigenvalue of a Hamiltonian, usually the ground-state energy of a molecule or material. It relies on the variational principle: the energy of any trial state is not below the ground-state energy, so minimising it over a parameterised family of states gives an estimate that improves as the optimisation proceeds.

Peruzzo et al. introduced the approach in 2014 and demonstrated it on a photonic quantum processor for the ground-state energy of He–H+.

The intuition behind the method

VQE divides the work between a quantum processor and a classical computer. A parameterised quantum circuit, called the ansatz, prepares a trial state, and the energy of that state is estimated from repeated measurements. A classical optimiser then updates the circuit parameters to lower the estimated energy, and the loop repeats. The quantum device therefore runs relatively shallow circuits, while the search over parameters is handled classically. Because the energy is estimated statistically, the final accuracy is limited by the number of measurements and by hardware noise as well as by the optimiser.

History

Peruzzo et al. introduced VQE in 2014 as a way to find the ground-state energy of He–H+ by combining a photonic quantum processor with a conventional computer, motivated by the coherence demands of quantum phase estimation. McClean, Romero and Aspuru-Guzik (2016) extended the theory, explored the unitary coupled cluster ansatz for chemistry, and examined derivative-free optimisation. Cao et al. reviewed hybrid quantum-classical approaches of this kind for drug discovery on noisy intermediate-scale quantum devices.

When to use it

Choose VQE when you need a ground-state energy for a molecule or another Hamiltonian, you have access to a quantum processor or a realistic noisy simulator, and the circuits required by exact phase estimation exceed what current hardware can coherently run. It suits problems where a physically motivated ansatz can be designed and the classical optimisation loop is affordable. Do not choose VQE when a fault-tolerant device can run quantum phase estimation, which needs fully coherent evolution but does not require a variational search. It is also a poor fit when no reasonable ansatz is known, because results depend strongly on that choice, or when a classical method already solves the problem accurately at the required size.

Limitations and considerations

  • Final accuracy depends on whether the ansatz can represent the target state; a fixed ansatz has a limited range of states it can reach.
  • Energy estimates are statistical, so accurate results need many repeated measurements per evaluation, which multiplies the number of circuit runs.
  • Ansatz design is problem-specific and usually needs expert input.
  • In larger systems the cost landscape can contain barren plateaus, regions where gradients become very small and optimisation stalls; this effect is reported in later work on variational algorithms.
  • Hardware noise biases the measured energies, so the optimiser may settle on parameters that reflect the noise rather than the true ground state.
  • Assumptions: the Hamiltonian must be written as a weighted sum of measurable terms (for example Pauli strings), and fermionic systems require a fermion-to-qubit mapping whose choice affects circuit cost. The variational bound applies to every state the ansatz can prepare, so the optimised energy cannot fall below the true ground-state energy, but it stays above it when the ansatz does not contain the ground state.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Needs only shallow quantum circuits, which is the main reason it is considered for noisy near-term devices. Peruzzo et al. present it as greatly reducing the coherence-time requirement relative to quantum phase estimation.
  • Divides the work so that the quantum processor evaluates energies while the classical optimiser handles the search over parameters.
  • The ansatz is a free design choice, so physical or chemical knowledge about the system can be built into the circuit structure.
  • The optimiser can be chosen independently of the circuit; McClean et al. show that modern derivative-free optimisers can offer computational savings of up to three orders of magnitude over previously used techniques.

Applications

  • Ground-state energy calculations for molecules, the use case demonstrated in the original work on a small molecule.
  • Quantum chemistry tasks relevant to drug discovery, which Cao et al. discuss as a candidate application of hybrid methods.
  • Excited-state studies, which require extensions beyond standard VQE.
  • Simulation of other quantum Hamiltonians, since the method is not specific to chemistry.

How it works

How it works

1

Prepare a parameterised quantum circuit (the ansatz) on the quantum processor. The ansatz structure is chosen for the problem; for chemistry, the unitary coupled cluster (UCC) form is a common choice.

2

A classical optimiser, gradient-based or gradient-free, adjusts the ansatz parameters to lower the measured energy. The choice of optimiser affects how many circuit evaluations are needed; McClean et al. report that modern derivative-free optimisation techniques can offer computational savings of up to three orders of magnitude over previously used optimisation techniques.

3

Estimate the expectation value of the Hamiltonian for the prepared state by repeating measurements and averaging the outcomes. The estimate is statistical, so its precision depends on the number of repetitions (shots) and on how the measurements are grouped.

4

Repeat preparation, measurement and parameter update until a stopping criterion is met, for example when the energy changes little between iterations. The result is typically a local minimum of the cost landscape, which need not be the global ground state; it depends on the ansatz and the starting parameters.

Common pitfalls

  • An ansatz that is too restrictive can make the true ground state unreachable; the optimised energy then stays above the correct value, and the optimiser gives no warning of this.
  • Underestimating measurement overhead: each energy evaluation averages many shots, and the optimisation loop repeats that evaluation many times.
  • Using gradient-based optimisers on a flat cost landscape: where gradients are negligible, updates carry little information and a run can appear converged when it has not moved.
  • Treating a noisy energy as exact: systematic errors and measurement biases shift the apparent minimum, and the statistical error bar does not capture them.
  • Trusting a single run: the optimiser can stop at a local minimum, so repeat the optimisation from several starting parameter sets and compare the final energies; widely differing values mean the result is not yet reliable.
  • Skipping benchmarks and reporting: test the ansatz and optimiser on a small system with a known exact energy, for example one obtained by classical diagonalisation, before applying them to the target problem. Report the number of shots together with the energy, and note that the statistical error bar excludes hardware bias.

Frequently asked questions

What is an ansatz and how do I choose one?

An ansatz is a parameterised quantum circuit whose structure is chosen to represent states relevant to the problem. In chemistry, the unitary coupled cluster (UCC) form is a common choice, and McClean et al. explore it in the context of VQE. The choice depends on the physics of the system and on the number of qubits available. A more expressive ansatz can represent more states but generally needs more circuit resources.

Why use VQE on near-term devices instead of quantum phase estimation?

Peruzzo et al. present VQE as a way to reduce the coherence-time requirement, because its circuits are shallower than those of phase estimation and the classical optimiser carries the search. The trade-off is many repeated circuit runs and sensitivity to hardware noise.

How many measurements do I need to estimate the energy accurately?

The statistical error in the estimated energy shrinks as more shots are collected, roughly in proportion to one over the square root of the number of shots, so halving the error requires about four times as many repetitions. The number needed therefore depends on the precision you require and on the spread of measurement outcomes for the Hamiltonian being measured. Check how the estimate converges for your own problem rather than relying on a fixed figure, and remember that the statistical error bar does not capture hardware bias.

What is a barren plateau and how can I avoid it?

A barren plateau is a region of parameter space where gradients become exponentially small in the system size, so optimisation stalls. Mitigation is an active research area, and the approaches explored so far are largely problem-specific. In practice, ansatz choice and optimiser selection matter. McClean et al. present derivative-free optimisers for computational savings rather than as a response to barren plateaus.

Can VQE find excited states or just the ground state?

Standard VQE targets the ground state. Excited-state variants modify the cost function or add constraints, such as orthogonality conditions that keep the search away from lower-lying states. Consult the specialised literature on a given variant before relying on it.

Related methods

Sources

  1. Peruzzo, A., McClean, J., Shadbolt, P., et al. (2014). A variational eigenvalue solver on a photonic quantum processor. Nature Communications, 5, 4213.

    Open DOI reference
  2. McClean, J. R., Romero, J., Aspuru-Guzik, A. (2016). The theory of variational hybrid quantum-classical algorithms. New Journal of Physics, 18, 023023.

    Open DOI reference
  3. Cao, Y., Romero, J., Aspuru-Guzik, A. (2021). Potential of quantum computing for drug discovery. IBM Journal of Research and Development, 62, 6:1-6:20.

    Open DOI reference