Quadratic Speedup
You have now seen all the pieces of Grover's algorithm: the uniform superposition, the oracle phase-flip, the diffuser reflection, and the geometric picture of rotations in a two-dimensional plane. This lesson steps back and asks the deeper question: exactly how much faster is Grover's algorithm than any classical method, and why can't quantum computers do even better?
The classical baseline
For an unstructured search over items with a single marked element , the best classical strategy (deterministic or randomised) needs oracle queries in the worst case. A sequential scan finds in at most queries, so the classical complexity is . No classical algorithm can beat linear time without structural information about — each unanswered query tells you nothing about the remaining items.
What Grover achieves
Grover's algorithm finds with high probability using queries. The precise statement: starting from the uniform superposition over basis states, running
Grover iterations yields a measurement outcome equal to with probability at least .
The factor comes directly from the geometry. Each iteration rotates the state vector by angle in the two-dimensional – plane, where . For large we have radians. To reach the target at , the algorithm needs
iterations — growing as , not .
Why quantum cannot do better
The quadratic speedup is optimal: no quantum algorithm can search an unstructured database of items in fewer than queries. This tight lower bound was proved by Bennett, Bernstein, Brassard, and Vazirani (BBBV, 1997) using a technique called the hybrid argument (also analysed via the polynomial method and via adversary arguments in later work).
The key insight of the BBBV argument is that after queries, any quantum algorithm can have accumulated a total amplitude on the marked item of at most . Concretely, if the amplitude on starts at and each query can increase it by at most , reaching amplitude close to requires queries. The proof formalises this by comparing two worlds — one with a marked item and one without — and bounding how fast a quantum algorithm can distinguish them.
Quadratic vs. exponential speedup
It is worth situating this speedup in the landscape of quantum algorithms:
| Algorithm | Classical complexity | Quantum complexity | Speedup type | |---|---|---|---| | Grover search | | | Quadratic | | Shor factoring | | | Super-polynomial | | Deutsch–Jozsa | (deterministic) | | Exponential |
Grover's speedup is quadratic, not exponential. This means it does not make NP-complete problems tractable: searching candidate solutions still takes quantum steps, which is still exponential in .
Amplitude amplification: the general principle
Grover's algorithm is the simplest instance of a broader technique called amplitude amplification. Given any quantum algorithm that finds a "good" state with success probability , amplitude amplification boosts the success probability to near in applications of and its inverse — a quadratic improvement over the naive strategy of repeating independently times. Grover search is the special case with .
This generality makes the quadratic speedup widely applicable: anywhere a classical algorithm succeeds with probability per trial, amplitude amplification can quadratically reduce the number of trials required.
Summary
- Grover's algorithm solves unstructured search in oracle queries.
- The speedup arises because each iteration rotates the state by radians toward the target; reaching it from angle requires steps.
- The BBBV lower bound proves is optimal — no quantum algorithm can do better.
- The speedup is quadratic, not exponential; it does not collapse NP into BQP.
- Amplitude amplification extends the same idea to any bounded-error quantum subroutine.
Sign in on the full site to ask questions and join the discussion.