SeeMPS: A Python-based Matrix Product State and Tensor Train Library
Paula García-Molina, Juan José Rodríguez-Aldavero, Jorge Gidi, Juan José García-Ripoll
TL;DR
SeeMPS presents a Python library for tensor-network computations based on Matrix Product States (MPS) and Quantized Tensor Trains (QTT), enabling efficient finite-precision linear algebra in spaces that scale exponentially with system size. It articulates a three-tier design: MPS/MPO representations, a comprehensive MPS-BLAS/LAPACK-inspired operation set with error control, and high-level algorithms for eigenvalue problems, linear systems, and Fourier transforms, all integrated with controlled truncations. The library extends beyond quantum physics to function encoding, differentiation, integration, and high-dimensional PDE-like problems via QTT, TCI, and complementary techniques, providing tools for quantum-inspired numerical analysis and PDE solvers. SeeMPS thus offers a practical, architecture-friendly framework that unifies low-level tensor operations with sophisticated algorithms, enabling scalable simulations, quantum computing emulation, and high-dimensional numerical analysis across disciplines.
Abstract
We introduce SeeMPS, a Python library dedicated to implementing tensor network algorithms based on the well-known Matrix Product States (MPS) and Quantized Tensor Train (QTT) formalisms. SeeMPS is implemented as a complete finite precision linear algebra package where exponentially large vector spaces are compressed using the MPS/TT formalism. It enables both low-level operations, such as vector addition, linear transformations, and Hadamard products, as well as high-level algorithms, including the approximation of linear equations, eigenvalue computations, and exponentially efficient Fourier transforms. This library can be used for traditional quantum many-body physics applications and also for quantum-inspired numerical analysis problems, such as solving PDEs, interpolating and integrating multidimensional functions, sampling multivariate probability distributions, etc.
