/qmsolve

A module for solving and visualizing Schrödinger equation.

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

qmsolve

This is an attempt at making a solid, easy to use solver, capable of solving and visualize the Schrödinger equation for multiple particles, and representing the solutions both in 1D, 2D, and 3D.

This is work in progress. Stay up to date about the next features!

Installation

Just clone or download this repo. The package requirements are:

  1. numpy
  2. matplotlib
  3. scipy
  4. mayavi (only for 3D simulations)

Examples

Just run from the command line the corresponding Python scripts:

python 1D_harmonic_oscillator.py

animation

python 3D_two_gaussian_wells.py

animation

python 3D_four_gaussian_wells.py

animation

python 1D_interactive_fermions_HO.py

animation

python 1D_non_interactive_fermions_HO.py

animation

In the examples from above you can check how in the non interactive case the energy levels are equally spaced and degenerated, however in the interactive case the degeneracy is broken. As a starting point I suggest you to modify the confinement and the interaction potential to see what happens!

Contributors