How VQE works

VQE is a hybrid algorithm: a quantum circuit prepares trial states and measures energies, while a classical computer optimizes the circuit parameters. This separation allows VQE to run on today's noisy hardware without full error correction.

1

Ansatz: parameterized trial state

An ansatz is a parameterized quantum circuit that represents a candidate quantum state. The circuit contains tunable rotation angles as parameters. The quality of VQE depends heavily on the ansatz choice - it needs enough expressivity to represent the ground state but not so much depth that noise dominates on real hardware.

2

Energy measurement

The quantum computer runs the ansatz circuit and measures the expected value of the molecular Hamiltonian (the energy operator for the molecule). This measurement is repeated many times to get a statistical estimate. The variational principle guarantees that this estimate is always an upper bound on the true ground state energy.

3

Classical cost function minimization

A classical optimizer (COBYLA, SPSA, L-BFGS-B) receives the measured energy and updates the ansatz parameters to reduce it. This loop runs iteratively - quantum measurement, classical update, quantum measurement - until the energy converges. The final energy is the VQE estimate of the ground state energy.

4

NISQ-era design

VQE was designed specifically for NISQ (Noisy Intermediate-Scale Quantum) devices. By keeping circuits shallow and offloading optimization to classical computers, it avoids the deep circuits that quantum error correction would require. This makes it runnable today, at the cost of being heuristic rather than provably exact.

VQE applications

Ground state energy is a gateway quantity in chemistry and materials science. If you can compute it accurately, many downstream properties follow.

Molecular ground state energy

The most direct application. VQE computes the electronic ground state energy of a molecule - the lowest energy its electrons can occupy. This determines bond lengths, vibrational frequencies, and thermodynamic stability.

Drug discovery

Drug molecules bind to target proteins via quantum-mechanical interactions (van der Waals forces, hydrogen bonding, electrostatics). Accurately modeling these interactions requires quantum chemistry calculations. VQE could eventually model binding affinities for larger molecules than classical methods can handle.

Materials design

Battery electrolytes, superconductors, and photovoltaic materials have electronic properties determined by their quantum ground states. VQE could guide the search for better materials by accurately predicting properties before synthesis.

Quantum chemistry

Classical quantum chemistry methods like CCSD(T) scale poorly with system size. For molecules with strongly correlated electrons - transition metal complexes, exotic catalysts, nitrogen fixation - classical methods struggle. VQE targets exactly this regime.

Courses covering VQE

Quantum computing courses that include the Variational Quantum Eigensolver in their curriculum.

VQE tutorials

Hands-on implementations in Qiskit and PennyLane, from basic setup to full molecular simulations.

Frequently asked questions

What is VQE used for?
VQE (Variational Quantum Eigensolver) is used to estimate the ground state energy of quantum systems - primarily molecules and materials. The ground state energy determines molecular stability, reaction energy, and electronic properties. Applications include drug discovery (modeling how drug molecules bind to proteins), materials design (discovering new battery materials, catalysts, semiconductors), and fundamental quantum chemistry research.
How is VQE different from QPE?
Quantum Phase Estimation (QPE) also computes ground state energies but requires deep circuits with many qubits and full error correction - well beyond current hardware. VQE trades provable exactness for practical runnability: it uses a shallow parameterized circuit (ansatz) and a classical optimizer to find a low-energy state. VQE is less accurate than QPE in principle but runnable on today's NISQ devices. QPE is the eventual goal; VQE is the NISQ-era workaround.
Is VQE practical on current quantum hardware?
For small molecules (H2, LiH, BeH2) VQE has been demonstrated on real quantum hardware, producing results in reasonable agreement with classical methods. For larger, more chemically interesting molecules, hardware noise and limited qubit counts are still blocking practical advantage. VQE represents one of the most credible near-term use cases for quantum computing, but demonstrating advantage over classical computation for industrially relevant molecules is still an open problem.
How do I implement VQE in Qiskit?
Qiskit provides a VQE class in qiskit-algorithms. You need three ingredients: an ansatz circuit (Qiskit offers EfficientSU2 and TwoLocal as built-in options), a classical optimizer (COBYLA, SPSA, or L-BFGS-B work well), and a Hamiltonian for your problem (Qiskit Nature can generate molecular Hamiltonians from PySCF). Our VQE tutorials walk through a complete H2 molecule example from Hamiltonian construction to energy convergence.