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). Atomic units to simplify equations.

  • 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, for example).

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.5.tar.gz (120.2 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.5-py3-none-any.whl (64.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wavepacket-0.5.tar.gz
Algorithm Hash digest
SHA256 f01337e3c38e7507d3af723dcc0d7bec0a28df870a1b05c44847c1b44f47f1be
MD5 7563eca8e1b55c95e076b52f33e66fb5
BLAKE2b-256 72739e104421dbc2b1b1a3bed3b5e2104547e594ec00e97918527c6062f9e40c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for wavepacket-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 826c953f1feee9b8ecc827c919b0e8da835846049eac73f7a89574c71bd6c4ef
MD5 8fef050c0fa3a940461d2bfca8a33fee
BLAKE2b-256 99b42bfab1e3dad992fb9ebedb07eddba773f85cd1ff0194706364bb29621f77

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