skillfed

opt-einsum

Path optimization of einsum functions.

opt-einsum Permissive license DORMANT v3.4.0 released

Install

opt-einsum on PyPI

pip

pip install opt-einsum

uv

uv add opt-einsum

poetry

poetry add opt-einsum

Package 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python Modules

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...

Read as markdown · JSON record

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
tensor contraction optimizationeinsum path optimizereinsum performancetensor operation speedupeinsum contraction ordertensor computation optimizationbackend-agnostic einsum

Similar packages