Grover search and amplitude amplification
Grover's algorithm finds one of M marked items among N with about (π/4)√(N/M) queries, which is optimal; amplitude amplification and estimation extend the quadratic speedup to any quantum subroutine.
On this page13 sections
Quadratic speedups from amplitude amplification and estimation sit inside many proposed applications (search, Monte Carlo estimation, optimisation), and error-correction overhead decides whether they ever pay off.
A quantum search method that finds one marked item among N in about √N steps instead of N.
- 1Start with all items equally likely
- 2Oracle marks the right answer
- 3Reflect amplitudes about the average
- 4Repeat about √N times
- 5Measure: right answer likely
Setup. There are items and an oracle that recognises the marked ones by flipping the sign of their quantum amplitude. Start in the uniform superposition , where every item has amplitude .
One Grover step applies the oracle and then reflects every amplitude about the average. Geometrically, the state lives in a plane spanned by "marked" and "unmarked" directions, starting at a small angle from the unmarked axis with . Each step is a rotation by towards the marked axis, a product of two reflections, which you may recognise from linear algebra as a rotation matrix. After about steps the state points almost along the marked axis, and measuring gives a marked item with high probability.
Optimality. Bennett, Bernstein, Brassard and Vazirani proved that no quantum algorithm can do unstructured search with fewer than about oracle calls, so Grover's quadratic speedup cannot be improved.
Generalisation. If any quantum routine succeeds with probability , amplitude amplification boosts it to near certainty with about repetitions instead of . Amplitude estimation measures to accuracy with about runs, where ordinary sampling needs about ; this gives a quadratic speedup for Monte Carlo estimation, such as pricing financial options.
The catch. A quadratic speedup only pays off for large problems, and each error-corrected quantum step is millions of times slower than a classical one. Analyses by Google researchers (2021) concluded that quadratic speedups will not win on early fault-tolerant machines, while quartic ones might.
Go deeper
The full technical text.
Search
An oracle flips the sign of the marked items among . Starting from the uniform superposition , Grover's iterate rotates the state by an angle in the plane spanned by the marked and unmarked components, where . After about iterations a measurement returns a marked item with high probability; running longer overshoots. Boyer, Brassard, Høyer and Tapp (1996) handled unknown .
The speedup is optimal. Bennett, Bernstein, Brassard and Vazirani (1997) proved that any quantum algorithm needs queries, and Zalka (1999) showed Grover's algorithm is exactly optimal. Zalka also showed that the search parallelises poorly: quantum machines gain only about a factor , which is no better than splitting the search space.
Amplitude amplification and estimation
Brassard, Høyer, Mosca and Tapp (2002) generalised the idea: if an algorithm succeeds with probability , then calls to and suffice to succeed with high probability. Amplitude estimation estimates to additive error with calls instead of the samples classical Monte Carlo needs. Montanaro (2015) turned this into a near-quadratic speedup for estimating the mean of bounded-variance random variables. Fixed-point variants (Yoder, Low and Chuang, 2014) avoid overshooting when is unknown, and the quantum singular value transformation recovers these routines as special cases. Quantum walks extend the idea to structured search, for example Ambainis's algorithm for element distinctness.
Why the advantage is fragile
A quadratic speedup only wins when the problem is large enough that quantum steps, each slowed by error-correction overhead, beat fast classical steps. Babbush et al. (2021) compared runtimes with state-of-the-art surface-code constructions and concluded that quadratic speedups will not give an advantage on early fault-tolerant machines unless error correction improves substantially, while quartic speedups look much more practical. The same arithmetic limits Grover attacks on symmetric cryptography: the attack needs long serial circuits and parallelises badly.
Where it is used
Amplitude amplification appears inside most quantum algorithms with a quadratic component: search-based optimisation, quantum minimum finding, amplitude-estimation pricing of financial derivatives and Monte Carlo integration, and as a step in linear-system and phase-estimation routines.
Words on this page (6)
- amplitude
- A complex number attached to each outcome; its squared size is the outcome's probability.
- oracle
- A black-box subroutine that answers yes or no about an input; algorithms are measured by how often they call it.
- quadratic speedup
- Needing about the square root of the number of steps an ordinary computer needs.
- Monte Carlo method
- Estimating a quantity by averaging many random samples.
- amplitude amplification
- The general technique behind Grover search, boosting any routine's success probability.
- error correction
- Protecting qubits from noise by spreading information across many of them, at a large cost in speed.
New to this? Read first (2)
- Grover's algorithm (Wikipedia)The geometric picture of the rotation, with the optimality proof sketched.
- Amplitude amplification (Wikipedia)How the idea extends beyond search.
Understanding map
map of the whole wiki →What to read before Grover search and amplitude amplification (left), and what builds on it: entries that depend on it and its open problems (right). Every box links to its page.
- Start with
- Step 2
- Quantum algorithmsAlgorithm
- Step 3
- Grover search and amplitude amplificationYou are here
- Then
Open problems & questions
No open problems or questions on this entry.
Progress timeline
- Nov 9, 2020Quadratic speedups and error correctionsource
Babbush et al. argued that quadratic speedups will not give an advantage on early fault-tolerant machines.
- Apr 27, 2015Quantum Monte Carlo speedupsource
Montanaro gave a near-quadratic speedup for estimating means of random variables.
- May 15, 2000Amplitude amplification and estimationsource
Brassard, Høyer, Mosca and Tapp generalised Grover's algorithm to any subroutine and to estimating success probabilities.
- Jan 1, 1997Optimality lower boundsource
Bennett, Bernstein, Brassard and Vazirani proved that queries are necessary.
- May 29, 1996Grover searchsource
Grover posted the search algorithm.