Skip to main content
IBM Quantum Platform

Introduction

Grover's algorithm is a quantum algorithm for so-called unstructured search problems that offers a quadratic improvement over classical algorithms. What this means is that Grover's algorithm requires a number of operations on the order of the square-root of the number of operations required to solve unstructured search classically — which is equivalent to saying that classical algorithms for unstructured search must have a cost at least on the order of the square of the cost of Grover's algorithm.

Grover's algorithm, together with its extensions and underlying methodology, turn out to be broadly applicable, leading to a quadratic advantage for many interesting computational tasks that may not initially look like unstructured search problems on the surface.

While the broad applicability of Grover's searching technique is compelling, it should be acknowledged here at the start of the lesson that the quadratic advantage it offers seems unlikely to lead to a practical advantage of quantum over classical computing any time soon. Classical computing hardware is much more advanced than quantum computing hardware — and the quadratic quantum over classical advantage offered by Grover's algorithm is sure to be washed away by the staggering clock speeds of modern classical computers for any unstructured search problem that could feasibly be run any time soon.

As quantum computing technology advances, however, Grover's algorithm could have potential. Indeed, some of the most important and impactful classical algorithms ever discovered, including the fast Fourier transform and fast sorting (e.g., quicksort and merge sort), offer slightly less than a quadratic advantage over naive approaches to the problems they solve. The key difference here, of course, is that an entirely new technology (meaning quantum computing) is required to run Grover's algorithm. While this technology is still very much in its infancy in comparison to classical computing, we should not be so quick to underestimate the potential of technological advances that could allow a quadratic advantage of quantum over classical computing to one day offer tangible practical benefits.


Lesson video

In the following video, John Watrous steps you through the content in this lesson on Grover's algorithm. Alternatively, you can open the YouTube video for this lesson in a separate window.

Was this page helpful?
Report a bug or request content on GitHub.