The Exercise
Two qubits are carried by two coupled spins, as in nuclear magnetic resonance (NMR): each spin can be rotated on its own, and between rotations the pair evolves under its coupling. The controlled NOT (CNOT) flips the second qubit, the target, exactly when the first, the control, is . The exercise is to show that a rotation of the target by about , a period of free evolution under the coupling and a rotation of the target by about perform the CNOT on the computational basis up to phases, and that rotations about and one global phase remove those phases.
The library states this for a coupling constant and a coupling time , first on the basis states and then for the circuit with the added rotations about and the global phase, as an equality of unitaries and as an evolution of states.
Two Qubits
A quantum system is a physical system whose state space is a finite dimensional complex Hilbert space.✦ The qubit is the quantum system whose state space is ; its computational basis states and are the standard basis vectors and . The composite system of two systems and is the quantum system whose state space is the tensor product of their state spaces.✦ Two qubits thus form , with basis states for bits and .
A pure state of is a unit vector in the state space of , and the basis states of the qubit are pure states.✦ A state of is a positive operator of unit trace on the state space of .✦
A unitary of is an operator on the state space of with .✦ It evolves a state of into the state .✦ The composite of unitaries and of is the unitary of that applies first and then .✦ Unitaries of and of have a product , the unitary of whose operator is the tensor product of the two.✦ A unitary of acts on the first system of as , with the identity unitary of ; for a unitary of , the gate on the second system is the unitary of , with the identity unitary of . For a real angle , the global phase gate on a system is the unitary of , which multiplies every vector of the state space by .
Rotations and the Controlled NOT
The Pauli matrices are (1) For a real vector in three dimensions, , and the rotation by a real angle about is the matrix (2) written when the axis is a unit vector . The rotations , and are those about , and ; thus . The gate is the unitary of the qubit whose matrix in the computational basis is .
The Pauli gate, the quantum NOT, is the unitary of the qubit whose matrix is .✦ For a unitary of a system , the controlled gate is the unitary of , a control qubit and the target , given by (3)✦ The CNOT gate is the controlled gate of the Pauli , a unitary of two qubits.✦
The Coupling
An observable on a system is a self adjoint operator on the state space of .✦ For a real vector in three dimensions, the Pauli observable is the observable on the qubit whose operator has the matrix ; the observable is the Pauli observable for . The tensor product of observables on and on is the observable on whose operator is the tensor product of theirs.✦ The coupling Hamiltonian of two spins with real coupling constant is the observable on two qubits, written with and , the observable on the first and on the second qubit, (4)✦
The propagator of a Hamiltonian on from time to time , with Planck’s constant , is the unitary of , which carries the state vector of at time to the state vector at time .✦ In units with , the coupling acting from time to time gives .
The Circuit
The NMR circuit is the unitary of two qubits that applies to the target, lets the coupling act for a time , and applies to the target: (5)✦
The phases of the circuit, one for each pair of bits and , are the four complex numbers (6)✦
The corrected circuit is the unitary of two qubits that applies , then the gate to the target and the gate to the control: (7)
The Claim
Theorem 1. Let and be real numbers with . For all bits and , with their sum modulo , (8)✦ With the global phase gate , (9)✦ and for every state of two qubits the corrected circuit alone evolves as the CNOT gate does: (10)✦
What Is Checked
The claim is stated over the circuit of (5), built from the rotation gates and on the target and the propagator of the coupling Hamiltonian (4); over its phases (6), the corrected circuit (7) and the global phase gate; and over the CNOT gate and the evolution of the states of two qubits.
The controlled gate of (3) is unitary for every unitary .✦ The same holds of the rotation gates, from the unitarity of their matrices, and of the propagator of an observable and the global phase gate. Products and tensor products of unitaries are again unitary, and a unitary carries a state to a state, so that in (10) is a state of two qubits.