Chapter 9 — Variational and Hybrid Quantum Algorithms
1. The hybrid loop
Variational algorithms use a parameterized quantum circuit to prepare trial states and a classical optimizer to update parameters. The quantum processor estimates objective-function ingredients; the classical computer performs bookkeeping and optimization.
2. Expectation values
For an observable H, the expectation ⟨H⟩=⟨ψ|H|ψ⟩ predicts the average outcome of repeated compatible measurements. When H is decomposed into Pauli terms, the energy can be reconstructed from weighted expectation estimates.
3. VQE
The variational quantum eigensolver searches for low-energy trial states. The variational principle guarantees that the expectation value of a normalized trial state is not below the true ground-state energy. Practical performance depends on ansatz expressivity, optimization, sampling, and noise.
4. QAOA
QAOA alternates parameterized evolutions associated with a problem cost Hamiltonian and a mixing Hamiltonian. For small combinatorial problems, students can calculate the exact optimum classically and use it as a rigorous benchmark.
5. Responsible interpretation
A small successful VQE or QAOA demonstration is evidence that the implementation works on that instance. It is not by itself evidence of practical quantum advantage. Baselines and resource accounting are essential.
Student exploration and activities
Use cases: chemistry and combinatorial optimization
VQE and QAOA illustrate hybrid quantum-classical computation: a quantum circuit estimates an objective while a classical optimizer updates parameters. They are useful teaching vehicles for expectation values, sampling cost, optimization landscapes, and NISQ limitations.
Problem: a successful toy demo is not quantum advantage
Small VQE/QAOA examples are valuable pedagogically, but they do not establish practical speedup. Ansatz choice, optimizer behavior, sampling, noise, and classical baselines all affect conclusions.
Suggested student activity
Students can sweep one or two variational parameters and visualize the objective landscape before using an optimizer. They can compare the optimizer trajectory with the landscape.
Questions for exploration
Students can make a prediction, explain the reasoning in plain language, and identify an observation that would challenge the prediction. The outcome can then be connected to the mathematical model introduced in this chapter.
Worked example
Write a tiny Hamiltonian H=c₀I+c₁Z+c₂X. Prepare a parameterized one-qubit state, estimate ⟨Z⟩ and ⟨X⟩, combine them into E(θ), and sweep θ before introducing an optimizer. The sweep makes the objective landscape visible.
How to reason about the result
Separate three layers: (1) the ideal mathematical prediction, (2) finite-shot sampling, and (3) implementation effects such as noise or compilation. A good laboratory report identifies which layer can plausibly explain an observed discrepancy.
Check your understanding
- Why must VQE measure multiple observables for a multi-term Hamiltonian?
- What is the role of the classical optimizer?
- Why should a small QAOA experiment include the exact classical optimum when feasible?
Projects unlocked
Before moving on
You should be able to explain the central idea in your own words, perform the worked example without copying it, and make a falsifiable prediction for the first linked project.