๐ซ 2D quantum particle
What are you looking at?
Section titled โWhat are you looking at?โThis demo visualizes the stationary eigenstates belonging to the Hamiltonian of a 2D quantum particle:
Where:
- is the wave function of the system.
- is the 2D Laplacian operator.
- is the reduced Planckโs constant, set to in the code.
- is the mass of the particle, set to in the code.
- is the potential energy function, e.g. an isotropic harmonic oscillator potential:
Select different eigenstates to explore how their amplitude and phase form distinct wave-like patterns, including the characteristic lobes and nodes of quantum wavefunctions.
Validation of solver
Section titled โValidation of solverโThe solver implements the so-called Lanczos algorithm featuring full reorthogonalization, matrix-free Hamiltonian application, Ritz vectors, eigenvalue ordering, residual checks and QL-diagonalization.
Isotropic harmonic oscillator
Section titled โIsotropic harmonic oscillatorโFor the isotropic harmonic oscillator, the analytic energies are given by with :
| degeneracy | analytic | calulated | |
|---|---|---|---|
| 0 | 1 | 0.22361 | 0.22354 |
| 1 | 2 | 0.44721 | 0.44701, 0.44701 |
| 2 | 3 | 0.67082 | 0.67043, 0.67043, 0.67049 |
| 3 | 4 | 0.89443 | 0.89391, 0.89391, 0.89433, 0.89433 |
| 4 | 5 | 1.11803 | 1.11733, 1.11780, 1.11780, 1.12074, 1.12074 |
The degeneracies arise because e.g. the second level can be formed in two ways ( and ), the third level in three ways (, , ), etc.
The small differences between the energies of the degenerate shells are a consequence of the discrete numeric representation on a finite lattice. The differences with the analytic values increase with the energy levels, which is expected for a numeric solver like this. However, they are still extremely small, e.g. in the order of 0.06 % for the highest energy levels.
Infinite square well
Section titled โInfinite square wellโThe analytic expression for the energies are now given by:
In the code we configured the constants to be:
hbar = 1m = 1N = 110extent = 0.15 * (N - 1) = 16.35So the fundamental unit of energy is:
This leads to the following result:
| degeneracy | analytic E | Our E | |
|---|---|---|---|
| 2 | 1 | 0.03690 | 0.03692 |
| 5 | 2 | 0.09225 | 0.09228 |
| 8 | 2 | 0.14760 | 0.14764 |
| 10 | 1 | 0.18450 | 0.18450 |
| 13 | 2 | 0.23985 | 0.23986 |
| 17 | 2 | 0.31365 | 0.31349 |
| 18 | 1 | 0.33210 | 0.33207 |
| 20 | 2 | 0.36900 | 0.36885 |
| 25 | 2 | 0.46125 | 0.46107 |
The degeneracies are in accordance with theory:
0.0369177 10.0922788 0.0922788 20.1476400 10.1844963 0.1844963 20.2398575 0.2398575 2...Also note that the InfiniteSquareWell in our code is realised by imposing
a boundary condition on the Hamiltonian.apply():
static withoutParameters = () => /** @type {SingleParticle} */ particle => 0;As such, it is not genuine potential barrier, but a boundary condition on the domain:
for (let y = 1; y < ny - 1; y++) for (let x = 1; x < nx - 1; x++)This is the correct way to represent an infinite square well with Dirichlet boundary conditions and makes this test useful to test both our Lanczos-solver, as well as the implementation of the discrete Laplace-operator + boundary conditions.