Finding one item in an unsorted pile takes a classical computer up to N looks; a quantum computer needs about √N. Proven in 1996, it is the most famous small speedup in computing, and probably too small to matter soon.
Our drawing of Grover’s search on eight items, with the real numbers: each round flips the answer’s sign and reflects every bar about the average, and after two rounds the answer comes up about 95% of the time.
In plain English
What it is, and why it matters.
Picture a phone book sorted by name, and a phone number you need to find the owner of. A classical computer has to check entries one by one: a million entries, up to a million checks. Lov Grover showed in 1996 that a quantum computer could do it in about a thousand, the square root.
It works on almost any problem where a right answer can be recognised once found, which is why it turns up in every discussion of quantum computing: cracking keys, searching databases, solving puzzles.
But a square root is all it gives. Grover proved his method is close to the fastest possible, and once you count how slow and costly each quantum step is, the advantage shrinks or disappears.
Searching at a glance
What people say
“Quantum computers will search through data far faster than classical computers.”
A square-root speedup, on paperclassical computerquantum computerA job that takes a classical computer N steps takes a quantum one about √N: a million become about a thousand. Real, but researchers calculate it is too small to pay off on the first error-corrected machines. Our sketch of the shape, not to scale.
“the desired phone number can be obtained in only O(sqrt(N)) steps.”
The quantum computer starts with every entry in play at once, each holding an equal share of the odds. Each round, a test flips the sign of the right entry, then a reflection boosts whatever was flipped and drains the rest. After about √N rounds, almost all the odds sit on the answer.
It isn’t magic parallelism. Each round is one operation on the whole pile, and interference does the rest, as Grover put it: “successful computations reinforce each other while others interfere randomly.”
How strong the evidence is
Rung 2 of 4: peer-reviewed.
What people say: “Quantum computers will search through data far faster than classical computers.” It stands at the highest kind of evidence anything on its trail has reached; the rule is the same on every page.
No headline in our feeds has named it in the last 45 days. We check every hour, and stories will appear here with a link.
The trail · 5 stops
How it got here, stop by stop.
Oldest first. A numbered stop reports a result, and the number is the rung of evidence behind it. Stops marked “Against the claim” are shown but never counted. “Company-reported” means the account comes from the company behind it.
2
2Peer-reviewed
Grover’s algorithm
Lov Grover shows a quantum computer can find a marked item among N unsorted ones in about √N steps. Presented at STOC 1996, a peer-reviewed computer-science conference.
“the desired phone number can be obtained in only O(sqrt(N)) steps.”
Google researchers led by Ryan Babbush calculate that error correction’s overhead swamps a quadratic speedup on the first fault-tolerant computers; quartic speedups look far better. In PRX Quantum.
“quadratic speedups will not enable quantum advantage on early generations of such fault-tolerant devices”
Hoefler, Häner and Troyer work out the break-even point for an optimistic future machine and list database search with Grover’s algorithm among the uses unlikely to benefit.
“database search based on Grover’s algorithm such that a speedup is unlikely in those cases”
Hoefler, Häner and Troyer assume a future machine with 10,000 error-corrected qubits whose operations run 10,000 times slower than one of today’s classical chips. At that rate a quadratic speedup takes too long to pay off.
“For our optimistic future quantum computer the resulting rate is 10,000 times smaller than for an existing classical chip”
Short answers drawn from this page. Each fact is sourced above.
What is Grover’s algorithm?
A quantum algorithm from 1996 that finds a marked item among N possibilities in about √N steps, where a classical computer needs up to N. It is proven, and proven close to the best any quantum computer can do.
How much faster is quantum search?
By a square root: a million checks become about a thousand. Researchers at Google and Microsoft calculate that this is too small to beat classical computers on early error-corrected machines, because each quantum step is so much slower.
Can quantum computers search databases faster?
Not in practice, on current evidence. Getting a large database into a quantum computer is itself slow, and a 2023 analysis by researchers at ETH Zurich and Microsoft lists database search with Grover’s algorithm among the uses where a speedup is unlikely.
Does Grover’s algorithm break encryption?
Not the symmetric kind such as AES: NIST says Grover will likely give little or no advantage, and AES-128 will stay secure for decades. Public-key encryption such as RSA is threatened by a different method, Shor’s algorithm; see Q-Day.
Keep exploring
More of the quantum section, and the rest of the site.