Answered step by step
Verified Expert Solution
Question
1 Approved Answer
III - Solving the Schr dinger equation in 1 D numerically Introduction We will be using the FDM ( Finite Difference Method ) technique to
III Solving the Schrdinger equation in D numerically
Introduction
We will be using the FDM Finite Difference Method technique to discretize the Schrdinger equation since it is by far the easiest approach to work with.
Let us consider the quantum well problem where we need to solve the D eigenvalue Schrdinger equation:
It is not possible to find an analytical solution to this equation if the potential Uz does not take a simple form like a constant potential, linear, r or parabolic
We propose to compute the solution phi could be any eigenvectors on a numerical grid composed of N equidistant points. The continuum solution is reformulated as follows:
where we denote phi iphi zi The discretized space is also known as the computational domain.
D FDM discretization process using a numerical grid. In the discretized space phi z is only known at the nodes z zzzN
The FDM approximation consists of replacing the Laplacian operator second derivative in the differential equation by a discrete one which only depends on the values of the functions at the neighboring nodes. We assume that our numerical grid is uniform and we denote a the grid step ie
a LNzizi zizi
Using a Taylor development at z zi and using the first neighboring nodes, we obtain:
By adding those two expressions, we obtain an approximation for the discretized Laplacian operator second derivative:
The discretized FDM Schrdinger equation looks like then:
which represents a system of N linear equations!
This system can then be formulated into the following system matrix with tma
which looks like an eigenvalue system Axlambda x as seen in linear algebra! A is tridiagonal of size NxN and each eigenvector xn is of size Nx associated with the eigenvalue lambda n
We note the following:
In practice, the boundary conditions phi phi L can be enforced by artificially assuming a very high potential at the boundaries ie UUN Uinfty eV so no electron can go in there
Once constructed, the eigenvalue system matrix can be solved using numerical routines such as eig in Matlab or equivalent eigh in NumpyScipy Python or with the use of more efficient numerical libraries in CC or Fortran such as IntelMKL Here is a Python example on how to easily build a x tridiagonal made up matrix and solve all its eigenvalues and eigenvectors:
import numpy as np
N
diagAnpfullN # constant vector
offdiagAnpfullN # constant vector
AnpdiagoffdiagA npdiagdiagA npdiagoffdiagA # tridiagonal matrix A NxN
eXnplinalg.eighA # return N eigenvalue vector e and the NxN eigenvector matrix X
printe # N eigenvalues
printX: # st eigenvector
The potential U which is assumed to be known at all discretization nodes, can be added to the diagonal term of the matrix. In contrast to an analytical treatment of the problem, U can take any forms! and the eigenvalueeigenvector solutions epsi nphi n will then be obtained numerically. As an example, let us assume U quantum well and plot the solution vectors phi phi and phi all the component vectors are squared using Lnm and N points of discretization, we get:
Questions
Use your preferred programming language to implement this problem I suggest python and solve numerically the eigenvalue problem for the situations described below:
Any plots provided must have your name in the Title,
You must include a copy of your codes at the end of this document.
Using L nm N Uzzero potential and Uinfty eV for boundary conditions
given here in eVbut must be in Joule in the matrix!
a Provide the first calculated eigenvalues in eV side by side with their analytical true value quantum well formula Remark: If they do not look the same numerical approximation errors there is a problem in your code and you still have to work on it before going to the next questions.
b Plot the resulting curves phi n for n in Lon the same graph Remark: results should be similar to the ones provided above.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started