The Exercise
The circuit acts on three qubits, two controls and a target. For a unitary of one qubit, the doubly controlled gate applies to the target exactly when both controls are .✦ Figure 4.8 of the book builds it from gates on two qubits, given a unitary with . The second qubit first controls on the target. A controlled NOT from the first qubit then flips the second, the second qubit controls on the target, and a second controlled NOT undoes the flip. Last, the first qubit controls on the target. The exercise is to verify that this circuit implements .
Qubits and Unitaries
A quantum system is a physical object whose state space is 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 the state spaces of and .✦ The qubit is the two level quantum system whose state space is , and the three qubits of the circuit form the composite system : the first qubit beside the pair of the second qubit and the target.
A pure state of a quantum system is a vector of unit norm in the state space of .✦ The basis states and of the qubit are the pure states whose vectors are the standard basis vectors and of .✦
A unitary of a quantum system , a closed system evolution of , is an operator on the state space of with .✦ For two unitaries and of , the composite , first then , is again a unitary of , and so is the adjoint , whose operator is the Hilbert space adjoint of that of . The identity evolution of is the unitary .✦
For unitaries of a system and of a system , the product unitary is the unitary of whose operator is the tensor product of the operators of and .✦ With the identity evolution in one factor it gives the gate on the first wires of , acting on and nothing on , and the gate on the last wires.
The Pauli gate, the quantum NOT, is the unitary of the qubit whose operator on is the matrix (1)✦
Controlled Gates
For a unitary of a system , the controlled gate is the unitary of , a control qubit and the target , with operator (2)✦ The target may itself be a composite system: the controlled NOT from the first of three qubits onto the second is , with of (1) and the gate on the first wires of the pair.
For a unitary of the qubit, the doubly controlled gate is the unitary of in which the first qubit controls the two qubit gate , itself controlled by the second qubit: (3)✦
The Circuit
For a unitary of the qubit, the circuit of Figure 4.8 is the unitary of (4)✦ whose rightmost factor acts first.
The Claim
Theorem 1. Let be a unitary of the qubit and the composite of with itself. Then the circuit is the doubly controlled gate of : (5)✦
What Is Checked
The claim is stated over the circuit (4) and the doubly controlled gate (3), unitaries of three qubits built from the controlled gate (2), the Pauli , adjoints, composites and products of unitaries.