The Exercise
A search space holds items, of which are solutions, with . Let be the normalized sum of the basis states of the items that are not solutions, and the normalized sum of those of the solutions. The search starts in the uniform superposition of all items, which in these two vectors is (1)✦ with .
Each Grover iteration rotates this state in the plane of and through the angle . After iterations the state makes the angle with , and measuring it finds a solution with probability . The exercise is to show that some number of iterations no larger than brings this probability to one half or more.
A Qubit for the Plane
The library takes that plane for a qubit. A quantum system is a physical system whose state space is a finite dimensional complex Hilbert space, and the qubit is the two level system whose state space is itself. The standard basis vector of is the vector with entry in place and in every other place.✦ On the qubit, stands for and for .
For a vector of , the reflection about is the complex matrix (2)✦ which for a unit vector reflects every vector about the line through . The oracle , which flips the sign of every solution, is on the qubit the reflection (2) about .✦
For an angle , the Grover iteration of the qubit is the oracle followed by the reflection about the starting state of (1): (3)✦
A pure state of a system is a unit vector in the state space of .✦ After iterations the qubit is in the pure state , the state that is measured below.
Measuring the Qubit
A state of is a positive operator of unit trace on the state space of .✦ A pure state of gives the state , the projector onto .✦
A measurement on with a finite set of outcomes is a family of measurement operators on the state space of , one for each outcome , that satisfies the completeness relation (4)✦ The effect of a measurement for the outcome is the operator , and the family is its positive operator valued measure (POVM).
When a measurement on is performed on a state of , the probability of the outcome is given by the Born rule, (5)✦
The projective measurement of in an orthonormal basis is the measurement whose operator for the outcome is the projector .✦ The solution measurement is the projective measurement of the qubit in the basis , so that outcome finds a solution and outcome an item that is not one.✦
The Claim
Theorem 1. Let and be real numbers with , and let the angle satisfy and . Then there is a number of Grover iterations such that, with the probability of outcome when the solution measurement is performed on , (6)✦
What Is Checked
The claim is stated over the probability (5) of outcome of the solution measurement on the state , where comes from applications of the Grover iteration (3) to the starting state (1) on the qubit.
About these constructions the library proves that has unit norm for every angle and every , which makes a pure state, and that the projector onto a unit vector is positive with unit trace, so that is a state. It proves the completeness relation (4) for the projectors onto an orthonormal basis, which makes the solution measurement a measurement, and that each effect is positive.