Comparison
cotengra vs opt-einsum
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Hyper optimized contraction trees for large tensor networks and einsums.
Actively maintained. Last release 12 days ago, commits in 13 of the last 26 weeks. A safe choice.
$
pip install cotengraPath optimization of einsum functions.
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
$
pip install opt-einsumIn short
- opt-einsum is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- cotengra is the most used: 138.2K downloads a month.
- cotengra also has the best Pythie’s Index (82).
- Safe default for a new project: cotengra.
Side by side
| Metric | cotengra | opt-einsum |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 82 | 27 |