A matrix product representation library for Python
mpnum is a flexible, user-friendly, and expandable toolbox for the matrix product state/tensor train tensor format. mpnum provides:
- support for well-known matrix product representations, such as:
- arithmetic operations: addition, multiplication, contraction etc.
- compression, canonical forms, etc.
- finding extremal eigenvalues and eigenvectors of MPOs (DMRG)
- flexible tools for new matrix product algorithms
To install the latest stable version run
pip install mpnum
If you want to install
mpnum from source, please run (on Unix)
git clone https://github.com/dseuss/mpnum.git cd mpnum pip install .
In order to run the tests and build the documentation, you have to install the development dependencies via
pip install -r requirements.txt
For more information, see:
- six, numpy, scipy
Supported Python versions:
- 2.7, 3.4, 3.5, 3.6
How to contribute
- Daniel Suess, firstname.lastname@example.org, University of Cologne
- Milan Holzaepfel, email@example.com, Ulm University
Distributed under the terms of the BSD 3-Clause License (see LICENSE).
mpnum has been used and cited in the following publications: