The Exercise
Let be a unitary of one qubit. The gate acts on six qubits, five controls and a target: when all five controls are in it applies twice to the target, and otherwise it acts as the identity. The task is to build this gate on the six qubits alone, with no work qubit, as a circuit of gates with fewer controls. Besides and its adjoint, the circuit may apply to the target further unitaries of a qubit chosen for the given .
Qubits and Unitaries
A quantum system is a physical system 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 quantum system whose state space is .✦ A pure state of a system is a unit vector in the state space of .✦ The computational basis states and of the qubit are the pure states given by the standard basis vectors and of .✦
A unitary of a system is an operator on the state space of with , the evolution of as a closed system.✦ The adjoint of a unitary of is the unitary of given by the adjoint operator, and the identity of is the unitary given by the identity operator. For two unitaries and of , the product is the unitary of given by the composite operator: first , then .✦
For unitaries of and of , the product unitary is the unitary of whose operator is the tensor product of the operators of and .✦ The gate applies to and the identity to ; the gate applies the identity to and to .
The Pauli gate, the quantum NOT, is the unitary of the qubit whose matrix in the computational basis is (1)✦
Controlled Gates
For a unitary of a system , the controlled gate is the unitary of , a control qubit followed by the target , given by (2)✦
The control register of qubits around a system is the system of control qubits composed on the left of one at a time: and .✦ For a unitary of , the gate with controls is the unitary of that applies to when all control qubits are in and acts as the identity otherwise.✦ The gate is defined one control at a time by (3)
For a unitary of , the idle gate is the unitary of that applies the identity to each of the qubits and to .✦
The Circuit
The circuit is assembled from layers of one shape, each given by a number of controls and a unitary . Take a number of controls, a system with a unitary , and the register : control qubits, one further qubit , and . The Barenco reduction circuit , which is the layer, and its tail are the unitaries of the register given by (4) where is the NOT on with idle and is on with idle. In and the qubit is the control and the target.
Number the six qubits to with the target last. For four unitaries , , , of a qubit, the Barenco circuit for five controls is the unitary of given by (5)✦ In the layer with index , qubits to are the controls, qubit is , and consists of qubits to , on which the unitary of the layer acts on the target alone.
The Claim
The register of the circuit is the register of five controls around the target, so the circuit and the gate act on the same register.
Theorem 1. Let be a unitary of a qubit. Then there are unitaries , , of a qubit such that (6)✦
What Is Checked
The claim is stated over the gate with five controls, built from the controlled gate (2) by the recursion (3), and over the circuit (5) with its layers (4).
Of these constructions the library proves that they give unitaries. The matrix (1) is unitary, and the tensor product and the product of two unitaries are again unitary.