Over-Rotation
Grover's algorithm works by rotating the quantum state toward the marked item, a little further each iteration. If you stop at the right moment — after the optimal number of steps — the probability of finding the answer is nearly 1. But if you keep rotating, you overshoot: the amplitude of the marked state shrinks again, and eventually the probability distribution returns to something close to uniform. This is over-rotation.
The amplitude geometry
The state at any point lives in a 2D plane spanned by the marked basis state and the uniform superposition of all unmarked states . Starting from the uniform superposition , Grover's algorithm rotates toward by a fixed angle per iteration, where
After iterations the amplitude on the marked state is , so the success probability is
Over-rotation for N = 4
With only items (two qubits), , so . The optimal number of iterations is
One iteration is already perfect:
Now apply a second iteration. The angle advances to :
The success probability has collapsed from 100% back to 25% — exactly what you would get from a random guess! The state has rotated all the way past the target and landed near the opposite side of the plane.
The three unmarked states each end up with amplitude , probability as well, so the output distribution is perfectly uniform across all four states. Running the circuit and measuring gives no useful information at all.
Why this matters in practice
For large , the optimal number of iterations is . Every additional iteration beyond rotates the state away from the target. Because must be known in advance (it depends on and the number of solutions ), running the algorithm blindly with too many iterations is as bad as running it with too few. Algorithms for the case where is unknown, such as quantum counting, address this by first estimating with quantum phase estimation.
Try it
Build the two-iteration Grover circuit for , marking with a CZ oracle. After two full iterations the probability should be spread uniformly across all four basis states, confirming the over-rotation effect. The grader checks the output distribution.
Inspect the histogram: each of the four outcomes should have probability close to . Compare this to the one-iteration result, where all probability sits on .
Sign in on the full site to ask questions and join the discussion.