Home > Python > TISE Solution

Ch. 18.4 Harmonic Oscillator

Chapters Index
Program 1

Harmonic Oscillator

Python 3.11 Ready

                                
Click "Run Code" to execute script and render figures.

Mathematical Problem Formulation

Given a one-dimensional quantum harmonic oscillator described by the potential:

\[ V(x) = \frac{1}{2} k x^2 \]

Solve the time-independent Schrödinger equation:

\[ -\frac{\hbar^2}{2m} \frac{d^2 \psi(x)}{dx^2} + V(x) \psi(x) = E \psi(x) \]

with the boundary conditions:

\[ \psi(-L) = 0 \quad \text{and} \quad \psi(L) = 0 \]

Solve 1-dimensional time-independent Schroedinger Equation (TISE) for Quantum Harmonic Oscillator (QHO) using shooting and odeint method to find energy eigenvalues and corresponding wavefunctions

Program 2

Harmonic Oscillator

Python 3.11 Ready

                                
Click "Run Code" to execute script and render figures.

Mathematical Problem Formulation

Solve 1-dimensional time-independent Schroedinger Equation (TISE) for Quantum Harmonic Oscillator (QHO) using shooting and Numerov method

Theoretical Background & Explanation