OctoInform Beta

the paper · §I. Single-qubit gates, XY interaction, and iSWAP · §I

Pauli and Hadamard gates as phased rotations: Representing XX, YY, ZZ, and HH as eiπ/2e^{i\pi/2} times an axis-angle rotation Rn(π)R_n(\pi)

Pauli and Hadamard gates as phased rotations.

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 setting

In single-qubit quantum circuits, the Pauli gates and the Hadamard gate are standard building blocks, while physical control fields naturally generate axis-angle rotations. Relating these two descriptions matches each gate to a half-turn rotation about a specific real axis up to a global phase factor.

Single-qubit gates and rotations

The Pauli matrices X,Y,Z∈ℂ2×2X, Y, Z \in \mathbb{C}^{2 \times 2} are the complex 2×22 \times 2 matrices given in (1): X=(0110),Y=(0−ii0),Z=(100−1).\begin{aligned} X &= \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, \\ Y &= \begin{pmatrix} 0 & -i \\ i & 0 \end{pmatrix}, \\ Z &= \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}. \end{aligned}(1)

From XX and ZZ, the Hadamard gate H∈ℂ2×2H \in \mathbb{C}^{2 \times 2} is defined by (2): H=12(X+Z).H = \frac{1}{\sqrt{2}}(X + Z).(2)✦

For any real vector n=(n1,n2,n3)∈ℝ3n = (n_1, n_2, n_3) \in \mathbb{R}^3, the Pauli dot product n⋅σ∈ℂ2×2n \cdot \sigma \in \mathbb{C}^{2 \times 2} is the linear combination in (3): n⋅σ=n1X+n2Y+n3Z.n \cdot \sigma = n_1 X + n_2 Y + n_3 Z.(3)✦

Writing I∈ℂ2×2I \in \mathbb{C}^{2 \times 2} for the 2×22 \times 2 identity matrix, the single-qubit rotation Rn(θ)∈ℂ2×2R_n(\theta) \in \mathbb{C}^{2 \times 2} for any real vector n∈ℝ3n \in \mathbb{R}^3 and any real angle θ∈ℝ\theta \in \mathbb{R} is specified by (4): Rn(θ)=cos⁡(θ2)I−isin⁡(θ2)(n⋅σ).R_n(\theta) = \cos\left(\frac{\theta}{2}\right) I - i \sin\left(\frac{\theta}{2}\right) (n \cdot \sigma).(4)✦

The claim

Theorem. The Pauli matrices XX, YY, and ZZ and the Hadamard gate HH satisfy the phased rotation identities X=eiπ/2R(1,0,0)(π),X = e^{i\pi/2} R_{(1, 0, 0)}(\pi),(5)✦ Y=eiπ/2R(0,1,0)(π),Y = e^{i\pi/2} R_{(0, 1, 0)}(\pi),(6)✦ Z=eiπ/2R(0,0,1)(π),Z = e^{i\pi/2} R_{(0, 0, 1)}(\pi),(7)✦ and H=eiπ/2R(1/2,0,1/2)(π).H = e^{i\pi/2} R_{(1/\sqrt{2}, 0, 1/\sqrt{2})}(\pi).(8)✦

What is checked

In the Lean library, the identities (5), (6), (7), and (8) are stated over the complex 2×22 \times 2 matrix definitions of the Pauli matrices XX, YY, and ZZ, the Hadamard gate HH, the Pauli dot product n⋅σn \cdot \sigma, and the single-qubit rotation Rn(θ)R_n(\theta) for arbitrary real vectors n∈ℝ3n \in \mathbb{R}^3 and real angles θ∈ℝ\theta \in \mathbb{R}.