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.0.tar.gz (99.6 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.0-py3-none-any.whl (56.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wavepacket-0.4.0.tar.gz
  • Upload date:
  • Size: 99.6 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.0.tar.gz
Algorithm Hash digest
SHA256 9ee19cab6de98e37e49e061daca0ddf57eb9c7044a6d53136fc5bc6fcc7c04c2
MD5 09e66187c8e653e1ba8079d8236f09df
BLAKE2b-256 18fc29f1e31a4a8326435465a645d0d8a69889ebbd3870e47da18ee604819976

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wavepacket-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 56.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31cf150ebed650f9a6ad1eb14add4ff6ffd588670af16638fa7a886f255d5d01
MD5 12091d0abb2fcb63aea0892c79fe94e6
BLAKE2b-256 fcd6c4fd6277f9591bd324550b26a68c3ad4f2ddd06897578d7580330f85aad8

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