The Exercise
Take a system whose state space has orthonormal basis states , and let be the uniform superposition of all of them, as in Grover’s search algorithm. The exercise is to show that the operator acts on a state by sending each amplitude to , where is the mean of the amplitudes. Since , each amplitude is reflected through the mean, and the operator is called the inversion about the mean.
Amplitudes and Reflections
The state space is with its computational basis , so that a vector is given by its complex amplitudes and an operator by an complex matrix.
The mean of the amplitudes of a vector of is the complex number (1)✦
The uniform superposition of is the vector whose amplitudes all equal : (2)✦
The reflection about a vector of is the complex matrix, with the identity and the Kronecker delta, (3)✦
The inversion about the mean in dimension is the reflection (3) about the uniform superposition (2): (4)✦
The Claim
Theorem 1. Let be a vector of and the mean of its amplitudes. Then for each , the amplitude of in the image of under the inversion about the mean is (5)✦
Multiplied by and summed over , (5) gives the exercise’s identity, for every vector of and not only for normalized states.
What Is Checked
The claim is stated over four constructions: the uniform superposition (2), the reflection about a vector (3), the inversion about the mean (4), and the mean of the amplitudes (1).
What the library proves about them is the identity (5), in every dimension and for each amplitude .