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.0.tar.gz (950.7 kB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 Windows x86-64

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

Uploaded CPython 3.12 macOS 11.0+ ARM64

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

Uploaded CPython 3.11 Windows x86-64

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

Uploaded CPython 3.11 macOS 11.0+ ARM64

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

Uploaded CPython 3.10 Windows x86-64

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

Uploaded CPython 3.10 macOS 11.0+ ARM64

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

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.9 macOS 11.0+ ARM64

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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8 macOS 11.0+ ARM64

physics_tenpy-1.0.0-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.0.tar.gz.

File metadata

  • Download URL: physics-tenpy-1.0.0.tar.gz
  • Upload date:
  • Size: 950.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for physics-tenpy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1ba4cd623e4f276bece2f1ceb982e6a3e77af10d01f0f3d7c6e89ae4df99ac26
MD5 6e9deebbf8e3c079760a825c56fe9af1
BLAKE2b-256 536679670f48c872c4942790bade52251738f1684c6c0c28f06032dcea809a74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7e6b3e64617f6eae947a05ed68e52965a12d2a0865c21c046172f2475eafb88f
MD5 e9fdb270c663c33a1ac0b40b2b28a9d3
BLAKE2b-256 32f7f90928469490bafd16b562e70febaae75a2d6b228beb9948d643a7839d16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a2efda7ce52bb4720f0623c76e28e4d982483b204bdc84f5277bc5234c3f2b96
MD5 459ae5a49421909c1583e9b70f6f538f
BLAKE2b-256 cbd8701804c3cc79243300fe529d9fd388a2b498239cf072ab8e6db2cd1e4c5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b25b45a86a5725a3695a96c8924cdaadcc418ddae314ad01f1e11125e183faaf
MD5 6631e1c96bdc4c73ba1d888ebdaa96c5
BLAKE2b-256 5880fc03239e560ea190caa5bd7c92f7355d720e67e2f00362e59d7093d7d9bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ac5b3701b2a55af44e25fe26162cfad81999e7b56ecd8166e96edd6cca8aaff3
MD5 5429983596e2137339e2ab23a6d7dddf
BLAKE2b-256 69f1693d81f4f9982c86b28dabb8f91338488dfeb7128a91b016d287c8e0bbe8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a4a88337b554d60add75fe84dce5e157107d2ecbff05dcfa678925420a934701
MD5 37fe9f76674b4b7782390c54013027aa
BLAKE2b-256 6fd2f7eed0553ca3406788e20447c02dc93ae322148c16d87e5b2eb17d79b956

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8e242859100c69133f5a16ac8f9c14d333a73e8baeedcc0e4d10326a418c6b56
MD5 3ee0db71c7c7ce86290e1bc50f0fa0a3
BLAKE2b-256 17fac0714bdaaa1aaa3e56724bc89bec168a76e75e47601d3edb33d78eca9142

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 745a33f856c7cd82505475afefd0fb862992f089b737a8902f52b89f034265a0
MD5 894a85c8146796b9bfb38669dcbd1657
BLAKE2b-256 6868e5fb355265f1f7871c97cec23f988ff3f875514eb4709d2867ebdf3856a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 065b701a3b45cadaf158508739b9dccd55dcb54b976531dceec121cf8a46f3e1
MD5 e9e99196ec3087fb53fd9120b826b288
BLAKE2b-256 fdc5cd855098aa3b502847641fa3dd3c738cea5fb738b727ec25e71298bbf173

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b02d45db571074e987e3050d4240704bc9038e4e11a009b88fdb12303bb7245a
MD5 38943bbd987ade1c62691727a504ab28
BLAKE2b-256 4bb0f002598357d2df1c86bba456ef90febd59e1e6e6c5181d731ca0849c9a77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 63f712cc101998980767e841436fa6bab866db5969ed4ad0e2bda335f7412aa1
MD5 513492aaececcb887c755f6a276df01a
BLAKE2b-256 67158296145906a3628e9950ab23e40094be6c7c02f17412fc20aa69f0832ea0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4c87a01307ecf549e6f383b720b0080c135057e09b0dcfb955aba306f745702f
MD5 5c3afeac6a699fd43beeec67e5310dae
BLAKE2b-256 f8c26c3c285616c5fe00735a7d262f66a881c4844a92c66de9befb5fd3503a61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 120cb7350314ed0c50a2073c35f05031c87f46dfe6527ede00481a5c2fb2cf77
MD5 03335579734ad8030c90d10aeff19741
BLAKE2b-256 511065836faf6725661b3486662c0d1d0e033bc8d0e498ddf1360acbe83ccb12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2111e3b1e077dbaac0e9c2a7242493911c186d5cfa8a27227b8b289184370086
MD5 ab2f7a6f5023d55140db2f7667429c56
BLAKE2b-256 26f07dd0769df59de7d6737bcf0453c2c08410c614a5c685e28eed159ed54d12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ecbac808b52ed183824a5a5394e6e42075217105b38d740be6fb4b42f21934fd
MD5 11f45f176406448ca2c3332e371d9a4c
BLAKE2b-256 4bdcb19b536be78da2d1bd07b02b915a72470e1752e65f692a412425e6bd03ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 80f48db69707e70c537e3eac8a5d9b42cb8da9c885bdc256fc3bf35f74ce1d99
MD5 fbd0be814f9bb7857faccfd44b0dd8b4
BLAKE2b-256 01be8f7a50b5d122b3ad458aee1096cb18404aa835ac57d19378e334f726b361

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 88ad9e768a610d1435e6a62046cbb223b7671abda37a940f1f697e580283aeb9
MD5 f9398d44967ef7c2bfe78e9ae5b2123b
BLAKE2b-256 e36a0d9dbc5f94714ec991529a7762331821aba3a36f2c50dc0e001dee4dbf48

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cc2a420034e1028a9faecc85a1a0e0a1f3a7354dbe82463f5d859c9780492c3f
MD5 7f4ae5d87feb1ef5c8ff69cabfa39b58
BLAKE2b-256 5292d1630dc1476fad4d23f7373b8176f0e0fa3f8bc30278f0a1475d4f6424df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 44b35aff1033b9f370f20f5c7aa431883f7198bb8b9ca35ef5d11d94b0f48fbc
MD5 f020234f7c620cac66db98d1d1e96086
BLAKE2b-256 6f04091f2f1cd8481a3eb84915ad331cb88e23bcfde402140ac36f573f59e0a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 96166ac5268e09782e49fca65541a1a2c1866b7a49daef9ab686ddf4693bf194
MD5 df9ca125d70b03062f7d85c5af3a4ed5
BLAKE2b-256 ce158de9b410eb87f132ae01db0aa8f8b95b0674347a7fd278269ac66b69abba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for physics_tenpy-1.0.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0b95b3a173684639191484d33892190aec8ca98e51c9b4beb559e58cd8f2284f
MD5 20d35de7b701c934c0857e80189c3464
BLAKE2b-256 99c2920590eee06f1d49cb7513a2760a592961b2b2d995ccd5ecc411cadd6218

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