Skip to main content

A package for solving Schrödinger and Liouville von Neumann equations.

Project description

Description

Wavepacket is a Python package to simulate small quantum systems. Technically, it allows you to numerically solve Schrödinger and Liouville-von-Neumann equations for distinguishable particles.

The full documentation can be found under https://wavepacket.readthedocs.io. See also the advanced use cases for examples of what can be done.

Wavepacket focuses on a particular niche:

  • Direct solution of Schrödinger / Liouville von Neumann equations. No electronic structure, no MCTDH, no semiclassics, at least for now.

  • Grid-based representation of operators (DVR approximation).

  • Accessibility is an overriding goal. Wavepacket should be directly usable in teaching. We try to provide good tutorials / docs, but also goodies like simple plotting.

  • Exotic use cases should be as frictionless as possible. For example, switching between wave functions and density operators is supported well. Or random thermal wave functions are not much more complex to use than Gaussian states.

  • Performance is a subordinate goal. For specific systems, you can easily improve the performance by integer factors.

Support

There are three different avenues for feedback and support:

Contribution

I currently lack a formal procedure for new contributors, but you are very welcome to contribute to the project. If you do not know what to do, use one of the support channels from the previous section ; there is enough work for multiple developers, also for non-coding skills (there is never enough documentation).

History

The original long-time version of Wavepacket was written in Matlab and is still actively maintained under https://sourceforge.net/p/wavepacket/matlab. It is stable, battle-tested and works.

However, Matlab is expensive, and not all users had (legal) access to it. Also, the project’s architecture did not support some advanced use cases well. Finally, C++11 had just come out and looked cool, so I started a reimplementation in C++ around 2013, adding Python bindings as an afterthought. The C++ project will be superseded by this Python package, but can be found under https://sourceforge.net/p/wavepacket/cpp.

This worked really well, except that deploying C++ code is difficult. In particular, there was no cheap route towards building a “good” Python package, especially under Windows, which restricted accessibility.

The solution is this Python-only version based on numpy. The Python version is slower by a factor of two to three compared to C++-backed code. This is, however, often cancelled by a parallelization of the tensor operations.

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

wavepacket-0.4.1.tar.gz (103.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wavepacket-0.4.1-py3-none-any.whl (56.4 kB view details)

Uploaded Python 3

File details

Details for the file wavepacket-0.4.1.tar.gz.

File metadata

  • Download URL: wavepacket-0.4.1.tar.gz
  • Upload date:
  • Size: 103.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for wavepacket-0.4.1.tar.gz
Algorithm Hash digest
SHA256 88c208d07291de74e16bf8cbbb1209e80c967086e6d7fe73dcc8ebee7c99fc9d
MD5 ef35d3252a17cd50a51b737d1914a4b3
BLAKE2b-256 a6d4ed24d1042d6123924ab0c0588e4a6a50c142b920a35b1935f22e5c5787d6

See more details on using hashes here.

File details

Details for the file wavepacket-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: wavepacket-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 56.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for wavepacket-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 09a2732a5e093e9e0d3f3f3292ff0239e8aead2202943ed145df989344e8b485
MD5 f23508cf4a7607dbc74a3b2fcf07470c
BLAKE2b-256 8edac4780a35fd416aed5b5b87ec88c0afaf6e1f11fd1aeb42c5522031a23029

See more details on using hashes here.

Supported by

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