Solution

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

Initialize three qubits in . Apply a Hadamard gate on the first, then controlled-NOT gates and :
Apply the T gate twice to the first qubit. Because , the resulting GHZ state with the specified relative quantum phase is

New to topics? Read the docs here!