OctoInform Beta

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

Single-qubit unitaries as phased rotations: Factoring any 2×22 \times 2 unitary matrix in U(2)\mathrm{U}(2) into a unit-modulus global phase and an axis-angle rotation Rn(θ)R_n(\theta)

Every single-qubit unitary factors as a phased 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 setting

Single-qubit quantum gates are represented by 2×22 \times 2 complex unitary matrices in the unitary group U(2)\mathrm{U}(2). Geometrically, each single-qubit gate acts on the Bloch sphere as a rotation about an axis in ℝ3\mathbb{R}^3, up to a unit-modulus scalar global phase that does not change the physical state. Expressing an arbitrary matrix in U(2)\mathrm{U}(2) as the product of a global phase and an axis-angle rotation gives a complete parameterization of single-qubit gates.

Single-qubit rotations

Let ii denote the imaginary unit. The Pauli matrices σx\sigma_x, σy\sigma_y, and σz\sigma_z are the 2×22 \times 2 complex matrices given in (1): σx=(0110),σy=(0−ii0),σz=(100−1).\begin{aligned} \sigma_x &= \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, \\ \sigma_y &= \begin{pmatrix} 0 & -i \\ i & 0 \end{pmatrix}, \\ \sigma_z &= \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}. \end{aligned}(1)

For a three-component real vector n=(n1,n2,n3)∈ℝ3n = (n_1, n_2, n_3) \in \mathbb{R}^3, the Pauli dot product n⋅σn \cdot \sigma is the 2×22 \times 2 complex linear combination n⋅σ=n1σx+n2σy+n3σz.n \cdot \sigma = n_1 \sigma_x + n_2 \sigma_y + n_3 \sigma_z.(2)✦

With II denoting the 2×22 \times 2 identity matrix and n⋅σn \cdot \sigma defined by (2), the single-qubit rotation Rn(θ)R_n(\theta) for a real vector n∈ℝ3n \in \mathbb{R}^3 and a real angle θ∈ℝ\theta \in \mathbb{R} is the 2×22 \times 2 complex matrix given in (3): Rn(θ)=cos⁡(θ/2)I−isin⁡(θ/2)n⋅σ.R_n(\theta) = \cos(\theta / 2) I - i \sin(\theta / 2)\, n \cdot \sigma.(3)✦

The claim

Theorem. For every 2×22 \times 2 complex unitary matrix U∈U(2)U \in \mathrm{U}(2), there exist a complex number z∈ℂz \in \mathbb{C} with |z|=1|z| = 1, a real vector n=(n1,n2,n3)∈ℝ3n = (n_1, n_2, n_3) \in \mathbb{R}^3 satisfying n12+n22+n32=1n_1^2 + n_2^2 + n_3^2 = 1, and a real angle θ∈ℝ\theta \in \mathbb{R} such that U=zRn(θ).U = z R_n(\theta).(4)✦

What is checked

The Lean library states the factorization (4) for an arbitrary 2×22 \times 2 complex unitary matrix U∈U(2)U \in \mathrm{U}(2) in terms of the Pauli matrices σx\sigma_x, σy\sigma_y, and σz\sigma_z, the Pauli dot product n⋅σn \cdot \sigma, and the single-qubit rotation Rn(θ)R_n(\theta).