The Exercise
A single photon shared between two optical modes carries a qubit: the photon is in one mode or in the other, or in a superposition of the two. Gates on this qubit are built from phase shifters and beamsplitters. The exercise is to build the Hadamard gate from them: a phase shifter on one mode followed by a beamsplitter on both acts on the qubit as the Hadamard matrix , up to a global phase.
The library states the claim for a phase shifter of phase and a beamsplitter of angle , which are defined below.
Qubit Gates
The Pauli matrices are the complex matrices (1) and the Hadamard matrix is (2)
For a real vector in three dimensions, with components , , , and the Pauli vector , the matrix is the complex matrix that combines the Pauli matrices with these components as coefficients, and the rotation about by a real angle is its exponential: (3) For a unit vector the rotation is written . The rotation of a qubit about the axis is with , the matrix .✦
Optical Elements
On modes, the state of one photon is a column of complex amplitudes, one for each mode, and an optical element acts on it as a complex matrix.
For a complex matrix and two modes and among , the two-level embedding is the complex matrix that acts as on the amplitudes of and and as the identity on every other mode.✦ The beamsplitter of two modes and and a real angle is the two-level embedding of the rotation on those modes, (4)✦
The phase shifter of a mode among and a real phase is the diagonal complex matrix with diagonal entries (5)✦
On the two modes and , the column with amplitude one in mode is the state , the logical of the qubit, and the column with amplitude one in mode is , the logical . On these two modes , and the two-level embedding is itself. The optical Hadamard circuit on the modes and is the phase shifter of phase on mode followed by the beamsplitter of angle on the two modes: (6)✦
The Claim
Theorem 1. The optical Hadamard circuit is the Hadamard matrix times the global phase , (7)✦ and on the two basis states of the qubit it gives (8)✦ (9)✦
What Is Checked
The claim is stated over complex matrices and columns of amplitudes: the circuit (6), whose beamsplitter is the exponential (3) about the axis, the Hadamard matrix (2), and the two columns and .