09 / Scientific applications · LESSON 20 / 27 · 25 MIN
The variational quantum eigensolver.
Build the prepare-measure-optimize loop and weigh its limits.
θ → |ψ(θ)⟩ → ⟨H⟩ → classical update
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
Sign in with email or a wallet to check your answers and keep your lesson progress in sync.