Put and define . The normalized good and bad vectors have disjoint computational basis supports, so they are orthogonal. Counting the terms in the uniform quantum superposition gives
Since , the Hadamard transform gives , the Grover diffusion operator. On the ordered orthonormal basis , the two reflection operators have matrices
Their product is
This is a plane rotation through angle in the displayed coordinate convention, with the invariant good-bad plane preserved by both operators. In particular its action sends to . Induction therefore gives the Grover rotation angle formula
Measuring the state from part (a) in the computational basis succeeds with probability . In the sparse-solution regime , one has . The first success interval with is . Entering it requires , so the first half-probability Grover iterate is
For this integer, the angle is at least and less than , so the rounding cannot skip the required interval. Every smaller nonnegative integer has angle below and hence success below , proving minimality. For , the leading size is . If , the initial measurement already succeeds with probability at least one half and the smallest count is zero; if no search can succeed.
For the known bit string , define the Pauli gate product . Its diagonal action is , where the binary inner product is taken modulo two. The Hadamard transform produces . Thus the required vectors for Grover search with a nonzero reflection label are
They remain orthonormal and . The new iterate is . Since commutes with the diagonal marked-state phase oracle and ,
Consequently its matrix on the signed basis is exactly the rotation matrix in part (a), proving the claimed equivalence of the two evolutions.
Initialize the register in
This can be prepared by Pauli X gates on the one-bits of , starting from , followed by Hadamard gates on all qubits. Alternatively, prepare the original uniform state and apply Pauli Z gates at those same bit positions. The conjugation calculation gives
The final diagonal sign operator changes no computational basis outcome probabilities. Thus the success probability and the iteration count in part (b) are unchanged. No final correction is needed when the objective is to measure a marked string.

Articles by others on the same topic (0)

There are currently no matching articles.