This page was generated from notebooks/L10/1_quantum_mechanics.ipynb.
You can directly download the pdf-version of this page using the link below.
download
Quantum Mechanics#
In the last lecture, we have modeled electromagnetic waves not by solving the wave equation, but by taking the solutions of wave equations like a plane wave or a spherical wave. Today we will solve a wave equation, but not for electromagnetic waves, but for matter waves. We will solve the stationary Schrödinger equation with the implicit solution scheme, which we have already applied for the diffusion equation. With the help of that we will tackle the particle in a box, the harmonic oscillator and the periodic potential. All of these problems have also analytical solutions, thus we do not need the numerical solution in principle. But it will give us some practice on how to tackle such problems. As not all of you might be familiar with the physical description of quantum mechanics, we will give a short introduction into this field first.
[1]:
try:
import google.colab
!pip install ipycanvas==0.11
from google.colab import output
output.enable_custom_widget_manager()
IN_COLAB=True
except:
IN_COLAB = False
[2]:
import numpy as np
from scipy.sparse import diags
from scipy.sparse.linalg import eigsh
import matplotlib.pyplot as plt
%matplotlib inline
%config InlineBackend.figure_format = 'retina'
plt.rcParams.update({'font.size': 10,
'lines.linewidth': 1,
'lines.markersize': 5,
'axes.labelsize': 10,
'axes.labelpad':0,
'xtick.labelsize' : 9,
'ytick.labelsize' : 9,
'legend.fontsize' : 8,
'contour.linewidth' : 1,
'xtick.top' : True,
'xtick.direction' : 'in',
'ytick.right' : True,
'ytick.direction' : 'in',
'figure.figsize': (4, 3),
'axes.titlesize':10,
'figure.dpi': 150 })
def get_size(w,h):
return((w/2.54,h/2.54))
Quantum Mechanics in a Nutshell#
Quantum Mechanics assumes that all particles propagate as waves. They are described by a wavefunction
Time dependent Schrödinger equation#
The dynamics of a quantum mechanical wave is described,for example, by the time dependent Schrödinger equation
whis is written here for one dimension only.
The bracket on the right side of the above equation contains the so-called Hamilton operator
Stationary Schrödinger equation#
Our first problems will be stationary problems. We will not ask for the temporal development of the quantum object. We will rather ask, what solutions without time dependence are possible. In general this is much like the question asking what kind of standing waves are possible on a string or in an optical resonator. In quantum mechanics the boundaries, which define the standing waves are formed by the potential energy
We therefore also need the stationary Schrödinger equation, where the left side of the time dependent Schrödinger equation does not depend on time, hence is constant in time. This stationary (time-independent) Schrödinger equation is
The Hamilton operator
Recap: Implicit Solution#
According to our above description, the Hamilton operator
Since we want to apply our implicit solution scheme (Cranck Nicolson), we want to represent both parts as matrices.
Kinetic energy#
We remember that we can write the second derivative of our wavefunction
If we want to evaluate the wavefunction at certain positions
if we just use 6 positions. Please remember, that in the version above, we have imposed already boundary conditions in the first and the last row, which are
Potential energy#
The potential energy values are just values at the diagonal of the matrix
an you may insert the specific potential energy values for your particular problem here.
Our final problem
where I skipped the prefactor