OctoInform Beta

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

T gate as a phased Z-rotation: The TT gate differs from eiπ/8RX(π/4)e^{i\pi/8} R_X(\pi/4) and equals eiπ/8RZ(π/4)e^{i\pi/8} R_Z(\pi/4)

The TT gate as a phased ZZ-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

Every single-qubit unitary gate equals a Bloch-sphere rotation up to a global phase factor. Identifying the axis and angle of that rotation for a standard gate such as the TT gate specifies how the gate is realized in terms of Pauli-generated rotations. Because the TT gate is diagonal in the computational basis, expressing it as a phased rotation distinguishes a rotation about the zz-axis from one about the xx-axis.

Single-qubit gates

The Pauli matrices σx,σy,σz∈ℂ2×2\sigma_x, \sigma_y, \sigma_z \in \mathbb{C}^{2 \times 2} are given by (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 any real vector n=(n1,n2,n3)∈ℝ3n = (n_1, n_2, n_3) \in \mathbb{R}^3, their linear combination n⋅σ∈ℂ2×2n \cdot \sigma \in \mathbb{C}^{2 \times 2}, the Pauli dot product, takes the form (2): n⋅σ=n1σx+n2σy+n3σz.n \cdot \sigma = n_1 \sigma_x + n_2 \sigma_y + n_3 \sigma_z.(2)✦

Writing I2∈ℂ2×2I_2 \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} associated with n∈ℝ3n \in \mathbb{R}^3 and an angle θ∈ℝ\theta \in \mathbb{R} is (3): Rn(θ)=cos⁡(θ/2)I2−isin⁡(θ/2)(n⋅σ).R_n(\theta) = \cos(\theta / 2) I_2 - i \sin(\theta / 2) (n \cdot \sigma).(3)✦ Along the coordinate axes (1,0,0)(1, 0, 0) and (0,0,1)(0, 0, 1), we write RX(θ)=R(1,0,0)(θ)R_X(\theta) = R_{(1, 0, 0)}(\theta) and RZ(θ)=R(0,0,1)(θ)R_Z(\theta) = R_{(0, 0, 1)}(\theta).

The TT gate T∈ℂ2×2T \in \mathbb{C}^{2 \times 2} is the diagonal phase gate (4): T=(100eiπ/4).T = \begin{pmatrix} 1 & 0 \\ 0 & e^{i\pi/4} \end{pmatrix}.(4)✦

The claim

Theorem. The TT gate does not equal the phased xx-axis rotation at angle π/4\pi / 4, T≠eiπ/8RX(π/4),T \neq e^{i\pi/8} R_X(\pi/4),(5)✦ and equals the phased zz-axis rotation at angle π/4\pi / 4, T=eiπ/8RZ(π/4).T = e^{i\pi/8} R_Z(\pi/4).(6)✦

In the paper, the result reads: T=eiπ/8RX(π/4)T = e^{i\pi/8} R_X(\pi/4).

What is checked

In the Lean library, the inequality (5) and the identity (6) are stated over 2×22 \times 2 complex matrices, using the TT gate (4) and the single-qubit rotation (3) formed from the Pauli matrices (1) and the Pauli dot product (2).