The Hadamard gate and a single-qubit interferometer
Keywords: quantum computing · Hadamard gate · phase gate · interference · qubit · measurement
Exercise 1 : The Hadamard gate and a single-qubit interferometer
In quantum information, manipulations of a qubit are described by unitary operators called gates. We consider a qubit with orthonormal basis , the Hadamard gate and the phase gate , defined in this basis by the matrices
where is a real number. Note that the subscript distinguishes the Hadamard gate from the Hamiltonian.
Thus : the gate is unitary. This is the situation, frequent for quantum gates, of an operator which is at once an observable and an evolution operator. From we deduce that any eigenvalue satisfies , hence . The trace of vanishes and its determinant equals : the sum of the eigenvalues vanishes and their product equals , so both values and are indeed present. One may also note that .
The Hadamard gate thus turns the basis states into balanced superpositions, which differ only by the relative sign. For the state , the Born rule gives The measurement is perfectly random: preparing and then applying a Hadamard gate is in fact a standard method for producing a quantum random bit.
Interpret.
The second Hadamard gate sends to and to , hence the final state Factoring out of each amplitude, and , so that This is an interference pattern: the probabilities oscillate with the phase , like the output intensity of a Mach–Zehnder interferometer whose two beam splitters would be the Hadamard gates and whose path difference would be the phase gate. The two paths here are the two basis states, and their amplitudes add before taking the squared modulus. For , the qubit comes out in with certainty, since ; for , it comes out in with certainty.
independently of : the fringes have disappeared. The intermediate measurement has turned the superposition into a classical alternative, and probabilities add instead of amplitudes. Knowing which path the system took destroys the interference, even if the outcome of the measurement is ignored: this is the complementarity between which-path information and fringes, at the heart of the lessons on interferometry.