A detailed description of the methods used for these simulations can be found at "Solving the 2D Schrödinger equation using the Crank-Nicolson method".
This repository contains Python 3 scripts for simulating the passage of a 2D Gaussian wave packet through a double slit. For this, the 2D Schrödinger equation is solved using the Crank-Nicolson numerical method.
To simulate the passage of the 2D Gaussian wavepacket through the double slit, the discretized 2D schrödinger equation is solved at each time step using the Crank-Nicolson numerical method. It is important to note that this method is computationally expensive, but it is more precise and more stable than other low-order time-stepping methods [1]. It calculates the time derivative with a central finite differences approximation [1].
For further information on the Crank-Nicolson method, the mathematical details and the creation of the scripts for the simulations, please remember to check this blog post.
For this problem we consider the 2D time-dependent Schrödinger equation:
which can be expanded as
Here, for simplicity we have considered that
The chosen initial (unnormalized) Gaussian wavepacket has the form
and the double slit is parametrized as the following image shows:
The two main scripts in this repository doubleSlit_HW_CN.py and doubleSlit_FPB_CN.py are used to simulate the system in the case of a double slit with infinite potential barrier walls and finite potential barrier walls respectively. The following two animations show how the results look like:
Hard walls double slit |
Potential barrier walls double slit |
---|
[1]: Landau, R.H., Páez Mejía, M.J. & Bordeianu, C.C., 2015. "Heat Flow via Time Stepping". In: "Computational physics: problem solving with Python", 3rd ed. Weinheim: Wiley-VCH.