Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2025/iii/paper-324/3/c/solution

Start with and a zeroed second register. Apply the coherent construction from part (a)(iv) to obtain
Now run the inverse of the phase-estimation map from part (b) on the two registers. It erases the first label in both branches:
Discarding the zeroed register leaves the required quantum Fourier transform of the superposition. The coherent use of a computed label followed by its inverse is an uncomputation.

New to topics? Read the docs here!