← Exercise library← All exercises for this theme
Theme 2 — Hilbert Spaces and Dirac Notation

Pauli decomposition of two-by-two matrices

Keywords: Pauli matrices · decomposition · Hermitian matrix · eigenvalues · rank-one projector · Bloch vector

Exercise 1 : Pauli decomposition of two-by-two matrices

Let σ=(σx,σy,σz)\boldsymbol\sigma=(\sigma_x,\sigma_y,\sigma_z) denote the Pauli matrices, and for a vector a=(ax,ay,az)\mathbf a=(a_x,a_y,a_z), let a⋅σ=axσx+ayσy+azσz\mathbf a\cdot\boldsymbol\sigma=a_x\sigma_x+a_y\sigma_y+a_z\sigma_z. Assume that {1,σx,σy,σz}\{\mathbf{1},\sigma_x,\sigma_y,\sigma_z\} is a basis of M2(C)M_2(\C), orthogonal for the inner product ⟨A,B⟩=tr⁡(A†B)\langle A,B\rangle=\tr(A^\dagger B), with tr⁡(σjσk)=2δjk\tr(\sigma_j\sigma_k)=2\delta_{jk} and tr⁡σj=0\tr\sigma_j=0, and that (a⋅σ)2=∣a∣2 1(\mathbf a\cdot\boldsymbol\sigma)^2=|\mathbf a|^2\,\mathbf{1} for every a∈R3\mathbf a\in\R^3.

Question 1
Show that every matrix A∈M2(C)A\in M_2(\C) has a unique expression A=a01+a⋅σA=a_0\mathbf{1}+\mathbf a\cdot\boldsymbol\sigma, with a0=12tr⁡Aa_0=\frac12\tr A and aj=12tr⁡(σjA)a_j=\frac12\tr(\sigma_jA). Show that AA is Hermitian if and only if a0a_0 and the aja_j are real.

Solution
The expression exists and is unique because {1,σx,σy,σz}\{\mathbf{1},\sigma_x,\sigma_y,\sigma_z\} is a basis. To obtain the coefficients, take the trace of AA multiplied by each basis element: tr⁡A=2a0\tr A=2a_0 because the σj\sigma_j are traceless, and tr⁡(σjA)=a0tr⁡σj+∑kaktr⁡(σjσk)=2aj\tr(\sigma_jA)=a_0\tr\sigma_j+\sum_ka_k\tr(\sigma_j\sigma_k)=2a_j. Since the matrices 1\mathbf{1} and σj\sigma_j are Hermitian, A†=a0∗1+∑jaj∗σjA^\dagger=a_0^*\mathbf{1}+\sum_ja_j^*\sigma_j. By uniqueness of the decomposition, A†=AA^\dagger=A is equivalent to a0∗=a0a_0^*=a_0 and aj∗=aja_j^*=a_j.

Question 2
Decompose the matrix A=(31−i1+i1)A=\begin{pmatrix}3&1-i\\1+i&1\end{pmatrix} in the Pauli basis.

Solution
We have a0=12(3+1)=2a_0=\frac12(3+1)=2. For the other coefficients, it is enough to calculate the diagonal entries of the products. For σz\sigma_z, tr⁡(σzA)=3−1=2\tr(\sigma_zA)=3-1=2, so az=1a_z=1. For σx\sigma_x, tr⁡(σxA)=A21+A12=(1+i)+(1−i)=2\tr(\sigma_xA)=A_{21}+A_{12}=(1+i)+(1-i)=2, so ax=1a_x=1. For σy\sigma_y, the diagonal entries of σyA\sigma_yA are −iA21=−i(1+i)=1−i-iA_{21}=-i(1+i)=1-i and iA12=i(1−i)=1+iiA_{12}=i(1-i)=1+i, hence tr⁡(σyA)=2\tr(\sigma_yA)=2 and ay=1a_y=1. Thus

A=2 1+σx+σy+σz,A=2\,\mathbf{1}+\sigma_x+\sigma_y+\sigma_z,

as may be checked by adding the matrices: the off-diagonal entries are 1−i1-i and 1+i1+i, and the diagonal entries are 2±12\pm1.

Question 3
Show that, for nonzero a∈R3\mathbf a\in\R^3, the eigenvalues of A=a01+a⋅σA=a_0\mathbf{1}+\mathbf a\cdot\boldsymbol\sigma are a0±∣a∣a_0\pm|\mathbf a|, and that the associated spectral projectors are P±=12(1±n⋅σ)P_\pm=\frac12\bigl(\mathbf{1}\pm\mathbf n\cdot\boldsymbol\sigma\bigr), where n=a/∣a∣\mathbf n=\mathbf a/|\mathbf a|. Apply this to the matrix in the previous question.

Solution
Set K=n⋅σK=\mathbf n\cdot\boldsymbol\sigma, which satisfies K2=∣n∣21=1K^2=|\mathbf n|^2\mathbf{1}=\mathbf{1} and tr⁡K=0\tr K=0. Its eigenvalues satisfy λ2=1\lambda^2=1, and their sum is zero: they are +1+1 and −1-1. The operators P±=12(1±K)P_\pm=\frac12(\mathbf{1}\pm K) satisfy P±2=14(1±2K+K2)=P±P_\pm^2=\frac14(\mathbf{1}\pm2K+K^2)=P_\pm, P+P−=14(1−K2)=0P_+P_-=\frac14(\mathbf{1}-K^2)=0, P++P−=1P_++P_-=\mathbf{1}, and they are Hermitian: they are the orthogonal projectors onto the eigenspaces of KK, because KP±=12(K±1)=±P±KP_\pm=\frac12(K\pm\mathbf{1})=\pm P_\pm. Since A=a01+∣a∣KA=a_0\mathbf{1}+|\mathbf a|K, we obtain A=(a0+∣a∣)P++(a0−∣a∣)P−A=(a_0+|\mathbf a|)P_++(a_0-|\mathbf a|)P_-. For the previous matrix, a=(1,1,1)\mathbf a=(1,1,1), ∣a∣=3|\mathbf a|=\sqrt3, and the eigenvalues are 2±32\pm\sqrt3. Their sum is 4=tr⁡A4=\tr A and their product is 4−3=1=det⁡A=3−∣1−i∣24-3=1=\det A=3-|1-i|^2.

Question 4
Show that a matrix P∈M2(C)P\in M_2(\C) is a rank-one orthogonal projector if and only if it can be written P=12(1+n⋅σ)P=\frac12(\mathbf{1}+\mathbf n\cdot\boldsymbol\sigma) with n\mathbf n a real unit vector. How is this related to the representation of qubit states?

Solution
The previous question shows that such a matrix is an orthogonal projector with trace 11, hence with rank 11. Conversely, let PP be a rank-one orthogonal projector. It is Hermitian, so P=a01+a⋅σP=a_0\mathbf{1}+\mathbf a\cdot\boldsymbol\sigma with real coefficients, and its trace is 11, hence a0=12a_0=\frac12. Moreover, P2=a021+2a0 a⋅σ+∣a∣21=(14+∣a∣2)1+a⋅σP^2=a_0^2\mathbf{1}+2a_0\,\mathbf a\cdot\boldsymbol\sigma+|\mathbf a|^2\mathbf{1}=\bigl(\frac14+|\mathbf a|^2\bigr)\mathbf{1}+\mathbf a\cdot\boldsymbol\sigma. The equality P2=PP^2=P requires 14+∣a∣2=12\frac14+|\mathbf a|^2=\frac12, hence ∣a∣=12|\mathbf a|=\frac12, and we set n=2a\mathbf n=2\mathbf a, which is a unit vector.

Every pure state ∣ψ⟩\ket\psi of a qubit defines a rank-one projector ∣ψ⟩⟨ψ∣\ket\psi\bra\psi, which is independent of the global phase of ∣ψ⟩\ket\psi. From the preceding result, ∣ψ⟩⟨ψ∣=12(1+n⋅σ)\ket\psi\bra\psi=\frac12(\mathbf{1}+\mathbf n\cdot\boldsymbol\sigma) for a unique unit vector n\mathbf n. The pure states of a qubit, up to a phase, are therefore in one-to-one correspondence with points on the unit sphere: this is the Bloch sphere, and n\mathbf n is the Bloch vector of the state. We check that ⟨ψ∣σj∣ψ⟩=tr⁡(∣ψ⟩⟨ψ∣σj)=12tr⁡(σj+∑knkσkσj)=nj\bra\psi\sigma_j\ket\psi=\tr(\ket\psi\bra\psi\sigma_j)=\frac12\tr(\sigma_j+\sum_kn_k\sigma_k\sigma_j)=n_j: the components of the Bloch vector are the expectation values of the Pauli matrices.