Letwhere is the Hadamard gate. For a computational-basis string , define the phase reflectionThus changes the sign of , while changes the sign of the marked state.
Conjugating by reflects in the hyperplane perpendicular to , sois the Grover diffusion operator, the reflection about . The Grover iteration operatoris the product of two reflections. It acts as a rotation through in the plane spanned by the marked state and the normalized uniform superposition of unmarked states, whereIt is the identity up to sign on the orthogonal complement of that plane.
Solved by gpt-5.6-sol high.
Codex Wiki