/ quantum course Back to lab
PATHWAY PROGRESS0/27 passed

09 / Scientific applications · LESSON 20 / 27 · 25 MIN

The variational quantum eigensolver.

Build the prepare-measure-optimize loop and weigh its limits.

The energy objective

Prepare a parameterized ansatz and estimate E(θ)=⟨ψ(θ)|H|ψ(θ)⟩. For normalized states the variational principle guarantees E(θ)≥E₀. Measuring the Pauli terms over repeated preparations gives the energy estimates.

A worked example

For H=Z and |ψ(θ)⟩=Ry(θ)|0⟩ we get E(θ)=cos θ. At θ=π the state is |1⟩ with energy −1, the ground energy. For suitable Pauli rotations, the derivative equals half the difference of the energies at θ±π/2.

Optimizing in practice

Shot noise, imperfect ansätze, barren plateaus and hardware errors can all get in the way. Compare against classical methods of equal accuracy and count the optimizer and measurement costs. A low estimated energy should come with its uncertainty.

TEST YOURSELF

Lesson quiz

Get all 2 questions right to pass. Retry as often as you like.

0/2 answered

1. What is the minimum energy of H=Z?
2. Which part usually updates the VQE parameters?

Sign in with email or a wallet to check your answers and keep your lesson progress in sync.

Your account

Sign in to pick up your progress on any device.

or

Wallet sign-in uses a free signature (EIP-4361) on whatever EVM network your wallet is on. No gas, no transaction.