Structs§
- Complex
- Complex number with full arithmetic.
- Schrodinger
Solver1D - 1D Schrodinger equation solver using Crank-Nicolson and split-operator methods.
- Schrodinger
Solver2D - 2D Schrodinger solver using ADI (alternating direction implicit) method.
- Wave
Function1D - 1D wave function on a uniform grid.
Functions§
- dft
- Discrete Fourier Transform.
- energy_
eigenstates - Compute energy eigenstates using the shooting method.
- energy_
eigenvalues - Compute energy eigenvalues using the shooting method for the time-independent Schrodinger equation with the given potential on a uniform grid.
- expectation_
p - Expectation value of momentum:
= -i hbar integral psi* dpsi/dx dx.
- expectation_
x - Expectation value of position:
= integral psi* x psi dx. - idft
- Inverse Discrete Fourier Transform.
- normalize
- Normalize a 1D wave function so that integral |psi|^2 dx = 1.
- probability_
density_ 1d - Probability density |psi|^2 for 1D wave function.
- probability_
density_ 2d - Probability density |psi|^2 for 2D wave function.
- uncertainty_
p - Uncertainty in momentum: sqrt(<p^2> -
^2).
- uncertainty_
x - Uncertainty in position: sqrt(<x^2> -
^2).