Theoretical Background¶
This document provides a comprehensive overview of the mathematical and physical foundations underlying the schr package. It is intended for researchers seeking a deeper understanding of the numerical methods and quantum mechanics principles implemented in the framework.
Quantum Mechanics Foundations¶
Hilbert Space Formalism¶
The state of a quantum system is represented by a vector \(|\psi\rangle\) in a complex Hilbert space \(\mathcal{H}\). For a single particle in one dimension, this is typically the space \(L^2(\mathbb{R})\) of square-integrable functions.
Inner Product:
Normalization Condition:
The quantity \(|\psi(x)|^2\) represents the probability density of finding the particle at position \(x\).
Operators and Observables¶
Physical observables correspond to Hermitian (self-adjoint) operators. Key operators include:
Position Operator:
Momentum Operator:
Hamiltonian (Energy) Operator:
Expectation Values:
The expected value of an observable \(\hat{A}\) in state \(|\psi\rangle\):
Time Evolution¶
Time-Dependent Schrödinger Equation (TDSE)¶
The evolution of quantum states is governed by the TDSE:
In position representation:
Formal Solution:
For time-independent Hamiltonians, the formal solution is:
where \(\hat{U}(t) = e^{-i\hat{H}t/\hbar}\) is the unitary time evolution operator.
Conservation Laws¶
Probability Conservation:
Energy Conservation (time-independent H):
Numerical Methods¶
Split-Step Fourier Method¶
The split-step Fourier method (SSFM) is a pseudo-spectral technique for solving the TDSE. It exploits the fact that kinetic and potential operators are simple in different representations.
Operator Splitting¶
The Hamiltonian is split into kinetic and potential parts:
where
The evolution operator is approximated using the Strang splitting formula:
This is a symmetric splitting, providing second-order accuracy in time.
Implementation¶
Step 1: Half potential step (position space)
Step 2: Kinetic step (momentum space)
Transform to momentum space via FFT:
Apply kinetic evolution:
Transform back to position space:
Step 3: Half potential step (position space)
Advantages¶
Spectral accuracy in space: FFT provides exponential convergence for smooth functions
Explicit method: No matrix inversion required
Unconditionally stable: Preserves unitarity
Efficient: \(O(N\log N)\) complexity per time step
Automatic boundary conditions: Periodic boundaries from FFT
Stability and Accuracy¶
CFL Condition:
For stability, the time step should satisfy:
where \(k_{\max} = \pi/\Delta x\) is the Nyquist wavevector.
Spatial Resolution:
To accurately resolve features with characteristic momentum \(k_0\):
A typical choice is \(\Delta x = \lambda/10\) where \(\lambda = 2\pi/k_0\).
Fourier Transform Conventions¶
The package uses the following Fourier transform conventions:
Forward Transform:
Inverse Transform:
Discrete Fourier Transform (DFT):
For a grid with \(N\) points and spacing \(\Delta x\):
The momentum grid is:
Parseval’s Theorem (Norm Conservation):
This ensures probability conservation in both representations.
Momentum Operator in Fourier Space¶
The momentum operator becomes multiplicative in Fourier space:
Similarly, the kinetic energy operator:
This is the basis for the efficient SSFM implementation.
Runge-Kutta Methods¶
The package also implements fourth-order Runge-Kutta (RK4) integration as an alternative solver.
RK4 Algorithm:
To solve \(\partial_t|\psi\rangle = -i\hat{H}|\psi\rangle/\hbar\):
Advantages: General-purpose, handles non-separable Hamiltonians.
Disadvantages: \(O(N^2)\) for finite-difference derivatives, doesn’t preserve unitarity exactly.
Boundary Conditions¶
Absorbing Boundary Conditions¶
For open quantum systems, absorbing boundaries prevent unphysical reflections at domain edges.
Polynomial Mask Method¶
Multiply the wavefunction by a smooth mask function:
where
Here \(n\) is the order (typically 4-8) and \(w\) is the absorption layer width.
Properties:
Smooth transition minimizes reflections
Higher \(n\) gives sharper absorption
Width \(w\) should be several wavelengths
Complex Absorbing Potential (CAP)¶
Add an imaginary potential in the absorption region:
where \(f(x)\) is a smooth function (e.g., polynomial or exponential) near boundaries.
Effect: Exponentially damps the wavefunction amplitude:
Periodic Boundary Conditions¶
The FFT naturally imposes periodic boundary conditions:
where \(L = N\Delta x\) is the domain length. Useful for:
Plane wave states
Bloch states in periodic potentials
Systems with periodic symmetry
Quantum Electrodynamics¶
Second Quantization¶
Photon Field Quantization¶
The electromagnetic field is quantized in terms of photon creation and annihilation operators:
satisfying the commutation relations:
Number States:
The Fock space is spanned by number states \(|n_1, n_2, \ldots, n_M\rangle\) where \(n_i\) is the number of photons in mode \(i\).
Action of Operators:
Free Field Hamiltonian¶
where \(\omega_i\) is the frequency of mode \(i\).
Light-Matter Interaction¶
Jaynes-Cummings Model¶
The JC model describes a two-level atom coupled to a single cavity mode:
where:
\(\omega_a\) is the atomic transition frequency
\(\omega_c\) is the cavity mode frequency
\(g\) is the coupling strength
\(\hat{\sigma}_z = |e\rangle\langle e| - |g\rangle\langle g|\) is the Pauli z operator
\(\hat{\sigma}_\pm = \dfrac{1}{2}(\hat{\sigma}_x \pm i\hat{\sigma}_y)\) are raising/lowering operators
Rotating Wave Approximation (RWA):
The terms \(\hat{\sigma}_+\hat{a}^\dagger\) and \(\hat{\sigma}_-\hat{a}\) are neglected (counter-rotating terms) when \(g \ll \omega_a, \omega_c\).
Physical Phenomena:
Rabi Oscillations: Periodic energy exchange between atom and field
Vacuum Rabi Splitting: Energy level splitting in strong coupling regime
Collapse and Revival: In multi-photon states, non-classical dynamics
Dipole Interaction¶
For a particle with charge \(q\) interacting with the electromagnetic field:
where \(\hat{\mathbf{E}}\) is the quantized electric field operator.
In the dipole approximation (wavelength \(\gg\) atomic size):
where \(\hat{\mathbf{e}}_i\) is the polarization vector.
Fock Space Truncation¶
In numerical simulations, the infinite-dimensional Fock space is truncated:
Dimension:
For \(M\) modes with maximum \(N_{\max}\) photons each:
Convergence:
Results should be checked for convergence with respect to \(N_{\max}\). Typically \(N_{\max} = 10-50\) is sufficient for weak-to-moderate coupling.
Example Systems¶
Harmonic Oscillator¶
The 1D quantum harmonic oscillator has Hamiltonian:
Energy Eigenvalues:
Eigenfunctions:
where \(H_n\) are Hermite polynomials.
Coherent States:
Displaced Gaussian wavepackets are approximate eigenstates of the annihilation operator:
with \(|\alpha\rangle = e^{-|\alpha|^2/2}\sum_{n=0}^\infty \frac{\alpha^n}{\sqrt{n!}}|n\rangle\).
Tunneling Through a Barrier¶
Rectangular Barrier¶
Potential:
For \(E < V_0\), the transmission coefficient is:
where \(\kappa = \sqrt{2m(V_0 - E)}/\hbar\).
Tunneling Time:
The time for a wavepacket to tunnel through is approximately:
Double-Slit Interference¶
Physical Parameters¶
Slit separation: \(d\)
Slit width: \(w\)
Wavelength: \(\lambda = 2\pi/k\)
Screen distance: \(L\)
Fringe Spacing:
For \(w \ll d \ll L\):
Visibility:
The fringe visibility depends on the coherence length \(\ell_c\):
For Gaussian wavepackets, \(\ell_c \sim \sigma\) (wavepacket width).
Atomic Units¶
Fundamental Constants¶
Constant |
Symbol |
Value (SI) |
|---|---|---|
Bohr radius |
\(a_0\) |
\(5.291772 \times 10^{-11}\) m |
Hartree energy |
\(E_h\) |
\(4.359744 \times 10^{-18}\) J = 27.211 eV |
Atomic time unit |
\(\hbar/E_h\) |
\(2.418884 \times 10^{-17}\) s |
Electron mass |
\(m_e\) |
\(9.109384 \times 10^{-31}\) kg |
Elementary charge |
\(e\) |
\(1.602176 \times 10^{-19}\) C |
Unit Conversions¶
Length:
Energy:
Time:
Electric Field:
Example: Hydrogen Ground State¶
In atomic units:
Energy: \(E_0 = -0.5\,E_h = -13.6\,\text{eV}\)
Bohr radius: \(a_0 = 1\,a_0\)
Wavefunction: \(\psi_{100}(r) = \frac{1}{\sqrt{\pi}}e^{-r}\)
Numerical Considerations¶
Discretization Errors¶
Spatial Discretization:
FFT-based methods have spectral accuracy for smooth functions:
for some \(\alpha > 0\). However, discontinuities cause Gibbs oscillations.
Temporal Discretization:
For the split-step method:
where \(C\) depends on potential derivatives.
Aliasing¶
High-frequency components can alias to low frequencies due to finite grid spacing. To avoid:
Ensure wavepacket has negligible amplitude at \(k > k_{\text{Nyquist}} = \pi/\Delta x\)
Filter high-frequency components if necessary
Use sufficiently fine grid: \(\Delta x < \lambda_{\min}/10\)
Memory and Performance¶
Memory Scaling:
1D: \(O(N)\) complex numbers
2D: \(O(N^2)\) complex numbers
3D: \(O(N^3)\) complex numbers
With complex64 (8 bytes each), a \(1024^3\) 3D grid requires ~8 GB.
Computational Complexity:
Per time step:
FFT: \(O(N^d \log N)\) where \(d\) is dimension
Potential application: \(O(N^d)\)
GPU acceleration provides 10-100× speedup over CPU for large grids.