The Exercise
Two qubits enter a circuit, the first as control and the second as target. The target is rotated by about the axis, a controlled gate acts on the pair, and the target is rotated by about the same axis. This is the ion trap construction of the controlled NOT (CNOT) gate. The exercise is to show that the three steps give a CNOT up to a relative phase on the control: the circuit is the CNOT followed by the phase flip , the Pauli matrix , on the control qubit.
Qubits and Their Gates
A quantum system is given by its state space, a finite dimensional complex Hilbert space.✦ The composite system of two quantum systems and is the quantum system whose state space is the tensor product of their state spaces.✦ The qubit is the quantum system whose state space is , and a pair of qubits is the composite system .
A pure state of is a unit vector of the state space of , .✦ The computational basis states and of the qubit are the pure states whose vectors are the standard basis vectors and of .✦
A unitary of , a closed system evolution of , is an operator on the state space of with .✦ The identity evolution of is the unitary whose operator is .✦ Two unitaries and of compose to the unitary after , with operator : first , then .✦ For unitaries of and of , the product unitary is the unitary of whose operator is the tensor product of the two operators.✦ A gate on one factor alone is its product with the identity evolution of the other: on the first factor of , the first wires, is , and on the last factor, the last wires, is .
Pauli Matrices and Rotations
The Pauli matrices are the complex matrices (1) The Pauli vector is ; for a real vector in three dimensions, the matrix is the combination of the Pauli matrices.✦ The rotation about the axis by a real angle is the matrix (2)✦ written when the axis is a unit vector . The rotation about the axis is , with .✦
The rotation gate is the unitary of the qubit whose operator is the matrix acting on .✦ The Pauli gate of the qubit, the quantum NOT, is the unitary of the qubit whose operator is the matrix , and the Pauli gate of the qubit, the phase flip, is the unitary of the qubit whose operator is the matrix .
Controlled Gates
For a unitary of a system , the controlled gate is the unitary of , a control qubit and a target , with operator (3)✦ The CNOT gate is on a pair of qubits; it flips the target exactly when the control is .✦ The controlled gate is , whose matrix in the computational basis is .✦
The Claim
The ion trap circuit of the exercise is the unitary of (4)✦
Theorem 1. On a pair of qubits, the ion trap circuit equals the CNOT gate followed by the Pauli gate on the first wire, the control: (5)✦
What Is Checked
The library proves that every controlled gate is unitary: for each unitary of a system , the operator (3) satisfies .✦ It proves the same for the tensor product of two unitaries, for the composite of two unitaries, and for the operators that the matrices , and define on .