The Amplification Operator
Grover's search and its generalization, amplitude amplification, both rely on two geometric primitives: a reflection about a "marked" subspace, and a reflection about the initial state. The composition of these two reflections — called the amplification operator or Grover iterate — rotates the quantum state toward the marked subspace.
The two reflections
Let be the uniform superposition over qubits, and let be the marked state (or subspace). Two unitary reflections are needed.
1. Oracle reflection
The oracle flips the sign of every marked basis state and leaves unmarked states unchanged:
In matrix terms . The oracle is a reflection about the complement of the marked subspace.
2. Diffuser (reflection about )
The diffuser reflects every amplitude about the mean, equivalently it reflects the state vector about :
For a uniform initial state on qubits we can implement with a standard circuit identity. Because , we can conjugate a reflection about by :
The inner factor flips the sign of every state except , which is the same as flipping the sign of alone (up to global phase):
For two qubits the circuit realization is straightforward. The sign of is flipped by conjugating a gate (which flips ) with on each qubit:
The full two-qubit diffuser circuit is therefore
The Grover iterate
Applying the oracle followed by the diffuser gives the Grover iterate . Each application of rotates the state by toward the marked state, where , is the number of marked items, and . After iterations the amplitude on the marked state is maximized (Nielsen and Chuang, §6.1).
For and , the initial angle satisfies , so . One application of rotates the state by , placing the total angle at — exactly the marked state. A single iteration therefore suffices for certainty. For larger (where is smaller) one iterate does not reach , so more are needed — up to the optimal .
Try it
Build the diffuser for two qubits. The grader checks the full unitary matrix, so the identity circuit will fail — you must implement the genuine reflection .
Sign in on the full site to ask questions and join the discussion.