OctoInform Beta

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

Square-root-of-X gate identities: The X\sqrt{X} gate squares to the Pauli matrix σx\sigma_x and equals eiπ/4R(1,0,0)(π/2)e^{i\pi/4} R_{(1,0,0)}(\pi/2)

Matrix square and rotation form of the square-root-of-X gate.

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, a gate that squares to the bit-flip Pauli matrix can also be realized as a quarter-turn rotation about the xx-axis up to a global phase. Relating the matrix definition of this gate to its square and to a phased axis-angle rotation connects discrete gate sets with continuous single-qubit rotations.

Single-qubit operators

The Pauli matrices σx,σy,σz∈ℂ2×2\sigma_x, \sigma_y, \sigma_z \in \mathbb{C}^{2 \times 2} are the 2×22 \times 2 complex matrices defined 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) where ii denotes the imaginary unit.

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⋅σ∈ℂ2×2n \cdot \sigma \in \mathbb{C}^{2 \times 2} is the linear combination (2): n⋅σ=n1σx+n2σy+n3σz.n \cdot \sigma = n_1 \sigma_x + n_2 \sigma_y + n_3 \sigma_z.(2)✦ For an axis vector n∈ℝ3n \in \mathbb{R}^3 and a real rotation angle θ∈ℝ\theta \in \mathbb{R}, the single-qubit rotation Rn(θ)∈ℂ2×2R_n(\theta) \in \mathbb{C}^{2 \times 2} is defined by (3): Rn(θ)=cos⁡(θ/2)I−isin⁡(θ/2)n⋅σ,R_n(\theta) = \cos(\theta/2) I - i \sin(\theta/2)\, n \cdot \sigma,(3)✦ where I∈ℂ2×2I \in \mathbb{C}^{2 \times 2} is the 2×22 \times 2 identity matrix.

The X\sqrt{X} gate is the 2×22 \times 2 complex matrix X∈ℂ2×2\sqrt{X} \in \mathbb{C}^{2 \times 2} given by (4): X=((1+i)/2(1−i)/2(1−i)/2(1+i)/2).\sqrt{X} = \begin{pmatrix} (1 + i)/2 & (1 - i)/2 \\ (1 - i)/2 & (1 + i)/2 \end{pmatrix}.(4)✦

The claim

Theorem. The X\sqrt{X} gate satisfies the matrix-square identity (X)2=σx(\sqrt{X})^2 = \sigma_x(5)✦ and the phased rotation identity X=eiπ/4R(1,0,0)(π/2).\sqrt{X} = e^{i\pi/4} R_{(1, 0, 0)}(\pi/2).(6)✦

What is checked

In the Lean library, the identities (5) and (6) are stated over the 2×22 \times 2 complex matrix definitions of the Pauli matrices σx\sigma_x, σy\sigma_y, and σz\sigma_z, the Pauli dot product n⋅σn \cdot \sigma, the single-qubit rotation Rn(θ)R_n(\theta) for arbitrary n∈ℝ3n \in \mathbb{R}^3 and θ∈ℝ\theta \in \mathbb{R}, and the X\sqrt{X} gate.