Optimisers, local minima and shot noise
Why the same algorithm can give different answers, and what real measurement noise adds.
8 min read · reviewed December 2026
Different starts, different answers
The cost landscape of a variational circuit can have many valleys. Where you start decides which valley you reach. In the lab’s four-qubit Heisenberg chain with one and two layers, the best energy over four starts and 250 steps was identical to five decimal places, which suggests the optimiser kept falling into the same valley rather than that the second layer was useless. Press “New random start” on the VQE tab to see runs end at different energies.
A stuck optimiser is not evidence that the ansatz is too small. Always try several starts before drawing a conclusion.
QAOA also has many peaks
The QAOA landscape repeats in γ and has symmetric peaks, so many parameter settings are equally good. The lab’s Optimise button starts from six random points and keeps the best.
Shot noise
On a real device the cost is estimated from a finite number of measurements. The error of an average over N shots shrinks only like 1/√N. The QAOA tab lets you resample the average cut from 20, 200 or 2000 shots and compare it with the exact value.
- 20 shots: the average moves visibly between resamples.
- 2000 shots: it stays close to the exact value.
- Because the optimiser compares noisy numbers, small improvements can be lost in the noise.
Hardware noise is another layer
Gate errors and decoherence change the cost itself, not just its estimate. The Noise Lab shows the size of that effect for single qubits.
Try it
Questions
Which optimiser is best?
There is no single winner. Gradient methods are efficient when gradients are cheap and noise is low; derivative-free methods are robust but need more evaluations.
How many random starts are enough?
There is no rule. The lab uses six for QAOA and four for the depth comparison.
Does the lab simulate shot noise in VQE?
No. The VQE energies are exact. Shot noise is shown only in the QAOA sampling box.
Read next
Sources and further reading
- E. Farhi, J. Goldstone and S. Gutmann, “A Quantum Approximate Optimization Algorithm” (2014)
- A. Peruzzo et al., “A variational eigenvalue solver on a photonic quantum processor” (2014)
- A. Kandala et al., “Hardware-efficient variational quantum eigensolver for small molecules and quantum magnets” (2017)
- J. McClean et al., “Barren plateaus in quantum neural network training landscapes” (2018)
- J. Preskill, “Quantum computing in the NISQ era and beyond” (2018)
- K. Mitarai et al. (2018) and M. Schuld et al. (2019) on analytic gradients of quantum circuits
Check the original sources for exact citations.