← Quantum Store · Guides · Lessons · Glossary · About · Türkçe

Quantum computing glossary

What is Grover’s algorithm?

Grover’s algorithm finds a marked item among N unsorted items in about √N steps, a quadratic speed-up over classical search.

A classical computer looks at N/2 items on average to find what it is looking for in an unsorted list. Grover’s algorithm does it in about (π/4)·√N “queries”. In each step an oracle flips the sign of the marked item and a diffusion step amplifies its amplitude through interference.

In the two-qubit (four-option) example a single Grover step finds the right answer with 100% probability. Because the speed-up is quadratic, Grover is less a way to break symmetric ciphers than a reason to double key lengths.

Try it yourself

The lesson Your first algorithm: Grover search lets you try this concept in the browser, with no installation.

Related packages

Related concepts

Share: X · LinkedIn