Lean, informalized

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

Exercise 4.2 - The rotation of a qubit about the xx axis, written out in cosines and sines of half the angle

The matrix of a rotation about the xx axis.

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

On a qubit, the rotation by an angle θ\theta about the xx axis is the operator Rx(θ)=exp⁡(−iθX/2)R_x(\theta) = \exp(-i\theta X/2), the exponential of a multiple of the Pauli matrix XX.✦ The exercise asks for this exponential written out as a 2×22 \times 2 matrix, with entries given by the cosine and the sine of half the angle.

Rotations About an Axis

The Pauli matrices XX, YY and ZZ 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, and σ→=(X,Y,Z)\vec{\sigma} = (X, Y, Z) is the Pauli vector.

The matrix n→⋅σ→\vec{n} \cdot \vec{\sigma} of a real vector n→=(nx,ny,nz)\vec{n} = (n_x, n_y, n_z) in three dimensions is the complex 2×22 \times 2 matrix n→⋅σ→=nxX+nyY+nzZ.\vec{n} \cdot \vec{\sigma} = n_x X + n_y Y + n_z Z .(2)✦

The rotation Rn→(θ)R_{\vec{n}}(\theta) about an axis n→\vec{n}, any real vector in three dimensions, by a real angle θ\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)✦ where exp\exp is the matrix exponential. For a unit vector nˆ\hat{n} it is written Rnˆ(θ)R_{\hat{n}}(\theta).

The rotation Rx(θ)R_x(\theta) about the xx axis by a real angle θ\theta is the rotation about the unit vector xˆ=(1,0,0)\hat{x} = (1, 0, 0): Rx(θ)=Rxˆ(θ).R_x(\theta) = R_{\hat{x}}(\theta) .(4)✦ Since xˆ⋅σ→=X\hat{x} \cdot \vec{\sigma} = X, this is the operator exp⁡(−iθX/2)\exp(-i\theta X/2) of the exercise.

The Claim

Theorem 1. For every real angle θ\theta, the rotation about the xx axis is the matrix Rx(θ)=(cos⁡θ2−isin⁡θ2−isin⁡θ2cos⁡θ2).R_x(\theta) = \begin{pmatrix} \cos\frac{\theta}{2} & -i \sin\frac{\theta}{2} \\ -i \sin\frac{\theta}{2} & \cos\frac{\theta}{2} \end{pmatrix} .(5)✦

What Is Checked

The claim is stated over the rotation Rx(θ)R_x(\theta) of (4), hence over the general rotation (3), whose exponent is built from the Pauli matrices (1) through the matrix (2) of the axis.

What the library proves about these constructions is the identity (5), which evaluates the matrix exponential (3) at the axis xˆ\hat{x} in closed form for every real angle.