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

Truncation of the harmonic oscillator

Keywords: harmonic oscillator · truncation · Heisenberg algebra · commutator · finite dimension

Exercise 1 : Truncation of the harmonic oscillator

Question 1
We use the notation from the exercise on the creation and annihilation operators. Let denote the -dimensional subspace spanned by . We define the truncated operators and as the restrictions of and to , with the convention and .
Question 2
Write the matrices of and in the basis for .

Solution
Using and (with vanishing action at the boundaries):

Question 3
Verify that in the Hilbert-space sense on .

Solution
By the result of the exercise on adjoints and projectors, . The two matrices obtained in the previous question are conjugate transposes of one another (their entries are real), so .

Question 4
Compute and show that this commutator is no longer equal to . Interpret the result.

Solution
We compute:

A direct matrix calculation gives:

and hence:

The canonical commutation relation is violated at the final basis state: the truncation breaks the Heisenberg algebra, because while the space is “too small” to accommodate .