Feature description
I would like to suggest adding functions for the Hamiltonian in both classical mechanics and quantum mechanics
to the physics 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 the physics directory as a collection of algorithmic implementations.
Feature description
I would like to suggest adding functions for the Hamiltonian in both classical mechanics and quantum mechanics
to the
physicsdirectory.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 the
physicsdirectory as a collection of algorithmic implementations.