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

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 formated 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 intective 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 annoucements, 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-0.11.0.tar.gz (894.5 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.12macOS 11.0+ ARM64

physics_tenpy-0.11.0-cp312-cp312-macosx_10_9_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

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

Uploaded CPython 3.11Windows x86-64

physics_tenpy-0.11.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.11macOS 11.0+ ARM64

physics_tenpy-0.11.0-cp311-cp311-macosx_10_9_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

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

Uploaded CPython 3.10Windows x86-64

physics_tenpy-0.11.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.10macOS 11.0+ ARM64

physics_tenpy-0.11.0-cp310-cp310-macosx_10_9_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

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

Uploaded CPython 3.9Windows x86-64

physics_tenpy-0.11.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.9macOS 11.0+ ARM64

physics_tenpy-0.11.0-cp39-cp39-macosx_10_9_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

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

Uploaded CPython 3.8macOS 11.0+ ARM64

physics_tenpy-0.11.0-cp38-cp38-macosx_10_9_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

physics_tenpy-0.11.0-cp37-cp37m-win_amd64.whl (1.1 MB view details)

Uploaded CPython 3.7mWindows x86-64

physics_tenpy-0.11.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

physics_tenpy-0.11.0-cp37-cp37m-macosx_10_9_x86_64.whl (1.1 MB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

Details for the file physics-tenpy-0.11.0.tar.gz.

File metadata

  • Download URL: physics-tenpy-0.11.0.tar.gz
  • Upload date:
  • Size: 894.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for physics-tenpy-0.11.0.tar.gz
Algorithm Hash digest
SHA256 23ad4603b2b562234c90fba100656cfe785b59d62821755f29a7b851062c80d8
MD5 73c6c9718f8f1fa8d18eb0dfd0396bd8
BLAKE2b-256 19711f2a76075aa08ab475f360c63c13fff74c7acfe10903d3258dea19c9439d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-0.11.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9a17bda11ff02801035832e09d6c5cc8fa70fd7937b38a03d2499d75c2f67c03
MD5 8b9fa13d3faa03322a81e388dcd261bd
BLAKE2b-256 1902534ef3874d7734b3b610e417a32025c5fe3527795c14998ccfec71ef565b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-0.11.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4de14a52958c14705b3b231a4da293072b0bb271f6c61ce178152a75551ca642
MD5 392a6a845f673832c27b4b65e8917675
BLAKE2b-256 dc16c2164df487bda18bd5329fe86a57029e34806531cb821e86085a4b2188ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-0.11.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5b884ba58f593d2392588d68abf692cfd4715e5adf20d7eb13343718d1ea8817
MD5 cb4774cb6fb73fb3819a4cbf1a5f6a55
BLAKE2b-256 13620b7bc618ec2152638d6232c486c4d0bf119818275f7a344d3f6921f6aba9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-0.11.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 032fa1e2ec7094e4cffff3b25e69d4bdc94636f464db25cdd2cf42c3c31f21ae
MD5 e15860d351dfc0fdaa7401511524787d
BLAKE2b-256 a16ed4955224fa5c845e2dc3e61c2a16651cb296df575d9af748f2b1befc01b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-0.11.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 372faa0105585f0311329731231df1bf48219ceb59f2afdeb2ce5eea8c5801fa
MD5 10325611d3c85f8d57c93301f34165b1
BLAKE2b-256 7149186a027750aaa3422b03d18c2235ba99f1f156cf9f1cbdd36e59fe5b8cc8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-0.11.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3ac7da3f4da2ca01fd8087723de0313487e2910c5aa02fa90e918882460aad35
MD5 f7c6860c2dc8e89426857fabe2f14918
BLAKE2b-256 6f463f4ca452e37878137148d1433a9bdd550d45fad8cafa5d03c15c7e6a32c1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-0.11.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9faf9b9b1f9cd16a63ba61fd5ec71352137b702afd5f7c467e8d946704c4cafd
MD5 a2d16bd5bea5eefed7d95570281b11e0
BLAKE2b-256 f275b6b4f37ced5788adc4c3e6cdeed086fd483ea4c7caae20c0616c2cc91c7a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-0.11.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e416963338836c62d964d1812a2e986b45a6d6e3a038e794a6adbde042c16c2e
MD5 0bda733d5196067f809c4e285ab536de
BLAKE2b-256 a7715bcbc2f42d847730c7fc1c0f747e7ff8209d8c39f5317cf13f68f6d66fb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-0.11.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 706913be308cdbf67bbeb8061a5dc32e5775a3f4f8e0845bcf7dc356f2946275
MD5 4b60687da10e4858431091917319487c
BLAKE2b-256 f37a686f0c115d961dd0465a477fb25c791776c8d01ee45479b8270ebe384284

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-0.11.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 eef92f5e6b1c6ce5f057eeadf3650f8430c9a9210653c19baecaa46769a6a2c2
MD5 040e44ce03f8fb7e5b47749f25e6162d
BLAKE2b-256 f6cc2f18cb88561915b271964dff9eafe18d5fcf122480952acb8e59508f77b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-0.11.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 649928b96ed0576993dc88228368a0690b7443f435bf07ad74d7496cd5038d27
MD5 94686714f0df0f2362678994889f8ed0
BLAKE2b-256 42fbe6b8e2bbea4cce227ce4f9f964643111977d0cbb5b04342a917b89100eca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-0.11.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e721a00bab0f49749199662676ad91884cf43cfc37059d43e62003535eccb149
MD5 58cb232495c8fbef232fc4e0be5b67ca
BLAKE2b-256 823af00c7390e7538d9e24a8993442f12316346c7f8cef7d6b70bf708cd42d27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-0.11.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 57ba4308f6d8a247b9d3ad326e595fbfcfd0df82d458bb8aa3c58cf480ea37a3
MD5 0905ac124b4954190f83df70cce571db
BLAKE2b-256 a059fcb644ae7ad2ecfee0d9bb900018fb4cf955591692b4a88cae5bc8df1ad8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-0.11.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4ded8a3b4132af1fc8c232cf93cf3514f691707e34b10e72cdd661467479d220
MD5 87a53e6bc8da29705c97f56dd7739e6b
BLAKE2b-256 a9f3189316da219ed7dba6957796ded42fe5c99909dd16d181d31dba6a0b8b66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-0.11.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b5cd8843e0e83c7ce94cee5cf66acc4337ad84c93f1d5493bbd232c5e762c3b5
MD5 d549e581fa107d04bb4590aa2a17c2ff
BLAKE2b-256 24495212acd825b3f34f16a95222a45e566112fa1f29b949a66d67e4fd74cf35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-0.11.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 28ec1614cb9eb8f30fabb5d2f3180da1c5dbae94e2e1120a921b57fd843188d8
MD5 74ea4e4167c2f82b3abfbafaef32fb9b
BLAKE2b-256 f0b941c83f3b5e6eb4adf1d006e807f21c29b778db66c25d2548735e01fb6a59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-0.11.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 fd8d35b115b61f74829ead97bf479f6c30d293257680132cc658fcd335ca6214
MD5 b3ddc9e3a1e34c24292e23630271b727
BLAKE2b-256 65be0294a623a004e2d70c9ca169feabfdc44825219f137758c1acacc737fe8f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-0.11.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3cce09ea30ee86cb89c722acda9aed26f3fb585b141628f2ec5bac3dcd08d0d2
MD5 b0f9822de0d46feba1301e4cae5852e6
BLAKE2b-256 828bed50b735adc12dceb4264cf6e71d15bacbb3a40c42549956b2c87fe04d50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-0.11.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a4be1c9b775ff2b75b3bb10f7b4fa6cf34ace7549e9e9bee373f56067d78f2c
MD5 c8139da07ad08ead87550bce3eb2b1ea
BLAKE2b-256 f2f96961e3724a29fc63aa78e1366fde72a6041875336bd7b28a7da045df0120

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-0.11.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d120ffea95c18bf383f0a885889b04d6fb32b847e658f411b12341929f877139
MD5 fa0800903f21f9c056e50367674996c7
BLAKE2b-256 12a6ac2f6facda6080120271a9926dd63d1e83a6ad2ca224e7537b06a30a34b6

See more details on using hashes here.

File details

Details for the file physics_tenpy-0.11.0-cp37-cp37m-win_amd64.whl.

File metadata

File hashes

Hashes for physics_tenpy-0.11.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 b561f1027aefb1d60421996d62e2058ab61540ce6fa4ecb2c7b902089b6a3d82
MD5 e9003ae7d58f12295ddb22fff2a2fe0c
BLAKE2b-256 5de117338c97513f54dbcadc8b6e00b556365ce1d797b7332d82207f7cae4704

See more details on using hashes here.

File details

Details for the file physics_tenpy-0.11.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for physics_tenpy-0.11.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 461752c3f05b4b88909da993b44af1af3ab086d80b7c3600421174062a0d998d
MD5 d19ffaf9b7af536e5498da166839b0dc
BLAKE2b-256 ab2ced08c04662a8da59b84d0ab5fe55d2af90444335526dc11defe872f652ed

See more details on using hashes here.

File details

Details for the file physics_tenpy-0.11.0-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for physics_tenpy-0.11.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 7a403c1cb8f45c094b5cd78b306ad6fa867cf60a0438fff4f5c87362001879f6
MD5 234d06b64e47349e9d94532470cfa2d8
BLAKE2b-256 c8a176fcd851203cd94ee8d780e242d40c22e482440dfc22be49f3f1c4010964

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