L12: Variational Quantum Eigensolvers (Ground States of Molecules & Materials on NISQ Hardware)
Learning Objectives¶
State the variational principle and the VQE hybrid loop.
Build hardware-efficient and chemistry-inspired (UCCSD) ansätze.
Estimate from shots; budget measurements per iteration.
Recognize failure modes: barren plateaus, local minima, noise floors.
The Variational Principle¶
For any parameterized state :
Minimizing over upper-bounds — and ideally reaches — the ground-state energy.
Eureka! VQE splits the work: the QPU prepares and measures a state classical computers cannot store; the CPU does the optimization it is good at.
The VQE Loop¶
Map problem to qubit Hamiltonian (L11: Jordan-Wigner).
Prepare ansatz (e.g. Hartree-Fock reference).
Measure each Pauli group; assemble .
Classical optimizer updates (COBYLA, SPSA, gradient via parameter-shift).
Repeat to convergence; report energy ± shot-noise error bar.
Ansatz Design¶
Hardware-efficient: layers of single-qubit rotations + entangling gates matching the device coupling map. Cheap, expressive, but physics-blind.
UCCSD: with single/double excitations, Trotterized. Chemically motivated; deeper circuits.
ADAPT-VQE: grow the ansatz operator-by-operator using gradient screening.
Symmetry helps: conserve particle number and spin to shrink the search space.
Eureka! Ansatz choice is the modeling step — the same judgment call as choosing a trial wavefunction in classical variational Monte Carlo.
Gradients & Measurement Budget¶
Parameter-shift rule (exact for gates ):
Shot noise: estimating to precision costs shots.
Eureka! Chemical accuracy is mHa eV — the shot budget, not the circuit, is often the bottleneck.
Failure Modes¶
Barren plateaus: for deep random ansätze, gradients vanish exponentially in . Mitigate: shallow/local ansätze, good initialization (HF), layerwise training.
Local minima in a nonconvex landscape; use restarts / SPSA.
Noise floor: decoherence biases upward — motivation for error mitigation (L17, Semester 2).
Materials-Science Targets¶
Dissociation curves (H, LiH): the “hello world” of quantum chemistry.
Hubbard model plaquettes: correlated-electron physics beyond mean field.
Defect centers (NV, divacancies): small active spaces embedded in DFT — quantum embedding.
Related variational cousins: QAOA for combinatorial problems (alloy/structure search).
Eureka! The realistic near-term role: quantum solves a small strongly-correlated active space; classical DFT/DMFT handles the rest. Know both sides.
Mini-Lab¶
VQE for H at 5 bond lengths (2-qubit reduced Hamiltonian); plot dissociation curve vs. exact diagonalization.
Compare hardware-efficient vs. UCCSD ansatz: iterations, depth, final error.
Repeat with a depolarizing noise model; observe the noise floor.
Takeaways¶
VQE = variational principle + hybrid quantum-classical optimization.
Ansatz and measurement budget are the real design decisions.
Materials workflow: active space on the QPU, environment on the CPU.