๐ช Simple harmonic oscillator
Itโs not terribly difficult to apply a similar approach of the simulation of the infinite square well to the simple harmonic oscillator (SHO). Whatโs the same? There are still energy eigenstates (stationary states) that have definite energy (frequency). You can still form superpositions of these stationary states to produce more general states that โsloshโ in time. These superposition states can be used to model realistic scenarios that might occur in various situations. Whatโs different? Well, the potential energy function is pretty different, rather than a piecewise constant potential like the infinite square well, or the finite square well, the SHO potential is . This results in quantitatively different eigenstate energies and wavefunctions. โ Visualizing Quantum Mechanics with Python
๐ Highly recommended background information: Simulating quantum mechanics with Python
Quantum Harmonic Oscillator
Section titled โQuantum Harmonic Oscillatorโ๐ง Idea taken from the book Visualizing Quantum Mechanics with Python
Theoretical background
Section titled โTheoretical backgroundโFor the quantum harmonic oscillator:
with energy:
it holds that the time evolution is given by:
In the code we assume
- dimensionless x
- โ = 1
- ฯ = 1