Simulation of quantum many-body systems with tensor networks in Python
Project description
TeNPy: Tensor Network Python
TeNPy (short for ‘Tensor Network Python’) is a Python library for the simulation of strongly correlated quantum systems with tensor networks.
The philosophy of this library is to get a new balance of a good readability and usability for new-comers, and at the same time powerful algorithms and fast development of new algorithms for experts. For good readability, we include an extensive documentation next to the code, both in Python doc strings and separately as “user guides”, as well as simple example codes and even toy codes, which just demonstrate various algorithms (like TEBD and DMRG) in ~100 lines per file.
How do I get set up?
If you have the conda package manager, you can install the latest released version of TeNPy with:
conda install --channel=conda-forge physics-tenpy
Further details and alternative methods can be found the file doc/INSTALL.rst. The latest version of the source code can be obtained from https://github.com/tenpy/tenpy.
How to read the documentation
The documentation is available online at https://tenpy.readthedocs.io/. The documentation is roughly split in two parts: on one hand the full “reference” containing the documentation of all functions, classes, methods, etc., and on the other hand the “user guide” containing some introductions with additional explanations and examples.
The documentation is based on Python’s docstrings, and some additional *.rst files located in the folder doc/ of the repository. All documentation is formatted as reStructuredText, which means it is quite readable in the source plain text, but can also be converted to other formats. If you like it simple, you can just use interactive python help(), Python IDEs of your choice or jupyter notebooks, or just read the source. Moreover, the documentation gets converted into HTML using Sphinx, and is made available online at https://tenpy.readthedocs.io/. The big advantages of the (online) HTML documentation are a lot of cross-links between different functions, and even a search function. If you prefer yet another format, you can try to build the documentation yourself, as described in doc/contr/build_doc.rst.
Help - I looked at the documentation, but I don’t understand how …?
We have set up a community forum at https://tenpy.johannes-hauschild.de/, where you can post questions and hopefully find answers. Once you got some experience with TeNPy, you might also be able to contribute to the community and answer some questions yourself ;-) We also use this forum for official announcements, for example when we release a new version.
I found a bug
You might want to check the github issues, if someone else already reported the same problem. To report a new bug, just open a new issue on github. If you already know how to fix it, you can just create a pull request :) If you are not sure whether your problem is a bug or a feature, you can also ask for help in the TeNPy forum.
Citing TeNPy
When you use TeNPy for a work published in an academic journal, you can cite this paper to acknowledge the work put into the development of TeNPy. (The license of TeNPy does not force you, however.) For example, you could add the sentence "Calculations were performed using the TeNPy Library (version X.X.X)\cite{tenpy}." in the acknowledgements or in the main text.
The corresponding BibTex Entry would be the following (the \url{...} requires \usepackage{hyperref} in the LaTeX preamble.):
@Article{tenpy, title={{Efficient numerical simulations with Tensor Networks: Tensor Network Python (TeNPy)}}, author={Johannes Hauschild and Frank Pollmann}, journal={SciPost Phys. Lect. Notes}, pages={5}, year={2018}, publisher={SciPost}, doi={10.21468/SciPostPhysLectNotes.5}, url={https://scipost.org/10.21468/SciPostPhysLectNotes.5}, archiveprefix={arXiv}, eprint={1805.00055}, note={Code available from \url{https://github.com/tenpy/tenpy}}, }
To keep us motivated, you can also include your work into the list of papers using TeNPy.
Acknowledgment
This work was funded by the U.S. Department of Energy, Office of Science, Office of Basic Energy Sciences, Materials Sciences and Engineering Division under Contract No. DE-AC02-05- CH11231 through the Scientific Discovery through Advanced Computing (SciDAC) program (KC23DAC Topological and Correlated Matter via Tensor Networks and Quantum Monte Carlo).
License
The code is licensed under GPL-v3.0 given in the file LICENSE of the repository, in the online documentation readable at https://tenpy.readthedocs.io/en/latest/install/license.html.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file physics_tenpy-1.0.2.tar.gz
.
File metadata
- Download URL: physics_tenpy-1.0.2.tar.gz
- Upload date:
- Size: 954.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aac474a6a400e4a6dc91715542a846b6aaae0aa596a42cd173462a6a08b3e20e |
|
MD5 | 55b012b5bffb2709ec085594c9c422c4 |
|
BLAKE2b-256 | 397df2128cedc712cf7bac1df41534b705d3fdf8b1d800814062bdb5511355c9 |
File details
Details for the file physics_tenpy-1.0.2-cp312-cp312-win_amd64.whl
.
File metadata
- Download URL: physics_tenpy-1.0.2-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 924841abd28ed5b59ea09e01c3a0957502063341c5b4e3408d8a1b78b2a66625 |
|
MD5 | 6218e14492c235ee13103a6545206f80 |
|
BLAKE2b-256 | 7cbd4a6ae06689ee54810ccc4351a6fb1f1687894f5de13e238f0b0e56b84a6e |
File details
Details for the file physics_tenpy-1.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: physics_tenpy-1.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.5 MB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4bc59cbd192e5b8a0a181e64a4fd858d5df9abe0bbafc66ebfae4eac6f3622c |
|
MD5 | 068b40da149dbd4d9831d1447aee5082 |
|
BLAKE2b-256 | fe4e44e20ef31680a5e5a7a870fb08cf92b4c904d59500736b2dba740bc5260e |
File details
Details for the file physics_tenpy-1.0.2-cp312-cp312-macosx_11_0_arm64.whl
.
File metadata
- Download URL: physics_tenpy-1.0.2-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 035c9b4b1187834ba6e257ac97d8738eab8f43f2b1c056e004e37356fb821cd4 |
|
MD5 | 309fde18a9d964bcfdbec408c0e5ac28 |
|
BLAKE2b-256 | dc99edfe0a6dab801dd25a83e85b31d5c083a245376e57b6ab7eeedf534c7408 |
File details
Details for the file physics_tenpy-1.0.2-cp312-cp312-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: physics_tenpy-1.0.2-cp312-cp312-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.12, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70bda911784613016a4c4ca7f7e3664640269fb054e056a44f845f025e745077 |
|
MD5 | dae190d847a81e95fa76c94c1ab5073f |
|
BLAKE2b-256 | cb6d68aeda902f783001a9732c7527e5258de5e36a88056d8148e3601fdb7898 |
File details
Details for the file physics_tenpy-1.0.2-cp311-cp311-win_amd64.whl
.
File metadata
- Download URL: physics_tenpy-1.0.2-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c26be092347e54bc0f6801306f4332abf08a42fabe9e411b7cb583e699f9fa8 |
|
MD5 | 1f21014e834e64ef9365aa1183d3bce5 |
|
BLAKE2b-256 | 9612bfd904923ca88722b9421bbc02fd1e1dbd37eb3eb920474c0355c7e6e88a |
File details
Details for the file physics_tenpy-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: physics_tenpy-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.6 MB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c126fb59f56257f97f4c051b3b227084cb1ad081dd0d2a5f504cafddf2bb4bdc |
|
MD5 | 4ea415aca18a0124f1486a306a7302cc |
|
BLAKE2b-256 | a19a5531a3b7b326835790ac3674a45008adf417bf99483c69d7a06859fc7549 |
File details
Details for the file physics_tenpy-1.0.2-cp311-cp311-macosx_11_0_arm64.whl
.
File metadata
- Download URL: physics_tenpy-1.0.2-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f6bfd0c890bde72af195ed7345aee3ae13633703cf0745674b574541c55994a |
|
MD5 | 39ca0b5f1f0b5e7cc03cc794bb510e36 |
|
BLAKE2b-256 | 40ea9f564a4904a21225f5de51fdec6d825bcb37d4f61294a4036c2dcf00a1d8 |
File details
Details for the file physics_tenpy-1.0.2-cp311-cp311-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: physics_tenpy-1.0.2-cp311-cp311-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.11, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc5f5a9657b0b39f08327636b7a6dd124a31341422961cc29aafee5ace6a20ec |
|
MD5 | 3fa63ab3ff280380353f8d0cba58e219 |
|
BLAKE2b-256 | 08d49507f9480f874a947dad5202b6cfc04f1e8873f71eca0a73af5b47ffa668 |
File details
Details for the file physics_tenpy-1.0.2-cp310-cp310-win_amd64.whl
.
File metadata
- Download URL: physics_tenpy-1.0.2-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e9a152815139ed4b365519bc04513290aa42495e9005a6e37cec4bce00bc5bc |
|
MD5 | f38cf5f7a94397b0c428db586a2363f4 |
|
BLAKE2b-256 | 30991b0424209b564936e6220e002d33e2d2c672e0dddb73d4923baa6d6d3172 |
File details
Details for the file physics_tenpy-1.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: physics_tenpy-1.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.5 MB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e892a0aa339452e6350423362d996400d1d1700abc38bc2ca5ad310b204d3fb |
|
MD5 | 9e8cf2b95547325614af33455d0f1cf1 |
|
BLAKE2b-256 | 900934c98b2334d82a09c434a4a37a0328375abab7483a3a6c70fc3554e6ffb7 |
File details
Details for the file physics_tenpy-1.0.2-cp310-cp310-macosx_11_0_arm64.whl
.
File metadata
- Download URL: physics_tenpy-1.0.2-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b6f228628f0bc972c141aca8b3bc7f875459d6ff36a2ae37651ffb25e732a19 |
|
MD5 | d43540d6f1e3b04166c3b4327740eb2d |
|
BLAKE2b-256 | a7baf1449ad00f8e9e6c29f350428a4bc278cb77b5343a6c9d8c816ff8c62aac |
File details
Details for the file physics_tenpy-1.0.2-cp310-cp310-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: physics_tenpy-1.0.2-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e98939bf5596c75e209ea9f287b3d3cb73581ec1561767613d159e3e8e7e47b |
|
MD5 | fbff8a885f60ff70bd2d1e0426868fad |
|
BLAKE2b-256 | c8d241e1065afce1e20069b9a51b137c9760911a009ac8b2acb4241ba1c4b31b |
File details
Details for the file physics_tenpy-1.0.2-cp39-cp39-win_amd64.whl
.
File metadata
- Download URL: physics_tenpy-1.0.2-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07ae9c82ceb6c5b36ca163964fd41cee491ec39a25c63dffc7b211f9c0609515 |
|
MD5 | 806b097d529179e172139dbd3f882e17 |
|
BLAKE2b-256 | e2c9571a4a14d917b434af70510496c0b9e13c53ecdb320a5d97a4de94bd1cd1 |
File details
Details for the file physics_tenpy-1.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: physics_tenpy-1.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.5 MB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4783e75df5670918391707b3db6350c70bf0f2c8933d837fed69333010ae20cf |
|
MD5 | eb374a5bbca26d28d1f69051996f0808 |
|
BLAKE2b-256 | fd744dc3804e3693d1477af4fd8f62a4cb124b32684a70e5be85588c830e7002 |
File details
Details for the file physics_tenpy-1.0.2-cp39-cp39-macosx_11_0_arm64.whl
.
File metadata
- Download URL: physics_tenpy-1.0.2-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84dd1972e8fbcb4f0ee331a84d61d492e30166f5bdecf3fd6928af20d63e1ce8 |
|
MD5 | bc2d68e32e5f6292c56593dc79d215ba |
|
BLAKE2b-256 | 34d9dc9a0e7b36bb0b30806c8e453dbe9d299496f9c88a404aac647da2291f68 |
File details
Details for the file physics_tenpy-1.0.2-cp39-cp39-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: physics_tenpy-1.0.2-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4d7671941440ed62c40cec90d2a3274f136ce34a83aafc0c12798ef5cae1e1e |
|
MD5 | f343537eb43925826774f4583aaa8fb6 |
|
BLAKE2b-256 | 703c988a7729ff753d8ed48839b190669e782ad222a6a8986fb9c1178b0ffcf3 |
File details
Details for the file physics_tenpy-1.0.2-cp38-cp38-win_amd64.whl
.
File metadata
- Download URL: physics_tenpy-1.0.2-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ffee1095b98976cc24731876d3bb88c47da360d7ea87b582e516648c674032c |
|
MD5 | 9b08687be2d54fb6e6ce33b09f5484ca |
|
BLAKE2b-256 | 5100864f317a21e3e77291469f2640ba3a7676178c6c408f5290ca1f7ac6918b |
File details
Details for the file physics_tenpy-1.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: physics_tenpy-1.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 2.5 MB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8468f6c2ce539dfc742243507bdd68e689ccdecf4c06e03b375b0eaf7ecde096 |
|
MD5 | d5dfecd2514e55daa8b7325993c89bde |
|
BLAKE2b-256 | ae0bc3cdab1e44c51df801ec5cd30bac0efffe6dc04f568e708f7777bf6494f5 |
File details
Details for the file physics_tenpy-1.0.2-cp38-cp38-macosx_11_0_arm64.whl
.
File metadata
- Download URL: physics_tenpy-1.0.2-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 1.1 MB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63eff43e2fc91ced909897beb7138f3dae4b1ce36c5deb70a6f60d4496672cd4 |
|
MD5 | 3c346977ab407fb3775d9f214b0e3089 |
|
BLAKE2b-256 | b9cb5deb915ca6d7a3bf35752ac0fb6da3d1d613234f1690bce0957d749c0685 |
File details
Details for the file physics_tenpy-1.0.2-cp38-cp38-macosx_10_9_x86_64.whl
.
File metadata
- Download URL: physics_tenpy-1.0.2-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 1.2 MB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb37ae6ac4e1e2ec7113ae8e63b54f49a2764a5bc96a435e6e031e04b41e2458 |
|
MD5 | 0e0d83a928ee9f4e5d261b44719ff6b6 |
|
BLAKE2b-256 | 41863c6f75c7c0bc649c377f69ca97ecb24dbb686ce42ba787d391ab2ce26826 |