DeepPractise
DeepPractise

Variational Quantum Eigensolver (VQE) – Overview

Track: Variational & NISQ Algorithms · Difficulty: Intermediate · Est: 14 min

Variational Quantum Eigensolver (VQE) – Overview

Overview

VQE is a variational algorithm designed to estimate the ground-state energy of a quantum system.

In many scientific and engineering problems, you have a Hamiltonian HH (an energy operator) and you want:

  • the lowest possible energy value (ground-state energy)
  • and sometimes an approximation of the corresponding ground state

VQE matters in the NISQ era because many “textbook” quantum approaches to eigenvalues, like full Quantum Phase Estimation (QPE), require deep, precise circuits. VQE instead uses a hybrid quantum–classical loop with relatively shallow circuits and many repeated measurements.

Intuition

Why we care about ground-state energy

Ground states are where many physical systems “live” at low temperature. Knowing the ground-state energy can tell you:

  • whether a configuration is stable
  • how a system changes when parameters change
  • what the lowest-energy arrangement looks like

Why QPE is impractical on NISQ

QPE is powerful, but it tends to require:

  • long coherent evolution
  • controlled operations that are deep
  • high fidelity across many steps

NISQ devices have limited coherence time and noisy gates. So VQE takes a different approach:

  • don’t try to compute the eigenvalue directly via long coherent interference
  • instead, propose a family of “guess states,” evaluate their energy, and improve the guess

The hybrid loop (the core idea)

VQE repeats a simple cycle:

  1. The quantum computer prepares a parameterized state ψ(θ)|\psi(\theta)\rangle.
  2. The quantum computer measures the energy estimate ψ(θ)Hψ(θ)\langle \psi(\theta)|H|\psi(\theta)\rangle.
  3. A classical optimizer updates θ\theta to try to reduce the energy.

Over time, the parameters move toward a lower-energy state.

Formal Description

VQE relies on a variational principle:

  • For any normalized state ψ|\psi\rangle, the expected energy ψHψ\langle\psi|H|\psi\rangle is always at least the true ground-state energy.

So if you can find a state with low expected energy, you have an upper bound on the ground energy.

In VQE you choose an ansatz (a parameterized circuit) that produces states ψ(θ)|\psi(\theta)\rangle. You then try to solve the optimization problem:

  • minimize the cost function C(θ)=ψ(θ)Hψ(θ)C(\theta) = \langle \psi(\theta)|H|\psi(\theta)\rangle

Key realities (important for honesty):

  • You only minimize over the states your ansatz can reach.
  • Noise and finite sampling mean you don’t observe the true expectation value, only an estimate.
  • A “low energy” result is evidence, not a proof, that you found the true ground state.

Worked Example

Consider a 1-qubit toy Hamiltonian:

H=Z.H = Z.

The two eigenstates are:

  • 0|0\rangle with energy +1
  • 1|1\rangle with energy −1 (the ground state)

Pick a simple ansatz:

  • prepare ψ(θ)=Ry(θ)0|\psi(\theta)\rangle = R_y(\theta)|0\rangle

As you vary θ\theta, the state moves from 0|0\rangle toward 1|1\rangle.

Energy measurement:

  • measuring Z\langle Z \rangle tells you the expected energy

A classical optimizer would push θ\theta toward the value that makes the energy as low as possible. In the ideal case, it converges to 1|1\rangle with energy −1.

This tiny example shows the full VQE shape:

  • parameterized circuit
  • expectation-value measurement
  • classical optimization

Turtle Tip

Turtle Tip

VQE is “search for the lowest energy” using a hybrid loop. The quantum computer evaluates energies; the classical computer decides how to change parameters.

Common Pitfalls

Common Pitfalls
  • Treating VQE as a guaranteed ground-state solver. It is limited by ansatz expressivity, optimization difficulty, and noise.
  • Thinking VQE avoids hard quantum problems. It often replaces deep circuits with many measurements and a hard classical optimization.
  • Over-interpreting a single final energy number. You also need to consider uncertainty, noise bias, and whether the ansatz can represent the true ground state.

Quick Check

Quick Check
  1. What quantity does VQE try to minimize?
  2. Why is QPE often impractical on NISQ devices?
  3. Name the three steps of the VQE hybrid loop.

What’s Next

Next we focus on a make-or-break component of VQE: ansatz design. The choice of parameterized circuit determines which states are reachable and how difficult optimization will be.