Algorithms
Variational Quantum Eigensolver (VQE)
A hybrid algorithm that estimates the lowest energy of a quantum system by tuning a short circuit with a classical optimiser.
Definition
The variational quantum eigensolver, or VQE, is a hybrid quantum-classical algorithm for estimating the ground-state energy of a Hamiltonian, such as that of a molecule. A quantum computer prepares a trial state using a parameterised circuit and measures its energy, and a classical optimiser adjusts the parameters to lower that energy.
In depth
The method has three ingredients. The first is the Hamiltonian, written as H = Σ cᵢ Pᵢ where each Pᵢ is a product of Pauli operators and each cᵢ a number. The second is the ansatz, a circuit with adjustable angles that defines which states can be reached. The third is the classical optimiser. Because energies are measured by sampling, every evaluation has statistical noise of order 1/√shots, and an optimiser must cope with it.
The shallow circuits are what make VQE attractive for noisy devices, since a short circuit has less time to accumulate errors. The price is a large number of measurements: a molecular Hamiltonian can contain thousands of Pauli terms, and each must be estimated to useful precision. Methods for grouping commuting terms reduce this cost.
Two obstacles are widely discussed. The first is the barren plateau, where gradients vanish exponentially with system size for some circuit families, making optimisation hard. The second is that the ansatz may not contain a state close to the true ground state. Our lesson on VQE shows a worked example with a small Hamiltonian.
Technical Definition
VQE relies on the variational principle: for any normalised trial state |ψ(θ)⟩, the expectation value ⟨ψ(θ)|H|ψ(θ)⟩ is greater than or equal to the true ground-state energy E₀. The Hamiltonian is written as a sum of Pauli strings, each term is measured separately over many shots, the energies are added classically, and an optimiser such as COBYLA or gradient descent updates θ. The loop repeats until the energy converges.
Visual Explanation: An Analogy
Think of tuning a guitar by ear. You pluck the string (run the circuit), listen to how far off the pitch is (measure the energy), and turn the peg a little (update the parameters). You repeat until it sounds right. The guitar is the quantum part and your ear and hand are the classical optimiser.
Key facts
| Item | Detail |
|---|---|
| Introduced | Peruzzo and colleagues, 2014, on a photonic processor |
| Principle | Variational principle: trial energy is at least the ground-state energy |
| Structure | Quantum circuit plus classical optimiser loop |
| Weakness | Barren plateaus and measurement cost |
Where the idea comes from
VQE was demonstrated experimentally in 2014 by Peruzzo and colleagues using a photonic quantum processor to find the ground-state energy of a small molecule, and became the flagship algorithm of the noisy intermediate-scale era.
Real-World Use Cases
- Estimating molecular ground-state energies on near-term hardware
- Studying small models of materials
- Testing hybrid workflows on noisy devices
How it differs from related ideas
- Compared with quantum phase estimation, VQE needs far shallower circuits but gives no guaranteed accuracy and needs many measurements.
- Compared with classical methods such as coupled cluster, VQE targets the same energies but represents the state on quantum hardware.
Common Misconceptions
- VQE is not guaranteed to find the true ground state. It finds the best energy reachable by the chosen circuit and optimiser.
- VQE does not yet beat classical chemistry methods on useful problems. Demonstrations so far are on small molecules.
Frequently asked questions
What does VQE compute?
An upper bound on the ground-state energy of a Hamiltonian.
Why is it called hybrid?
Because a quantum computer evaluates the energy and a classical computer updates the parameters.
Does VQE need error correction?
No, that is its appeal, but noise limits the accuracy it can reach.
Related Terms
- Ansatz
- Hamiltonian
- Variational Quantum Algorithm
- Hybrid Quantum-Classical Computing
- Barren Plateau
- Quantum Chemistry Simulation