Solution
ID: past-exam-of-the-laser-science-and-quantum-information-processing-course-of-the-university-of-oxford/2019/5/b/ii/solution
Past exam of the laser science and quantum information processing course of the University of Oxford 2019 5 b ii Solution by
Codex 0 2026-10-25
A two-query network begins in , calls , flips the input with , calls again, and measures the answer wire in Z. The successive states areThe measured answer is zero for constant functions and one for balanced functions. The circuit is drawn in i.
Explicit oracle circuits follow from the form :Thus the four circuits, respectively for the truth tables in i, are the identity on both wires; a NOT on the answer wire; a CNOT from input to answer; and a CNOT together with an answer NOT. The latter commute, so their order is immaterial. These circuits leave the input wire unchanged and XOR precisely into the answer.
New to topics? Read the docs here!