pytenet

Tensor network library for quantum simulations


License
BSD-2-Clause
Install
pip install pytenet==1.2.0

Documentation

image

image

PyTeNet

PyTeNet is a Python implementation of quantum tensor network operations and simulations within the matrix product state framework, using NumPy to handle tensors.

Example usage for TDVP time evolution:

Features

  • matrix product state and operator classes
  • construct common Hamiltonians as MPOs, straightforward to adapt to custom Hamiltonians
  • convert arbitrary operator chains to MPOs
  • TDVP time evolution (single- and two-site, both real and imaginary time)
  • generate vector / matrix representations of matrix product states / operators
  • Krylov subspace methods for local operations, like local energy minimization
  • single- and two-site DMRG algorithm
  • built-in support for additive quantum numbers

Installation

To install PyTeNet from PyPI, call

Alternatively, you can clone the repository and install it in development mode via

Documentation

The full documentation is available at pytenet.readthedocs.io.

Directory structure

  • pytenet: source code of the actual PyTeNet package
  • doc: documentation and tutorials
  • test: unit tests (might serve as detailed documentation, too)
  • experiments: numerical experiments on more advanced, in-depth topics
  • paper: JOSS manuscript

Contributing

Feature requests, discussions and code contributions to PyTeNet in the form of pull requests are of course welcome. Creating an issue might be a good starting point. New code should be well documented (Google style docstrings) and unit-tested (see the test/ subfolder). For questions and additional support, fell free to contact christian.b.mendl@gmail.com

Citing

PyTeNet is published in the Journal of Open Source Software -if it's ever useful for a research project please consider citing it:

License

PyTeNet is licensed under the BSD 2-Clause license.

References

  1. U. Schollwöck
    The density-matrix renormalization group in the age of matrix product states
    Ann. Phys. 326, 96-192 (2011) (arXiv:1008.3477)
  2. J. Haegeman, C. Lubich, I. Oseledets, B. Vandereycken, F. Verstraete
    Unifying time evolution and optimization with matrix product states
    Phys. Rev. B 94, 165116 (2016) (arXiv:1408.5056)
  3. I. P. McCulloch
    From density-matrix renormalization group to matrix product states
    J. Stat. Mech. (2007) P10014 (arXiv:cond-mat/0701428)
  4. T. Barthel
    Precise evaluation of thermal response functions by optimized density matrix renormalization group schemes
    New J. Phys. 15, 073010 (2013) (arXiv:1301.2246)