Keywords: Hilbert--Schmidt inner product · matrix space · trace · orthonormal basis · Pauli matrices · Cauchy--Schwarz inequality
Exercise 1 : The Hilbert—Schmidt inner product
Let Mn(C) denote the set of complex n×n matrices, which is a complex vector space of dimension n2, and define, for A,B∈Mn(C),
⟨A,B⟩HS=tr(A†B).
Question 1
Show that ⟨A,B⟩HS=∑i,jAij∗Bij, then show that ⟨⋅,⋅⟩HS is a Hermitian inner product on Mn(C). What is the associated norm?
Solution
By definition, (A†B)jj=∑i(A†)jiBij=∑iAij∗Bij, and summing over j gives tr(A†B)=∑i,jAij∗Bij. This is exactly the usual Hermitian inner product on Cn2 when the n2 entries of a matrix are arranged into a single vector. It is therefore linear in B, satisfies Hermitian symmetry ⟨B,A⟩HS=⟨A,B⟩HS∗, and is positive definite: ⟨A,A⟩HS=∑i,j∣Aij∣2≥0, with equality if and only if all entries vanish. The associated norm, ∥A∥HS=∑i,j∣Aij∣2, is called the Hilbert—Schmidt norm, or Frobenius norm. The space Mn(C) equipped with this inner product is a Hilbert space of dimension n2.
Question 2
Show that the elementary matrices Ekl=∣ek⟩⟨el∣, whose only nonzero entry is 1 in position (k,l), form an orthonormal basis of Mn(C). What is ∥U∥HS for a unitary matrix U?
Solution
From the previous question, ⟨Ekl,Ek′l′⟩HS=∑i,j(Ekl)ij(Ek′l′)ij=δkk′δll′, since each matrix has a nonzero entry in only one position. These n2 orthonormal matrices form a basis, and the expansion of a matrix in this basis is simply A=∑k,lAklEkl, the formula A^=∑k,lAkl∣ek⟩⟨el∣ in Dirac notation. For a unitary matrix, ∥U∥HS2=tr(U†U)=tr1=n.
Question 3
For n=2, show that the four matrices 211,21σx,21σy,21σz form an orthonormal basis of M2(C). Use the relations σj†=σj,σj2=1,trσj=0, and σjσk=iσl for (j,k,l) a cyclic permutation of (x,y,z).
Solution
Since the Pauli matrices are self-adjoint, ⟨σj,σk⟩HS=tr(σjσk). For j=k, this gives tr1=2. For j=k, the product σjσk is ±iσl, whose trace vanishes. Finally, ⟨1,σj⟩HS=trσj=0 and ⟨1,1⟩HS=2. The four matrices 1,σx,σy,σz are therefore orthogonal and have norm 2; dividing them by 2 gives four orthonormal matrices in a space of dimension 4: this is an orthonormal basis.
Question 4
Write the Cauchy—Schwarz inequality for this inner product. Deduce that ∣trA∣2≤ntr(A†A) for every matrix A, and state the equality condition.
Solution
The Cauchy—Schwarz inequality reads ∣tr(A†B)∣2≤tr(A†A)tr(B†B). Taking A=1 and renaming B as A, we obtain ∣trA∣2≤tr(1)tr(A†A)=ntr(A†A). Equality holds if and only if A is proportional to the identity. For example, for a Hermitian matrix with eigenvalues λk, this inequality reads (∑kλk)2≤n∑kλk2: the square of the mean of the eigenvalues is less than or equal to the mean of their squares.