Lean, informalized

Nielsen & Chuang · Chapter 4, Quantum circuits · p. 176

Exercise 4.10 - A phase and three rotations, about xx, then yy, then xx, give any unitary on one qubit

Every qubit gate from rotations about xx and yy.

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 Exercise

A gate UU on a single qubit is a unitary operator on the state space ℂ2\mathbb{C}^2 of the qubit, that is, a complex 2×22 \times 2 matrix with U†U=IU^\dagger U = I. The exercise asks for a decomposition of an arbitrary such gate into rotations about two fixed axes of the Bloch sphere, xˆ\hat{x} and yˆ\hat{y}: first a rotation about xˆ\hat{x}, then one about yˆ\hat{y}, then one about xˆ\hat{x} again, with the three angles chosen to fit UU and an overall phase factor in front.

Pauli Matrices and Rotations

The Pauli matrices XX, YY and ZZ, the components of the Pauli vector σ→=(X,Y,Z)\vec{\sigma} = (X, Y, Z), are the complex 2×22 \times 2 matrices X=(0110),Y=(0−ii0),Z=(100−1),X = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, \qquad Y = \begin{pmatrix} 0 & -i \\ i & 0 \end{pmatrix}, \qquad Z = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix},(1) with ii the imaginary unit. For a real vector n→=(nx,ny,nz)\vec{n} = (n_x, n_y, n_z) in three dimensions, the matrix n→⋅σ→\vec{n} \cdot \vec{\sigma} is the complex 2×22 \times 2 matrix formed from (1) with the components of n→\vec{n} as coefficients, n→⋅σ→=nxX+nyY+nzZ.\vec{n} \cdot \vec{\sigma} = n_x X + n_y Y + n_z Z.(2)✦

For a real vector n→\vec{n} in three dimensions and a real angle θ\theta, the rotation Rn→(θ)R_{\vec{n}}(\theta) is the complex 2×22 \times 2 matrix Rn→(θ)=exp⁡(−iθ2n→⋅σ→),R_{\vec{n}}(\theta) = \exp\!\left(-\frac{i\theta}{2}\, \vec{n} \cdot \vec{\sigma}\right),(3)✦ a matrix exponential. For a unit vector nˆ\hat{n} this is the rotation operator by θ\theta about nˆ\hat{n}.

The rotation Rx(θ)R_x(\theta) about the xˆ\hat{x} axis by an angle θ\theta is (3) with axis nˆ=(1,0,0)\hat{n} = (1, 0, 0), and the rotation Ry(θ)R_y(\theta) about the yˆ\hat{y} axis is the one with axis nˆ=(0,1,0)\hat{n} = (0, 1, 0): Rx(θ)=e−iθX/2,Ry(θ)=e−iθY/2.R_x(\theta) = e^{-i\theta X/2}, \qquad R_y(\theta) = e^{-i\theta Y/2}.(4)

The Claim

Theorem 1. Let UU be a unitary complex 2×22 \times 2 matrix. Then there are real numbers α\alpha, β\beta, γ\gamma and δ\delta such that U=eiαRx(β)Ry(γ)Rx(δ).U = e^{i\alpha}\, R_x(\beta)\, R_y(\gamma)\, R_x(\delta).(5)✦

What Is Checked

The claim is stated over an arbitrary unitary complex 2×22 \times 2 matrix UU and over the rotations RxR_x and RyR_y of (4), which rest on the general rotation (3), on the matrix n→⋅σ→\vec{n} \cdot \vec{\sigma} of (2) and on the Pauli matrices (1). The library states the decomposition (5) about these constructions.