OctoInform Beta

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

Phase gates S and S-dagger as phased rotations: Expressing SS and S†S^\dagger as global phases times RZ(π/2)R_Z(\pi/2) and RZ(−π/2)R_Z(-\pi/2)

The phase gate and its adjoint 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 phase gate shifts the relative phase between the two computational basis states by a quarter turn, and its adjoint reverses that shift. Up to a global phase factor, both operations are rotations about the zz axis of the Bloch sphere, linking discrete Clifford phase gates to continuous single-qubit rotations.

Single-qubit operators

In the computational basis {|0⟩,|1⟩}\{|0\rangle, |1\rangle\}, the Pauli matrices σx,σy,σz∈ℂ2×2\sigma_x, \sigma_y, \sigma_z \in \mathbb{C}^{2 \times 2} are given by σ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) From the Pauli matrices (1), the Pauli dot product n⋅σ∈ℂ2×2n \cdot \sigma \in \mathbb{C}^{2 \times 2} of a real vector n=(n1,n2,n3)∈ℝ3n = (n_1, n_2, n_3) \in \mathbb{R}^3 is defined by n⋅σ=n1σx+n2σy+n3σz.n \cdot \sigma = n_1 \sigma_x + n_2 \sigma_y + n_3 \sigma_z.(2) Using (2) and writing I2I_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 n∈ℝ3n \in \mathbb{R}^3 and θ∈ℝ\theta \in \mathbb{R} is Rn(θ)=cos⁡(θ/2)I2−isin⁡(θ/2)(n⋅σ).R_n(\theta) = \cos(\theta / 2) I_2 - i \sin(\theta / 2)\, (n \cdot \sigma).(3)✦ Setting n=(0,0,1)n = (0, 0, 1) in (3) gives the zz-axis rotation RZ(θ)=R(0,0,1)(θ)R_Z(\theta) = R_{(0, 0, 1)}(\theta).

The phase gate S∈ℂ2×2S \in \mathbb{C}^{2 \times 2} is the diagonal matrix S=(100i).S = \begin{pmatrix} 1 & 0 \\ 0 & i \end{pmatrix}.(4)✦ The conjugate transpose of the matrix (4) is denoted S†S^\dagger.

The claim

Theorem. The phase gate SS and its adjoint S†S^\dagger satisfy S=eiπ/4RZ(π/2)S = e^{i\pi/4} R_Z(\pi/2)(5)✦ and S†=e−iπ/4RZ(−π/2).S^\dagger = e^{-i\pi/4} R_Z(-\pi/2).(6)✦

What is checked

In the Lean library, the two identities (5) and (6) are stated for the phase gate SS and its conjugate transpose S†S^\dagger in terms of the single-qubit rotation Rn(θ)R_n(\theta) along n=(0,0,1)n = (0, 0, 1), built from the Pauli matrices σx\sigma_x, σy\sigma_y, and σz\sigma_z and the Pauli dot product n⋅σn \cdot \sigma.