Grover search
Repeated phase marking and reflection rotate a uniform state towards the marked search subspace.
How it works
Prepare
Put N basis states in a uniform superposition.
Mark
Apply an oracle that reverses the sign of amplitudes on marked states.
Reflect
Reflect about the uniform state. Together the two reflections rotate the state by in the marked–unmarked plane.
Equation and quantities
- · M/N
- M · number of marked items
- k · Grover iterations
Worked example
In a four-item search with one marked item, and one iteration gives . The second iteration overshoots the target.
Why it matters
Grover provides a quadratic query improvement for unstructured search and generalizes to amplitude amplification.
Limits and assumptions
Query count excludes the cost of building and running an oracle. A practical algorithm must include oracle resources and data access.
Why can extra iterations make the answer worse?
The amplitude rotates periodically and passes the marked direction.