← Atlas

Algorithms · Generalized Grover / amplitude amplification

Amplitude amplification

The general framework behind Grover's algorithm: boosting the success probability of any subroutine with a known reflection structure.

Strong empiricalUpdated

Open on the mapView frozen graph

A small worked example, computed in your browser. It is not a result from this record's papers.

Grover's algorithm finds |101⟩

3 qubits, searching for |101⟩ among 8 states, with 2 Grover iterations.

q0q1q2Step 1 of 5 · Hadamard layer(3)Hadamard layer(3)Step 2 of 5 · Phase oracle(101)Phase oracle(101)Step 3 of 5 · Grover diffuser(3)Grover diffuser(3)Step 4 of 5 · Phase oracle(101)Phase oracle(101)Step 5 of 5 · Grover diffuser(3)Grover diffuser(3)

Step 1 of 5 · Hadamard layer(3)

Probability of each outcome after this step

  • 00013%
  • 00113%
  • 01013%
  • 01113%
  • 10013%
  • 10113%
  • 11013%
  • 11113%
  1. Spreads the state into an equal superposition of all 8 three-qubit strings. Every answer is equally likely, including the right one.

    Probability spreads from 1 outcome to 8. All 8 are equally likely.

  2. The oracle marks |101⟩ by flipping its sign, and leaves the other seven states exactly as they were. Measuring now would be no better than guessing — the mark is a phase, and a phase is not an outcome.

    The outcome probabilities do not move at all. What this step changes is phase — 2 distinct relative phases across the state now — which no measurement can see until a later step turns it back into probability. This is the step that entangles the qubits: from here on no single qubit has a state of its own, only the register as a whole does.

  3. The diffuser reflects every amplitude about their average. The marked state sits below the average because its sign was flipped, so reflecting pushes it up and pulls the other seven down. This is where the phase becomes probability.

    Probability moves between the same 8 outcomes. Up: 101 12.5% → 78.1%. Down: 111 12.5% → 3.1%, 011 12.5% → 3.1%.

  4. The same oracle again, flipping the sign of |101⟩ — now the largest amplitude rather than one of eight equal ones.

    The outcome probabilities do not move at all. What this step changes is phase — 2 distinct relative phases across the state now — which no measurement can see until a later step turns it back into probability.

  5. And the same reflection again. Two iterations is close to the optimal number for 8 states: a third would overshoot and start pushing the answer back down.

    Probability moves between the same 8 outcomes. Up: 101 78.1% → 94.5%. Down: 100 3.1% → 0.8%, 010 3.1% → 0.8%.

Readout Measuring gives 101, the marked state, with high probability.

Open in Studio
  • Steps3
  • Wires1
  • Qubits1 (toy instance)
  • Iterations to certainty (a=1/4)k = 1
  • General scalingO(1/√a) iterations
  • Papers1

Amplitude amplification (Brassard, Høyer, Mosca, Tapp, 2000) generalizes Grover's algorithm from the specific case where the initial state is prepared by Hadamards to an arbitrary state-preparation operator AA.

Setup. Suppose A∣0⟩=sin⁡θ ∣good⟩+cos⁡θ ∣bad⟩A|0\rangle = \sin\theta\,|\text{good}\rangle + \cos\theta\,|\text{bad}\rangle, so the initial success probability is a=sin⁡2θa=\sin^2\theta. Define the amplification operator

Q=A S0 A−1 Sχ,Q = A\,S_0\,A^{-1}\,S_\chi,

where SχS_\chi flips the phase of good states and S0S_0 flips the phase of everything except ∣0⟩|0\rangle. Geometrically, QQ is a rotation by 2θ2\theta in the 2-dimensional real span of ∣good⟩|\text{good}\rangle and ∣bad⟩|\text{bad}\rangle, so after kk applications the success probability is

Pk=sin⁡2((2k+1)θ).P_k = \sin^2\big((2k+1)\theta\big).

Choosing k≈π4θ−12k\approx \frac{\pi}{4\theta}-\frac12 drives PkP_k close to 1, needing O(1/a)O(1/\sqrt a) iterations versus the O(1/a)O(1/a) classical repetitions needed to hit a probability-aa event with matching confidence — the same quadratic gain that Grover's algorithm gets as the special case A=H⊗nA=H^{\otimes n}.

Exactly solvable small instance. Take a single qubit with A=Ry(2θ)A=R_y(2\theta), θ=π/6\theta=\pi/6, so a=sin⁡2(π/6)=1/4a=\sin^2(\pi/6)=1/4 — the initial success ("good" = ∣1⟩|1\rangle) probability is exactly 1/41/4. One iteration gives

P1=sin⁡2(3θ)=sin⁡2 ⁣(π2)=1,P_1 = \sin^2(3\theta) = \sin^2\!\left(\frac{\pi}{2}\right) = 1,

i.e. a single amplitude-amplification step turns a 25%-success preparation into a certain one — the same numeric case that underlies the classic "Grover on N=4N=4, M=1M=1" result, here derived directly from the rotation-angle formula rather than from an oracle over a register.

Where it is used. Amplitude amplification is the mechanism inside quantum counting, amplitude estimation, and any algorithm that needs to boost the probability of a rare event once a coherent way to recognize "success" (a reflection oracle) is available.

References

  • Quantum Amplitude Amplification and Estimation

    Gilles Brassard, Peter Hoyer, Michele Mosca, Alain Tapp · 2000

    Generalizes Grover's algorithm to an arbitrary state-preparation operator and derives the amplification operator Q used here.

Strong empirical
  • Verified by construction
  • Small-instance agreement
  • Peer-reviewed paper
Method
The circuit follows Q = A S_0 A^{-1} S_χ for a single-qubit state-preparation A with initial success amplitude a=1/4. The exact post-iteration success probability is derived analytically and compared against the circuit.
Result
Pass · with a=1/4 (θ=π/6), one iteration gives sin²(3θ)=sin²(π/2)=1, i.e. deterministic success, matching the circuit's designed behavior.
Caveat
This record verifies a single exactly-solvable toy instance; general A operators and larger registers are covered only by the cited literature, not re-derived here.
Quantum Amplitude Amplification and Estimation ↗
Kind
curated reference
Reviewed by
Leona Quantum curation pass
License
CC BY 4.0-compatible reference metadata
amplitude amplificationgrover generalizationreflection operator
  • Boosting success probability of any subroutine with a known reflection oracle
  • Core primitive behind amplitude estimation for Monte Carlo pricing
  • Feeding into quantum counting and search-based optimization

Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.