Although the bound state energies and wavefunctions of a one-dimensional harmonic oscillator are known from elementary textbooks of quantum mechanics, we use the example of the harmonic oscillator to illustrate the performance of the Fourier grid Hamiltonian algorithm as implemented in WavePacket.
Note the 6-digit precision of the numerically obtained eigenenergies obtained for a grid of only 64 points in [-7,7]. For an analytical representation of harmonic oscillator eigenstates in position, momentum, and phase space, see for example the book of W. P. Schleich.