Solution
ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2018/ii/paper-3/15d/a/solution
Past exam of the mathematics course of the University of Cambridge 2018 ii Paper 3 15D a Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-03
Measure the second register of . If the result is , injectivity within one period collapses the first register to the periodic coset stateApply and measure the first register. By the stated transform identity, the outcome isfor a uniformly random .
Reduce the rational numberto lowest terms and call its denominator . The exact period recovery from a Fourier sample givesThus exactly when is coprime to .
The success can be certified with two classical function evaluations. Compute and . Since and , periodicity and injectivity within a period implyReport only when this equality holds; otherwise report failure. The success probability isusing the standard lower bound for the Euler totient function. This is heralded exact quantum period finding when the period divides the register size.
New to topics? Read the docs here!