PHYSICS · Multi-part · Fermi University Physics · Quantum Information & Technology · The quantum circuit model and quantum algorithms · The quantum circuit model and quantum algorithms
Quantum Information and Technology, Ch Oracles, quantum parallelism and the first algorithms
Problem
For two input qubits x1,x2, the phase oracle of a two-bit function g is Og∣x1x2⟩=(−1)g(x1,x2)∣x1x2⟩.
((a)) For g=AND, g(x1,x2)=x1∧x2, write Og as a 4×4 diagonal matrix in the basis ∣00⟩,∣01⟩,∣10⟩,∣11⟩, and identify it with a gate from Chapter 5.
((b)) For h=NOR, h(x1,x2)=1 only at x1=x2=0, write Oh as a 4×4 diagonal matrix, and show that Oh=(X⊗X)OAND(X⊗X).
((c)) Explain in words why conjugating any two-qubit phase oracle by X⊗X turns the oracle for g(x1,x2) into the oracle for g(xˉ1,xˉ2) (both input bits negated), and check that this rule is consistent with part (b), using NOR(x1,x2)=AND(xˉ1,xˉ2).