opt-einsum
Path optimization of einsum functions.
Install
opt-einsum on PyPI
pip
pip install opt-einsumuv
uv add opt-einsumpoetry
poetry add opt-einsumPackage facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | dormant — 686 days since the last release |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: opt_einsum-3.4.0-py3-none-any.whl
About opt-einsum
from the package's own PyPI description — quoted content, verbatim
Optimized Einsum
Tests (image) codecov (image) Anaconda-Server Badge (image) PyPI (image) PyPIStats (image) Documentation Status (image) DOI (image)
Optimized Einsum: A tensor contraction order optimizer
Optimized einsum can significantly reduce the overall execution time of einsum-like expressions...
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Optimizes the execution order of einsum tensor contractions to dramatically reduce computation time, acting as a drop-in replacement for einsum functions across multiple tensor libraries.
Installs with no runtime dependencies and has been stable since 2016; however, the package is dormant (686 days since last release), which may indicate limited active maintenance despite its Production/Stable status.
Licensed under MIT (permissive), allowing free use, modification, and distribution with minimal restrictions.
Usage
pip install opt-einsum
from opt_einsum import contract
result = contract('pi,qj,ijkl,rk,sl->pqrs', C, C, I, C, C)
Verdict: A well-established, dependency-free tensor optimization library in Production/Stable status with no known vulnerabilities and strong historical adoption (top 1000 PyPI). Its dormancy (686 days since release) is a minor concern for active development, but the mature codebase and broad backend support make it reliable for einsum optimization tasks.
Needs verification
- Whether the 686-day gap reflects stable maturity or insufficient maintenance for emerging tensor frameworks
- Performance characteristics on modern GPU backends relative to recent library versions
- Compatibility with the latest versions of supported backends listed in documentation
Similar packages
permissive · top 1,000 on PyPI
einopspermissive · top 1,000 on PyPI
tensorboardpermissive · top 1,000 on PyPI
uvlooppermissive · top 1,000 on PyPI
altairpermissive · top 1,000 on PyPI
torchvisionpermissive · top 1,000 on PyPI
nvidia-cublasunclear · top 1,000 on PyPI
safetensorspermissive · top 1,000 on PyPI
boolean.pypermissive · top 1,000 on PyPI
nh3permissive · top 1,000 on PyPI