Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 58 2 i Solution Created 2026-10-03 Updated 2026-10-07
A good item must exist, so assume ; if , the requested search is impossible, while makes every output good. Put and . Normalize the good and bad components of the uniform superposition state asThe Boolean phase oracle negates and fixes . The Grover diffusion operator is . Its implementation is independent of : conjugate the reflection about by Hadamard gates. One Grover search algorithm iteration isHence, by the Grover rotation angle formula,Choose the nonnegative integer nearest to . Its final angle differs from by at most , so a computational-basis measurement succeeds with probability at least . The allowed small-density regime includes , giving the requested bound. Each iteration uses one Boolean phase oracle query, and .
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 324 2 a Solution Created 2026-10-03 Updated 2026-10-06
Assume first . Define the orthonormal quantum statesand by . The relevant invariant subspace is the two-dimensional span of these quantum states, not the entire Hilbert space. The uniform quantum superposition is .
In the ordered orthonormal basis , the marked-state phase oracle is the reflection operator . Since , conjugation by the Walsh-Hadamard transform gives the Grover diffusion operatorIt is the reflection in the line through . The product of these two reflection operators is a rotation matrix by toward the marked quantum state:Thus the Born rule gives . Choose a nonnegative integer nearest to . Rounding changes the angle from by at most , soEach Grover search algorithm iteration uses one marked-state phase oracle query; all other gates are known. A final quantum measurement in the computational basis therefore produces a uniformly chosen marked item, conditional on success, with probability better than one half when . This uses the supplied marked count to select the stopping time; an unknown needs an additional search schedule or counting procedure. If , no oracle query is needed; if , no marked item exists, so a successful search is impossible.
Past exam of the mathematics course of the University of Cambridge 2022 ii Paper 4 10D a Solution Created 2026-09-24 Updated 2026-09-25
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.
Uniform superposition state Created 2026-10-05 Updated 2026-10-06
In an -dimensional computational basis, the uniform superposition state isMeasurement in that basis gives the uniform distribution on a finite set. For , Hadamard gates prepare it from . Its reflection is a Grover diffusion operator.