Grover's Search Algorithm
Grover's algorithm searches an unsorted database of N items for a marked entry in O(βN) steps β a quadratic speedup over the classical O(N) requirement. While not exponential, this is provably optimal for quantum computers (Bennett et al. 1997) and translates to massive practical gains: searching one trillion items in a million steps instead of half a trillion.
Key Concepts
Key Equations
Grover's Search for N=4
For items (2-qubit register), find the optimal number of Grover iterations and the success probability.
Compute optimal iterations:
After 1 iteration, success probability:
Exercises
5 problemsFor items, the optimal Grover iterations . How many?
For , optimal iterations . How many?
Classical random search of items: expected number of queries = . How many?
Unlock Exercise 3
Subscribe to PhysWeb Pro to access all exercises and track your progress.
Upgrade to Pro βGrover's algorithm searches items in queries. ?
Unlock Exercise 4
Subscribe to PhysWeb Pro to access all exercises and track your progress.
Upgrade to Pro βThe quantum/classical speedup ratio for : classical needs , quantum needs . Ratio classical/quantum?
Unlock Exercise 5
Subscribe to PhysWeb Pro to access all exercises and track your progress.
Upgrade to Pro βKey Takeaways
- Grover finds a marked item in queries β a quadratic speedup over classical .
- Each iteration applies the oracle (phase flip on target) then diffusion (inversion about the mean).
- Optimal iterations: ; over-iterating reduces success probability.
- The quadratic speedup is provably optimal β no quantum algorithm can do better than .
- With solutions among items, optimal iterations become .