Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 58 1 b Solution Created 2026-10-03 Updated 2026-10-07
Use the quantum Fourier transform convention , where . Reindexing the shifted sum givesThus the cyclic shift operator has these eigenvectors, with eigenvalues . This is cyclic shift diagonalization by the quantum Fourier transform, and it implies with .
For , the binary encoding is , with the more significant qubit. The required diagonal phase isso . The allowed-gate circuit is thereforeIn execution order, apply the inverse QFT, then the two phase gates, then the forward QFT. There is no extra global phase. Reversing the Fourier sign convention would conjugate both phase gate parameters.
Past exam of the mathematics course of the University of Cambridge 2022 ii Paper 3 15D b Solution Created 2026-09-24 Updated 2026-09-25
Use the conventionChanging the summation variable from to givesThus the Fourier-basis states are eigenvectors of the cyclic shift, with respective eigenvalues , and the cyclic shift diagonalization by the quantum Fourier transform is
For , write with . ThensoHence the required quantum circuit applies, from input to output,The first phase gate acts on the most significant qubit and the second on the least significant qubit .