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

The Hilbert–Schmidt inner product

Keywords: Hilbert--Schmidt inner product · matrix space · trace · orthonormal basis · Pauli matrices · Cauchy--Schwarz inequality

Exercise 1 : The Hilbert–Schmidt inner product

Let denote the set of complex matrices, which is a complex vector space of dimension , and define, for ,

Question 1
Show that , then show that is a Hermitian inner product on . What is the associated norm?

Solution
By definition, , and summing over gives . This is exactly the usual Hermitian inner product on when the entries of a matrix are arranged into a single vector. It is therefore linear in , satisfies Hermitian symmetry , and is positive definite: , with equality if and only if all entries vanish. The associated norm, , is called the Hilbert–Schmidt norm, or Frobenius norm. The space equipped with this inner product is a Hilbert space of dimension .

Question 2
Show that the elementary matrices , whose only nonzero entry is in position , form an orthonormal basis of . What is for a unitary matrix ?

Solution
From the previous question, , since each matrix has a nonzero entry in only one position. These orthonormal matrices form a basis, and the expansion of a matrix in this basis is simply , the formula in Dirac notation. For a unitary matrix, .

Question 3
For , show that the four matrices , , , form an orthonormal basis of . Use the relations , , , and for a cyclic permutation of .

Solution
Since the Pauli matrices are self-adjoint, . For , this gives . For , the product is , whose trace vanishes. Finally, and . The four matrices are therefore orthogonal and have norm ; dividing them by gives four orthonormal matrices in a space of dimension : this is an orthonormal basis.

Question 4
Write the Cauchy–Schwarz inequality for this inner product. Deduce that for every matrix , and state the equality condition.

Solution
The Cauchy–Schwarz inequality reads . Taking and renaming as , we obtain . Equality holds if and only if is proportional to the identity. For example, for a Hermitian matrix with eigenvalues , this inequality reads : the square of the mean of the eigenvalues is less than or equal to the mean of their squares.