Simulation of quantum many-body systems with tensor networks in Python
Project description
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?
Follow the instructions in the file doc/INSTALL.rst, online at https://tenpy.github.io/INSTALL.html. 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.github.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 and additional explanations.
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 is nightly converted into HTML using Sphinx, and made available online at https://tenpy.github.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/contributing.rst, online at https://tenpy.github.io/contributing.html.
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.
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}}, }
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.
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.github.io/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
File details
Details for the file physics-tenpy-0.5.0.tar.gz
.
File metadata
- Download URL: physics-tenpy-0.5.0.tar.gz
- Upload date:
- Size: 566.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1.post20191125 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77b6bc8a1ccc9a29bb5599ad265f8c77271b438c7ad35685eaed7b4ca17c2034 |
|
MD5 | 3729dd8d80dc1107d1d5241cc66e9443 |
|
BLAKE2b-256 | 8d9541af656ce8957eaf1c30abb847d428e9f259fc2a9918e8d364db34022185 |