Skip to content
APPLICATIONS · QUANTUM ALGORITHMS EXPLAINED

The Quantum Trick for Searching a Million Possibilities

Grover’s algorithm can cut the number of checks dramatically, but understanding what counts as a check explains both its promise and its limits.

Sources checked Published
My reading list
Rows of labeled wooden drawers in a library card catalogue.
Tulane Public Relations, CC BY 2.0, via Wikimedia Commons

A card catalogue photographed in February 2006 by Tulane Public Relations. It illustrates the idea of searching records; an ordered catalogue is not itself the unstructured search problem in Grover’s algorithm. Image credit“Card Catalog” — Tulane Public Relations, February 9, 2006, CC BY 2.0, via Wikimedia Commons. Original visible © Tulane University credit retained. · https://creativecommons.org/licenses/by/2.0/

Imagine a million possible answers with no useful ordering and just one correct result. You can recognize the answer when you check it, but have no shortcut to finding it. That is the kind of search where a quantum computer has a remarkable mathematical trick.

Lov Grover’s 1996 algorithm reduces the required checks from a number proportional to the search space to roughly its square root. For a million possibilities and one solution, that means on the order of a thousand quantum checks instead of hundreds of thousands of ordinary ones. These are checks, not seconds.

The algorithm repeatedly changes the quantum state so that measuring the correct answer becomes more likely. It uses interference to strengthen the desired result. It does not hand over a readable list of every possibility it considered, and running extra iterations indefinitely does not keep improving the answer.

IBM Quantum System Two is visible through large street-facing windows at Ikerbasque in Donostia-San Sebastián.
IBM Quantum System Two at Ikerbasque, photographed through the building’s windows on December 10, 2025. Hardware context for quantum algorithms; the photograph does not document a Grover benchmark. Image credit“Ikerbasque IBM Quantum System Two.jpg” — Luistxo, December 10, 2025, CC BY-SA 4.0, via Wikimedia Commons. · https://creativecommons.org/licenses/by-sa/4.0/

The crucial ingredient is the checking procedure, called an oracle. As IBM’s explanation stresses, that procedure must actually be built. Knowing how to check an answer is different from already knowing it: a puzzle can have easy-to-test rules while remaining difficult to solve.

The square-root gain is optimal for this unstructured problem, but it does not promise instant internet searches. Building the oracle and executing the circuit still take work. Grover’s lesson is more useful than magic: quantum advantage depends on the precise question and on what the calculation counts as a step.

READ NEXT

More in Applications

All Applications stories
  1. Applications desk

    A Quantum Computer Made Random Numbers. The Wild Part Was Checking Them.

    A 56-qubit machine and several supercomputers tackled a surprisingly tricky question: can you trust someone else’s digital coin toss?

    Sources checked
  2. Applications desk

    5 Jobs Quantum Computers Still Give to Ordinary Computers

    Behind the futuristic hardware, familiar processors translate, rehearse and make sense of the experiment. Their job descriptions are surprisingly busy.

    Sources checked
THE QUANTUM BRIEFING

A clearer signal.
Straight to your inbox.

A little perspective on a fast-moving field.

Read a briefing preview →

Selected quantum coverage in a weekly briefing. Read the preview or register your interest.