The Exercise
The Hadamard gate on a single qubit can be built from rotations about the and axes. A rotation by about , followed by a rotation by about , gives up to the global phase , a factor common to every state and without observable effect.✦
The library states the decomposition for the matrices of the gates, with the rotations built as exponentials of the Pauli matrices defined below.
Gates and Rotations of a Qubit
The Hadamard matrix is the complex matrix (1)✦
The Pauli matrices , and are the complex matrices (2) with the imaginary unit.
Let be the Pauli vector. For a real vector in three dimensions, the matrix is the complex matrix .✦ The rotation about the axis by a real angle is the complex matrix (3)✦ For a unit vector this is the rotation of a qubit by the angle about .
The rotation by an angle about the axis is with , and the rotation about the axis is with : (4)
The Claim
In a product of gates the one that acts first stands on the right, next to the state.
Theorem 1. The Hadamard matrix of (1) and the rotations and of (4) satisfy (5)✦
What Is Checked
The claim is stated over the Hadamard matrix (1) and the rotations and of (4).