Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2025/iii/paper-324/1/b/iv/solution

Use as the target register for quantum phase estimation of . By part (iii), it is the equal superposition of eigenvectors with phases . Controlled modular multiplications implement the required powers efficiently. The phase-estimation circuit produces
where the first register contains an -bit approximation with constant success probability. A quantum measurement in the computational basis therefore outputs an approximation to , with uniformly distributed over .

New to topics? Read the docs here!