Skip to main content

A module for solving and visualizing the Schrödinger equation

Project description

QMsolve: A module for solving and visualizing the Schrödinger equation

QMsolve seeks to provide easy solid and easy to use solver, capable of solving the Schrödinger equation for one and two particles, and creating descriptive and stunning visualizations of its solutions both in 1D, 2D, and 3D.

Installation

pip install qmsolve

How it works

The way this simulator works is by discretizing and Hamiltonian of an arbitrary potential, specified as a function of the particle observables. This is achieved with the Hamiltonianconstructor. Then, the Hamiltonian.solve method efficiently diagonalizes the Hamiltonian and outputs the energies and the eigenstates of the system. Finally, the eigenstates can be plotted with the visualization class.

The visualization.superpositions method features the possibility of interactively visualizing a superposition of the computed eigenstates and studying the time dependence of the resulting wavefunction.

For efficiently solving the time dependent Schrödinger equation, TimeSimulation class must be used. It takes as an argument the Hamiltonian you have previously defined, and the method you desire to use.

For a quick start, take a look to the examples found in the examples subdirectory.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qmsolve-2.0.0.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

qmsolve-2.0.0-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

File details

Details for the file qmsolve-2.0.0.tar.gz.

File metadata

  • Download URL: qmsolve-2.0.0.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.11

File hashes

Hashes for qmsolve-2.0.0.tar.gz
Algorithm Hash digest
SHA256 2dd60cd6b086f7b301141666666d3f3b99c66f76bb35b74cdd84b08ddd6a3423
MD5 126b57e9c76a8b137714a09bfc1dc85e
BLAKE2b-256 d1e6f1a02305d4b34fda9186a2161d6678d508368dd8a7a94bb2ae9618462019

See more details on using hashes here.

File details

Details for the file qmsolve-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: qmsolve-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 35.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.11

File hashes

Hashes for qmsolve-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9e2e0b9532e1935af0d76667d34ba187be66d0c6a2ca4f367a5557728f2cc441
MD5 92939ea1dfc36ccfd5f92a6472eaa12a
BLAKE2b-256 07941eedc7a9a1dba46317925e6424823194659f7d9af1fa89a4b913f3dd373c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page