Exercise4.14 - The
gate between two Hadamard gates is the rotation by
about the
axis, times the phase
Conjugating
by
gives an
rotation.
Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its
declaration both in Lean and in words.
The Exercise
On a single qubit, take the gate and apply a Hadamard gate before and after it. The exercise is to show that the result, , is the rotation by about the axis, up to a global phase.
The Gates
The Hadamard gate and the gate are the complex matrices, in the computational basis ,(1)
The Pauli matrices , and are the complex matrices (2)For a real vector in three dimensions, is the complex matrix .✦
For a real vector in three dimensions and a real angle , the rotation operator about by is the complex matrix (3)✦ written when the axis is a unit vector .The rotation about the axis by is the one with axis , for which :(4)✦
The Claim
The library states the exercise with the global phase fixed.
Theorem 1. The gate between two Hadamard gates is the rotation by about the axis times the phase :(5)✦
What Is Checked
The claim is stated over the gates and of (1) and the rotation , the case of (4). What the library proves about them is the identity (5).