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

Properties of the trace

Keywords: trace · cyclicity · change of basis · closure relation · projector · Pauli matrices

Exercise 1 : Properties of the trace

In a finite-dimensional Hilbert space of dimension , the trace of an operator is defined, for an orthonormal basis , by . We denote by the identity operator, which can be written as .

Question 1
Show that for all operators and .

Solution
Denoting the matrix elements by and , we have . Thus

where we have simply interchanged the order of the two finite sums.

Question 2
Show that the trace does not depend on the orthonormal basis chosen.

Hint
Insert the closure relation in the basis twice into the expression for the trace calculated in another basis .

Solution
Let be another orthonormal basis. Inserting the closure relation on both sides of ,

The last sum is , by the closure relation in the basis . This leaves : the trace is the same in both bases. In matrix terms, if is the unitary change-of-basis matrix, this amounts to , by the property established in the preceding question.

Question 3
Show that . Deduce that, for a normalised state , .

Solution
We calculate

Apply this result to , which is the ket-bra formed from and the bra , the adjoint of the ket . We obtain . This expression of the expectation value as a trace will be very useful when we describe mixed states by means of a density operator.

Question 4
Show that the trace of an orthogonal projector is equal to the dimension of its image.

Solution
Let be the orthogonal projector onto a subspace of dimension . Choose an orthonormal basis of , completed to an orthonormal basis of by vectors in . We have for and for . The trace, calculated in this basis, is therefore . Since it does not depend on the basis, this result is general. For example, and the trace of a projector onto a normalised vector is .

Question 5
Is the trace invariant under an arbitrary permutation of the factors in a product of three operators? Calculate and , where the are the Pauli matrices, given that , and .

Solution
Applying the property to and the product gives : the trace is invariant under cyclic permutations of the factors. It is not invariant under an arbitrary permutation. Indeed,

The two results differ, although the two products differ only by the exchange of the first two factors, which is not a cyclic permutation.