The Exercise
A single photon is shared between two optical modes. Each mode holds either no photon or one, so each is a two level system, with an empty mode and a mode holding the photon. The pair carries one logical qubit in the choice of mode: the logical zero has the photon in the second mode and the logical one has it in the first. This is the dual rail representation of a qubit. A phase shifter of angle is placed on the second mode, and the exercise asks what it does to a general superposition of the two logical states.
A Quantum System
A quantum system is a physical object whose state space is a finite dimensional complex Hilbert space.✦ A pure state of is a vector of unit norm in the state space of , , determined physically up to a global phase.✦
A finite dimensional complex Hilbert space given in advance is the state space of a quantum system, the system with state space .✦ The qubit is the two level system obtained this way from .✦ For a bit , the basis state of the qubit is the pure state whose vector is the standard basis vector of ; and are the computational basis states.✦
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 .✦ For pure states of and of , the product is the pure state of whose vector is the tensor product of the two vectors.✦ The two modes form the composite system of two qubits, and stands for .
The Dual Rail Qubit
The logical zero and the logical one are product states of two qubits: (1) For any complex amplitudes and , the dual rail vector is , a vector in the state space of two qubits.✦ When , the dual rail state is the pure state of two qubits with this vector, (2)✦
The Phase Shifter
A unitary of a quantum system is a closed system evolution of : an operator on the state space of with .✦ A unitary of carries a pure state of to the pure state of , whose vector is the vector of acted on by .✦ The identity evolution of is the unitary whose operator is the identity .✦
For unitaries of and of , the product unitary is the unitary of whose operator is the tensor product of the operators of and .✦ A gate on the last wire of is a unitary of of the form , where is the identity evolution of and is a unitary of .✦
The phase gate with angle is the unitary of the qubit that is diagonal in the computational basis, leaving alone and multiplying by the phase : (3)✦
The phase gate acts on the second mode, so the evolution of the two modes is the gate on the last wire of two qubits: (4)✦
The Claim
Theorem 1. Let and be complex numbers with . Then the phase shifter carries the dual rail state to the dual rail state with amplitudes and : (5)✦
What Is Checked
The claim is stated over the dual rail state (2), a pure state of the composite system of two qubits built from the logical states (1), and over the unitary (4), the phase gate (3) at angle on the second qubit, applied to that state as a closed system evolution.
The library proves that the vector has unit norm whenever , and that a product of pure states has unit norm, the norm of a product vector being the product of the norms. It proves that the phase gate is unitary, as a diagonal operator whose entries have unit modulus, and that the tensor product of two unitaries is unitary.