Solution

ID: past-exam-of-the-computer-science-course-of-the-university-of-oxford/2023/quantum-information/2/b/iii/solution

Initialize two qubits in . A Hadamard gate on the first followed by a controlled-NOT gate prepares the Bell state . The permitted T gates and Hadamard gates implement the needed Pauli gates exactly:
Apply , followed by . These are a Pauli Z gate on the first qubit and a Pauli X gate on the second, giving
Every operation is in the allowed gate set; no quantum measurement or probabilistic branch is needed.

New to topics? Read the docs here!