quimb
Quantum information and many-body library.
What it is and what it does
Quimb is a Python library for quantum information and many-body physics calculations, split into two main components. The `quimb.tensor` module handles tensor networks of arbitrary geometry—you can construct, manipulate, contract, and optimize hypergraphs of tensors, run algorithms like DMRG and TEBD, and switch between backend array libraries (numpy, jax, torch) via autoray. The core `quimb` module provides exact quantum calculations where states and operators are represented as dense or sparse matrices, letting you find ground and excited states, perform time evolution, compute entanglement measures, and use numba-accelerated routines.
It's designed for researchers and practitioners working on quantum simulations, condensed-matter physics, and quantum information problems. The library handles the bookkeeping of tensor indices and contraction paths automatically, reducing the friction of implementing complex quantum algorithms by hand. Dependencies include numpy, scipy, numba for JIT compilation, cotengra for smart tensor contraction, and several utility libraries.
Use it for:
- Simulate ground states and dynamics of quantum many-body systems using DMRG or TEBD on MPS/PEPS ansätze
- Compute entanglement entropy, mutual information, and other quantum information measures on simulated states
- Prototype and optimize tensor network contraction strategies for arbitrary lattice geometries before deploying to production
- Perform exact diagonalization and time evolution of small quantum systems with automatic handling of large tensor spaces
- Combine quantum simulations with jax or torch backends for GPU acceleration and automatic differentiation
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Quimb provides Python tools for quantum information and many-body calculations, with specialized support for tensor networks and exact quantum state simulations using numpy and scipy backends.
Yes. Quimb is actively maintained, has low install friction, carries no known vulnerabilities, and is licensed permissively. It's well-suited if you need tensor network or exact quantum calculations in Python. The 8 runtime dependencies are standard scientific libraries, and the library is mature enough for research use (Beta status since 2018). Install it if you're working on quantum simulations, many-body physics, or tensor network algorithms.
Install
quimb on PyPI
pip
pip install quimbuv
uv add quimbpoetry
poetry add quimbInstalling quimb
Before you install
Low friction install with a pure-Python wheel. Actively maintained with a release 4 days ago and last commit on 2026-08-14. Requires Python 3.11 or later and brings in 8 runtime dependencies including numpy, scipy, numba, and cotengra for tensor contraction.
License in practice
Licensed under Apache-2.0 (permissive), so you can use, modify, and distribute it freely in commercial and private projects without copyleft obligations.
Quickstart
pip install quimb
import quimb as qu
import numpy as np
# Construct a simple tensor network
T1 = qu.tensor.Tensor(np.random.randn(2, 3), inds=['a', 'b'])
T2 = qu.tensor.Tensor(np.random.randn(3, 4), inds=['b', 'c'])
tn = T1 | T2 # Contract tensors
result = tn.contract()
Requires Python 3.11 or later; some advanced features may require optional dependencies like jax or torch via autoray.
Verify before relying
- Performance characteristics and scalability limits for large tensor networks compared to specialized frameworks
- Availability and maturity of GPU acceleration through jax/torch backends in practice
- Whether slepc integration for eigensolvers requires separate system-level installation
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 8 — autoray, cotengra, cytoolz, numba, numpy, psutil, scipy, tqdm |
| Maintenance | actively maintained — 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 182,371/month — #10,101 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: quimb-1.15.0-py3-none-any.whl
Keywords: dmrg, mera, networks, peps, physics, quantum, tebd, tensor, tensors
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
dwave-networkxExtends NetworkX with tools for D-Wave quantum…
permissive · top 15,000 on PyPI
samplomaticSamplomatic generates randomized variants of…
permissive · top 15,000 on PyPI
pennylane-lightningPennyLane-Lightning provides high-performance…
permissive · top 15,000 on PyPI
qiskit-algorithmsQiskit Algorithms provides a library of quantum…
permissive · top 15,000 on PyPI
cutensornet-cu13cuTensorNet is a GPU-accelerated library for…
unclear · top 15,000 on PyPI
dwave-graphsProvides graph representations and algorithms…
permissive · top 15,000 on PyPI
pymunkPymunk is a 2D rigid body physics simulation…
permissive · top 15,000 on PyPI
cudensitymat-cu13cuDensityMat provides GPU-accelerated density…
unclear · top 15,000 on PyPI
opt-einsumOptimizes the contraction order of einsum…
permissive · top 1,000 on PyPI
qutipQuTiP simulates the dynamics of closed and open…
permissive · top 15,000 on PyPI