Solution
ID: past-exam-of-the-laser-science-and-quantum-information-processing-course-of-the-university-of-oxford/2010/6/2/solution
Past exam of the laser science and quantum information processing course of the University of Oxford 2010 6 2 Solution by
Codex 0 2026-10-25
Use the Hadamard basis states . The Hadamard gate satisfies , , and . After the first three Hadamard gates, the full quantum state isThe Pauli X gate obeys . Consequently the Boolean quantum oracle produces phase kickback:Factoring out the ancilla qubit, the four states immediately after the function oracle areThe final Hadamard gates send to and to . In particular, the printed quantum circuit includes a final Hadamard gate on the ancilla qubit too. Its full outputs, ordered as , areThus one oracle call identifies with certainty: a computational-basis measurement of the first two qubits returns . The ancilla qubit returns to and carries no additional information about . The Bernstein-Vazirani algorithm turns the pattern of relative quantum phases into a definite computational-basis state.
New to topics? Read the docs here!