One Grover Iteration
A single Grover iteration is the atomic unit of Grover's search algorithm. It combines two operations you have already seen — the phase-kickback oracle and the diffuser — into one amplification step that rotates the state closer to the marked item.
The structure of one iteration
Starting from a uniform superposition over all basis states, a single Grover iteration applies:
where is the oracle (phase-flip on the marked state ) and is the diffuser (reflection about the mean amplitude).
The oracle
The oracle marks the target by flipping its sign:
After , the marked amplitude has become negative while all others remain positive. The average amplitude drops slightly below its starting value of .
The diffuser
The diffuser reflects every amplitude about their (new) mean:
Any amplitude above the mean grows; any amplitude below the mean grows even more (since the marked amplitude is now the most below-average item). After one full iteration:
- The marked amplitude increases by approximately .
- All unmarked amplitudes decrease by approximately .
Geometric picture
In the two-dimensional plane spanned by and (the uniform superposition over unmarked states), the oracle is a reflection across the horizontal axis and the diffuser is a reflection across . Their composition is a rotation by angle , where . Starting at angle from the horizontal, each iteration adds , so after iterations the angle is . The optimal number of iterations is , which puts the state closest to .
Building one iteration in a circuit
For a two-qubit search space with the marked state , the complete single iteration is:
- Initialise with to reach the uniform superposition.
- Oracle — a gate phase-flips .
- Diffuser — the standard -qubit diffuser circuit:
Written as a sequence of gates:
After this single iteration the probability of measuring is exactly .
Try it
Your task is to build one complete Grover iteration for a two-qubit system that marks . The oracle that marks phase-flips the state where qubit 0 is and qubit 1 is . Use an on qubit 1 to map , apply , then undo the .
After running your circuit, the distribution should place all probability on the bitstring 10.
That is amplitude amplification at work: one well-chosen reflection pair is enough to find one item
among four with certainty.
Sign in on the full site to ask questions and join the discussion.