Skip to content
DAH
Wiki/Quantum AlgorithmsAlgorithmMature

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
Why other work relies on it

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.

  1. 1Start with all items equally likely
  2. 2Oracle marks the right answer
  3. 3Reflect amplitudes about the average
  4. 4Repeat about √N times
  5. 5Measure: right answer likely

Setup. There are NN items and an oracle that recognises the MM marked ones by flipping the sign of their quantum amplitude. Start in the uniform superposition ∣s⟩|s\rangle, where every item has amplitude 1/N1/\sqrt N.

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 θ\theta from the unmarked axis with sin⁡θ=M/N\sin\theta=\sqrt{M/N}. Each step is a rotation by 2θ2\theta towards the marked axis, a product of two reflections, which you may recognise from linear algebra as a rotation matrix. After about π4N/M\frac{\pi}{4}\sqrt{N/M} 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 N\sqrt N oracle calls, so Grover's quadratic speedup cannot be improved.

Generalisation. If any quantum routine succeeds with probability pp, amplitude amplification boosts it to near certainty with about 1/p1/\sqrt p repetitions instead of 1/p1/p. Amplitude estimation measures pp to accuracy ε\varepsilon with about 1/ε1/\varepsilon runs, where ordinary sampling needs about 1/ε21/\varepsilon^2; 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.

An oracle OfO_f flips the sign of the MM marked items among NN. Starting from the uniform superposition ∣s⟩|s\rangle, Grover's iterate G=(2∣s⟩⟨s∣−I) OfG=(2|s\rangle\langle s|-I)\,O_f rotates the state by an angle 2θ2\theta in the plane spanned by the marked and unmarked components, where sin⁡θ=M/N\sin\theta=\sqrt{M/N}. After about π4N/M\frac{\pi}{4}\sqrt{N/M} iterations a measurement returns a marked item with high probability; running longer overshoots. Boyer, Brassard, Høyer and Tapp (1996) handled unknown MM.

The speedup is optimal. Bennett, Bernstein, Brassard and Vazirani (1997) proved that any quantum algorithm needs Ω(N)\Omega(\sqrt N) queries, and Zalka (1999) showed Grover's algorithm is exactly optimal. Zalka also showed that the search parallelises poorly: kk quantum machines gain only about a factor k\sqrt k, 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 A\mathcal A succeeds with probability pp, then O(1/p)O(1/\sqrt p) calls to A\mathcal A and A−1\mathcal A^{-1} suffice to succeed with high probability. Amplitude estimation estimates pp to additive error ε\varepsilon with O(1/ε)O(1/\varepsilon) calls instead of the O(1/ε2)O(1/\varepsilon^2) 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 pp 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 O(N2/3)O(N^{2/3}) algorithm for element distinctness.

Why the advantage is fragile

A quadratic speedup only wins when the problem is large enough that N\sqrt N quantum steps, each slowed by error-correction overhead, beat NN 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)
Words on this page
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)
New to this? Read first

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.

  1. Start with
  2. Step 2
  3. Step 3
  4. Then

Open problems & questions

No open problems or questions on this entry.

Progress timeline

  1. Nov 9, 2020
    Quadratic speedups and error correction

    Babbush et al. argued that quadratic speedups will not give an advantage on early fault-tolerant machines.

    source
  2. Apr 27, 2015
    Quantum Monte Carlo speedup

    Montanaro gave a near-quadratic speedup for estimating means of random variables.

    source
  3. May 15, 2000
    Amplitude amplification and estimation

    Brassard, Høyer, Mosca and Tapp generalised Grover's algorithm to any subroutine and to estimating success probabilities.

    source
  4. Jan 1, 1997
    Optimality lower bound

    Bennett, Bernstein, Brassard and Vazirani proved that Ω(N)\Omega(\sqrt N) queries are necessary.

    source
  5. May 29, 1996
    Grover search

    Grover posted the O(N)O(\sqrt N) search algorithm.

    source