Skip to main content

Simulation of quantum many-body systems with tensor networks in Python

Project description

TeNPy: Tensor Network Python

GitHub last commit Documentation Build GitHub issues conda PyPi Code Coverage

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


Download files

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

Source Distribution

physics_tenpy-1.0.1.tar.gz (952.6 kB view details)

Uploaded Source

Built Distributions

physics_tenpy-1.0.1-cp312-cp312-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.12 Windows x86-64

physics_tenpy-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

physics_tenpy-1.0.1-cp312-cp312-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

physics_tenpy-1.0.1-cp312-cp312-macosx_10_9_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.12 macOS 10.9+ x86-64

physics_tenpy-1.0.1-cp311-cp311-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.11 Windows x86-64

physics_tenpy-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

physics_tenpy-1.0.1-cp311-cp311-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

physics_tenpy-1.0.1-cp311-cp311-macosx_10_9_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.11 macOS 10.9+ x86-64

physics_tenpy-1.0.1-cp310-cp310-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.10 Windows x86-64

physics_tenpy-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

physics_tenpy-1.0.1-cp310-cp310-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

physics_tenpy-1.0.1-cp310-cp310-macosx_10_9_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.10 macOS 10.9+ x86-64

physics_tenpy-1.0.1-cp39-cp39-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.9 Windows x86-64

physics_tenpy-1.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

physics_tenpy-1.0.1-cp39-cp39-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

physics_tenpy-1.0.1-cp39-cp39-macosx_10_9_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.9 macOS 10.9+ x86-64

physics_tenpy-1.0.1-cp38-cp38-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.8 Windows x86-64

physics_tenpy-1.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

physics_tenpy-1.0.1-cp38-cp38-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

physics_tenpy-1.0.1-cp38-cp38-macosx_10_9_x86_64.whl (1.2 MB view details)

Uploaded CPython 3.8 macOS 10.9+ x86-64

File details

Details for the file physics_tenpy-1.0.1.tar.gz.

File metadata

  • Download URL: physics_tenpy-1.0.1.tar.gz
  • Upload date:
  • Size: 952.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for physics_tenpy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 04dd468ba641e7c2f2bc8530baec980328af0ac9857668f2fefefaadfc1499a4
MD5 913976e6858d084d57c3b5b8d7481ad1
BLAKE2b-256 a6ba3c8791f0550144c08fbbefb58dbbedfc6ecc90c6b7269ba5cb74af6c2a62

See more details on using hashes here.

File details

Details for the file physics_tenpy-1.0.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for physics_tenpy-1.0.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b008340544842c9ec52dafefad30bd53a41b22713a117574412c1cacbddcfcef
MD5 cf1157921d66f0c1c564e799a1ec8246
BLAKE2b-256 c5e49b5423e0839b5652c637e682bfcc070290d4a821f182ec370307eba5ca88

See more details on using hashes here.

File details

Details for the file physics_tenpy-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for physics_tenpy-1.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b880eb7f98a67aea0887ce16a1762ab85dad159d6aa6deefde7642e1a1061ed3
MD5 94fffcf98291ca4ce141cfb955b1f87c
BLAKE2b-256 6dd6e294707232048886673e90a3730b6ec5578537952c1f121516c709158aaf

See more details on using hashes here.

File details

Details for the file physics_tenpy-1.0.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for physics_tenpy-1.0.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d6210db9bc3ea70e2696cf013a2d59e7e8563b2ec300b7222a19c9521e6db8e0
MD5 28c547fc10e281ac2bb567f6a0814bed
BLAKE2b-256 ccb0e55f9df071bf8f8a7efa56d22758364439b02d1095233709974d99085188

See more details on using hashes here.

File details

Details for the file physics_tenpy-1.0.1-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for physics_tenpy-1.0.1-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0560e07368bbf8541e84487fb45ffdad4db39d67d556038944788561bccb74d2
MD5 87dd96751dbc5e1b2c26c0f2a9a8d73d
BLAKE2b-256 e091aecad90ea50ee2a12447a258cf946504fdbf0717ab4e9c2eb4d783da0a81

See more details on using hashes here.

File details

Details for the file physics_tenpy-1.0.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for physics_tenpy-1.0.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9136a29861e7b65e3373ab88d11c0fbee7113b722be2a9c495e823c93f0adc71
MD5 222981a85615caad87e2d8f1a021c429
BLAKE2b-256 8729cb2dbbb9acb46ff0e6337f59789f35235bfe6e53becb6738f908737f4244

See more details on using hashes here.

File details

Details for the file physics_tenpy-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for physics_tenpy-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8abdca0fa394d5c1e85d4ba486ec0ade52d085b9738ece99fc3e24815caddf9c
MD5 9c348afd263e9fc60a949b8a743d414a
BLAKE2b-256 b29e951eaa27f4c169468e59980fb9ffca56e9e17148b621070953374fc0c3a7

See more details on using hashes here.

File details

Details for the file physics_tenpy-1.0.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for physics_tenpy-1.0.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b45339fd86eaeceb73bd8daed9cc6a1366c6e41b782c785530f84ada01f74de2
MD5 8af198a121fa2eb1ff5c6921b91a5840
BLAKE2b-256 d98d7934d2f2bd0a443cecb02ace2484ab5aa656349e1dbcac663d470a7afd3a

See more details on using hashes here.

File details

Details for the file physics_tenpy-1.0.1-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for physics_tenpy-1.0.1-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5ee8e25f78049374c69cd05383612376f829cbbad506ae3c3c3eb67df8280655
MD5 76ac4ce7c873dba45438af6d4fdc96d4
BLAKE2b-256 7fc1f7ef57c869bbfc0fb15650e5080cdaf99977f9797b3a3796de6ce20086b6

See more details on using hashes here.

File details

Details for the file physics_tenpy-1.0.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for physics_tenpy-1.0.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 957d2f95ff920d1767ab3c730e9bc5bfc99a63f41d4b971b0dce068ec40ed757
MD5 e0358131057c32c0938795e6171b2690
BLAKE2b-256 2bbbee2b26c72dbb863b7ca7dd75340ddf747326ae6dcca0a8692e52f78eb5ef

See more details on using hashes here.

File details

Details for the file physics_tenpy-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for physics_tenpy-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2add9b4a8f39ea965e5525aa8417208bd585f377a0f346e74a5cb6989c749739
MD5 01cdca04d78d96c1263c67c0cdcd9756
BLAKE2b-256 276216ff70d646c50625b65efcc1889785768a34fd7d9217f302e5788ba0cc08

See more details on using hashes here.

File details

Details for the file physics_tenpy-1.0.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for physics_tenpy-1.0.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 62e29ea03e9460f5fdf7a550c7e13a93dc6f5aa590e4aa91b4d246de9297fb1b
MD5 542ab7ca245b19909386500a3fa3bc39
BLAKE2b-256 5d22ef85138a2dbd1ede2606120fd88ba671ce47fc0c5230b21a39271148cb48

See more details on using hashes here.

File details

Details for the file physics_tenpy-1.0.1-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for physics_tenpy-1.0.1-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 68896bda2fc8bf80ef066151137fa7da81fa97a2ed0b92c5caf7a5bed3ba4dc4
MD5 c7a92cc3cb2f390edab50cf0b18e934c
BLAKE2b-256 9baa3e4f16ad578ac77373bbf7c3b798ab816769b0155223fe2941897ad25c92

See more details on using hashes here.

File details

Details for the file physics_tenpy-1.0.1-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for physics_tenpy-1.0.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2acf98e1123adfdba310c7bc449fb565094e77cf01942fb7c0a33fd4954badf9
MD5 379c6e89f0fc770d687914d598f79485
BLAKE2b-256 3f8709dfcd33eac3fde2dcba30ca979acbe5aa25b1fa161f2ee33c1ca1f9f26f

See more details on using hashes here.

File details

Details for the file physics_tenpy-1.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for physics_tenpy-1.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 62213308cef8af63109361c2b43e910724e0549b6d3837caebef5799508f58ca
MD5 039fbc26032830bd761dbbf0aab581d7
BLAKE2b-256 cc311274f064c227c37fc2d0e73ab537b45ff22950fe6d23a3692e673a95c566

See more details on using hashes here.

File details

Details for the file physics_tenpy-1.0.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for physics_tenpy-1.0.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 afdb4a7a05ca863acd73bc30d648450c691ddef941a2a1d44711fe889c977b05
MD5 16874a5fc773e7104780b1f9bda57556
BLAKE2b-256 c9e14831e9b8612e21459f0b2a3e3164b43ac9e226fe591d7d0b202115ffbdde

See more details on using hashes here.

File details

Details for the file physics_tenpy-1.0.1-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for physics_tenpy-1.0.1-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b155581ddddb06c3d7d55765c6a514827129cc224bec9d558e5b1016695dca0a
MD5 0bc6f3c0e036b51b5a5572cac54df3af
BLAKE2b-256 440f2ecc0b2068c90a1f2408dfc2843470694ba023555d6221dfb4e8a6a0d653

See more details on using hashes here.

File details

Details for the file physics_tenpy-1.0.1-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for physics_tenpy-1.0.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 521046a1582ee95b423992de1a01aa0cf87b00e2a8f9fcddfea0adb39a03ebe0
MD5 960a71b763947c36666f9735c879df10
BLAKE2b-256 8e358586657b5fd60925da7871b692c146bdd8c043756b6e5975960d8f03570e

See more details on using hashes here.

File details

Details for the file physics_tenpy-1.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for physics_tenpy-1.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2a0eaf143d3d8a6650a2cb5fb2d4b0c566db5e4c37727771b10bca3f3a92fead
MD5 44b93b2272bdb7ba9329c8076eeab34e
BLAKE2b-256 ee758b8d8957b81071886e836f2246903c5422d785ebba2c98fea5ddc96cba7b

See more details on using hashes here.

File details

Details for the file physics_tenpy-1.0.1-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for physics_tenpy-1.0.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 53ed5679b76db8434ec75908426c862aef2658ea5757ddc6d855fc276812590e
MD5 7e6632b875df157cc98b183d58f4b645
BLAKE2b-256 08696b33c283dccf24354e082863e86ea79f167c480355ba9f10cd4baac4ee61

See more details on using hashes here.

File details

Details for the file physics_tenpy-1.0.1-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for physics_tenpy-1.0.1-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 22b2d93620cb9801e142ee4638f12e0aad10ec81f50821a5aedfb6a8080a3a10
MD5 bfa12c67a8c6c1441bc6aad3231bf496
BLAKE2b-256 3e874ad2c4f9031eb8ef46d1b0890dfeffe83c8a94622d991153f5ac1db21bf3

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