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

Sinc TeNPy version 1.0.4, the code is licensed under Apache v2 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.4.tar.gz (959.9 kB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 Windows x86-64

physics_tenpy-1.0.4-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.4-cp312-cp312-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.12 macOS 11.0+ ARM64

physics_tenpy-1.0.4-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.4-cp311-cp311-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.11 Windows x86-64

physics_tenpy-1.0.4-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.4-cp311-cp311-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.11 macOS 11.0+ ARM64

physics_tenpy-1.0.4-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.4-cp310-cp310-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.10 Windows x86-64

physics_tenpy-1.0.4-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.4-cp310-cp310-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.10 macOS 11.0+ ARM64

physics_tenpy-1.0.4-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.4-cp39-cp39-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.9 Windows x86-64

physics_tenpy-1.0.4-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.4-cp39-cp39-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.9 macOS 11.0+ ARM64

physics_tenpy-1.0.4-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.4-cp38-cp38-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.8 Windows x86-64

physics_tenpy-1.0.4-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.4-cp38-cp38-macosx_11_0_arm64.whl (1.1 MB view details)

Uploaded CPython 3.8 macOS 11.0+ ARM64

physics_tenpy-1.0.4-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.4.tar.gz.

File metadata

  • Download URL: physics_tenpy-1.0.4.tar.gz
  • Upload date:
  • Size: 959.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for physics_tenpy-1.0.4.tar.gz
Algorithm Hash digest
SHA256 078c2fb5f466370d49761af7d6b887ae633255ce09d1b3f9fd51497584214fac
MD5 cd7ed7793bbf2bf760fca9abbbde3078
BLAKE2b-256 914c928a76cdab77cd65cfeb56388f6c4d23f802ea424df87a4b01566a0a6086

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 81bdb17da0c48de4138d5f833be154275c655e2c801eda5814be2a932c709d59
MD5 2131fafb776134e06e82d3c28b5b2c65
BLAKE2b-256 c5c818aee607aa8f2e6f31f3efe31ec8717a173a70f27fd57233d4f39d1d65cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b615016300ab98d6d1085720e73a033065fc644ba4e8aea345329707b70c5480
MD5 304e3c374ac186551fed96f848d2de3c
BLAKE2b-256 09ec7369b772e0507b04046163016ab5f61c95066ba9bbbea69311b695a68809

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6e3caccf84eb9d7fcb0311240cbeab91333e4cf86116de7399831170834a3f36
MD5 55ae6b9255bf7e27a4078133a7d24771
BLAKE2b-256 3aec6a674b7413e2600637b217d942f74340d2fb792b542e1c1272be9c4ec16c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.4-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b3b6291083611f886c7bba43b1172d08f0105f45f87650b19142bd5ecc829765
MD5 83d95b636d311408d694179f6af85687
BLAKE2b-256 f9a1b1b18871537dada4a9e7320bda394545deb3b1cf9dffed0dd65578c8eb0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 16bb9187893808928c98bad257bd0d9f3c795422957303333ea6622599dab6d3
MD5 907d9bc905408871f45d493e5d0218e7
BLAKE2b-256 716c0957ae2f46d75e978c91951aa66d131ed073ab25c9559a0dfc7943490ad8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0b75b05a1d53b8376895da95c1582abcdd4193686ef1f474052d3aac5b01e8a2
MD5 6ac28626d21043fd05a89d4f129e3e30
BLAKE2b-256 65d752c6e77ffd3131a7937d7d90dcb779366cec2d5fc4dc79e58d5da403f55b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a08278fa2b019b3ced6eedffd7b16d15020a7cd11c6ef7a3a3d89da8c3fa2067
MD5 d29969c75cba96e76a83623d6b8c21c6
BLAKE2b-256 799363028ddafb059560d067bfdbb589fcf0d5e0238b44163fda812773fbc895

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.4-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 488c566493723ec0aaa08ed09906ccfe365b61854eac446d4d9a893d16f510a4
MD5 9df9aed6eac865e8c8b8ec8bbd6e89e3
BLAKE2b-256 96ad307da1f0f8910d9f94747d7e941626283079c38b1062a160ec8d3911074f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 52c5c3d42aba97f14db5fc6f77321447b0b95b59de42833417457b05b41db3cc
MD5 63e571ba68b91b83cfac3983afd44107
BLAKE2b-256 c95d7cd60a69a030f076e7f501dca69882aa88c41babf8ace4c3876f37bb390c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1a60c5394069eacd965e2f1a33ba52002c82bfed9dca36a0d3ae2b1ac20c57de
MD5 6eb3a16acbad57ae1d2092657ad08e7e
BLAKE2b-256 06886c37d18f1f1a9e99a279491d7129ac4cc754cdfe60792a9e4da90c4c344a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 76293037b9664951ff87d0b5bbb2abba1a11161058cc9ef605bc6d222007fa5a
MD5 57ab89c2667395ff58893aa1bd0dba19
BLAKE2b-256 4dcbc790f229245d542a4f98e77d3f1784ac58d8fde39295abca5071e4103163

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.4-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 6928101142f15fd882b46324262a3e2a619981a3bd14cbb57237a9f0a107ac35
MD5 bd128e5df44f675c07e745b414ec7476
BLAKE2b-256 8818010cf2df382e53b36e56faf0109a113b8efaa1e0a16a754c8c51a689f2f7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.4-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3e6eca1e6bb459b504c936dd97f351d23a721ee097c5a66c51dff27926ae93b0
MD5 8ca3d58730fe35fb621cf0736b5debf0
BLAKE2b-256 eb49b55984ff372f966cb7abf0160cf943a0d85674ceacaab05d197a1bd8eb8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5a5a3d77445ef54e75a7f4e26f51fa9f2d4a49d374b2062cd886145c983a2b00
MD5 6d03c0dbc6a2d496526528cae68ba1b9
BLAKE2b-256 707ce7768567583609e667ff7d00cc02986625903432d55c67fc7095710cd27e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fbfdb91c714b5292fc3334eb4840129b36849f72c14fece7b312115c5de4658e
MD5 f7e06f81d0feb8c268df29016824e0f7
BLAKE2b-256 81cc3ffd91f6d2196a8c52551c484b679b436e79a8a1bb82fc08ace9eb5fc43a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.4-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b0ae14bdd2b276c33f3ff2395a9f4dc3c0cf94d328c07a8e5d7d4779d2309f47
MD5 35af3a70590b4c9447d3af5047df20d8
BLAKE2b-256 4a5821748ae7f4c8d4c066aaa8f9b3e44d625b47bffd96733dddd99167c780ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.4-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0667082d748a8ad11828c2c3bed485c31136f8a76dbf74e22a8f0fabc23f87db
MD5 fd81523a8eeabc7f5052a714a0b45ce5
BLAKE2b-256 ffd757d157363e54bd648e73f9a072e6bd09f809c766c7237ce035fed35eb6f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 13beea6799b57a471d0f9b04b9b3fc516cc36da502b34603a4939e97e7cc1f0a
MD5 a49d5253a166920283eab6a241f2a4f6
BLAKE2b-256 4710e06ac37664b74d7893b2b17918e5d78f7ae00df2974d57b92602619fb62e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.4-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fc6b406f830aa1363cc518ddb8f156369e6e81f5219f7f167427f0a0f06fb5d7
MD5 640d47345a21189883532a4a16f67662
BLAKE2b-256 296ce26b6a95b9ac0c6770df0e28238c7bf127abcc84c0632589afa282aa4ba0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.4-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4952e97df1b7ee51a0c852b2e8d7920b36ed64b0477ca4338a4dc8618f218c4d
MD5 2f0051ea0acadff2f865473e32afe925
BLAKE2b-256 d931479a16131c03c996a24095a4b047fa4be222a72b4b6b0d799260e92234cf

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