Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2024/ii/paper-1/10e/a/i/solution

Let . After the Hadamards and the oracle, Bernstein-Vazirani phase kickback gives

New to topics? Read the docs here!