Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork48.5k
Description
Feature description
I would like to suggest adding functions for the Hamiltonian in both classical mechanics and quantum mechanics
to thephysics
directory.
Proposed functions
Classical Hamiltonian
Computes H = T + V for a particle or system, where T is kinetic energy and V is potential energy.
Example use case: free particle, harmonic oscillator, simple pendulum.Quantum Hamiltonian (1D)
Constructs the Hamiltonian matrix for a particle in a 1D potential using finite difference discretization.
Example use case: solving the time-independent Schrödinger equation.
Benefits
Provides a practical way for learners to understand and simulate physical systems in Python.
Fits the existing educational purpose of thephysics
directory as a collection of algorithmic implementations.