This project demonstrates how to approximate the solutions of the time-independent Schrödinger equation for a quantum particle in a one-dimensional harmonic oscillator potential using neural networks. By leveraging PyTorch, the project employs neural networks to estimate the ground state and excited state wavefunctions without relying on traditional numerical methods.
- Ground State Solution: Approximates the lowest energy state of the harmonic oscillator.
- First and Second Excited States: Extends the model to compute higher energy states while enforcing orthogonality constraints.
- Visualization: Compares neural network solutions with exact analytical solutions through detailed plots.
- Python 3.x
- PyTorch: For building and training neural networks.
- NumPy: For numerical operations.
- Matplotlib: For data visualization.
- Jupyter Notebook: For interactive development and demonstration.
Quantum mechanics fundamentally describes the behavior of particles at microscopic scales. The main equation for the quantum processes is the Schrödinger equation. It is a linear partial differential equation. Fundamentally, it is a time dependent equation since Hamiltonian operator involves a time derivative, and also potential energy functions may be time dependent. However, for time independent potentials we can reduce the equation into a simpler form called Time Independent Schrödinger Equation. This notebook demonstrates how to approximate solutions to the time-independent Schrödinger equation for a quantum particle in a one-dimensional harmonic oscillator potential using neural networks.
The time-independent Schrödinger equation is given by:
where:
For simplicity, we set units such that
We focus on the harmonic oscillator potential:
where we assumed unit angular frequency, i.e.
We represent the wavefunction
The goal is to minimize the energy of the system, which is expectation value of the Hamiltonian:
To find excited states, we enforce orthogonality to all previously found wavefunctions:
-
Ground State: Train the neural network to find the ground state by minimizing the energy.
-
Excited States: Train additional networks for excited states, adding penalties for overlaps with lower states to enforce orthogonality. In general, the next lowest energy state which is orthogonal to ground state must be first excited state in quantum systems. We can extend this property to find nth eigenstate by minimizing energy while enforcing orthogonality to all previous n-1 eigenstates.