Input. on qubits; an ansatz with parameters; a classical optimizer; a shot budget per energy evaluation.
Procedure.
- Choose initial parameters (for chemistry often those that make the identity, so the trial state is the Hartree–Fock reference).
- For : prepare repeatedly, measure the Pauli terms (grouped where they commute), and form the estimate . If the optimizer uses gradients, estimate them with the parameter-shift rule.
- Pass the estimates to the classical optimizer, which returns ; stop when the estimated energy or gradient no longer changes beyond its statistical error.
- Output the final parameters and the energy estimate.
Guarantee. Only the variational principle: every exactly evaluated energy is at least the ground energy . Nothing guarantees that the optimizer finds the best parameters, that the ansatz contains a state close to the ground state, or that the number of iterations is small; the energy estimate carries the statistical error quantified by the measurement-cost formula and any bias from device noise.
The method was introduced and demonstrated on a photonic processor by Peruzzo et al. and given a general framework by McClean, Romero, Babbush and Aspuru-Guzik. Adaptive variants grow the ansatz one generator at a time, choosing at each step the operator from a pool with the largest energy gradient (Grimsley, Economou, Barnes and Mayhall).