Skip to main contentModule schrodinger
Source - Complex
- Complex number with full arithmetic.
- SchrodingerSolver1D
- 1D Schrodinger equation solver using Crank-Nicolson and split-operator methods.
- SchrodingerSolver2D
- 2D Schrodinger solver using ADI (alternating direction implicit) method.
- WaveFunction1D
- 1D wave function on a uniform grid.
- 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:
<p> = -i hbar integral psi* dpsi/dx dx. - expectation_x
- Expectation value of position:
<x> = 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> -
<p>^2). - uncertainty_x
- Uncertainty in position: sqrt(<x^2> -
<x>^2).