{"full_name":"dgasmith/opt_einsum","owner":"dgasmith","name":"opt_einsum","shard":"1","url":"https://github.com/dgasmith/opt_einsum","description":"⚡️Optimizing einsum functions in NumPy, Tensorflow, Dask, and more with contraction order optimization.","homepage":"https://dgasmith.github.io/opt_einsum/","topics":["python","tensor","contraction","gpu-acceleration","performance","einsum","tensor-contraction"],"tag_pages":["performance","python","tensor"],"language":"Python","license":"MIT","avatar":"https://avatars.githubusercontent.com/u/1769841?u=44e83d7974f0ab5c431340f1669d98f781594980&v=4","created_at":"2014-12-12T17:31:24Z","pushed_at":"2026-11-15T00:39:06Z","metrics":{"stars":994,"forks":82,"watchers":21,"issues":142,"prs":130,"releases":20,"issues_open":32,"issues_closed":110,"prs_open":9,"prs_closed":5,"prs_merged":116,"discussions":0},"growth":{"day":{"stars":1,"forks":0,"base_day":"2026-11-15"}},"history":{"dates":["2026-11-15","2026-11-16"],"stars":[993,994],"forks":[82,82],"watchers":[null,21],"issues_open":[null,32],"prs_open":[null,9]},"boards":{"daily_watchers":9,"debut":73},"same_owner":[],"issues":[{"number":112,"title":"Suboptimal order when einsum contains non-repeating indices","comments":22,"created_at":"2019-11-28T01:13:08Z"},{"number":117,"title":"Suboptimal scaling for expressions of constant treewidth ","comments":12,"created_at":"2019-12-01T06:02:04Z"},{"number":95,"title":"Manual and automatic slicing","comments":12,"created_at":"2019-08-07T22:08:07Z"},{"number":94,"title":"Cython implementation","comments":10,"created_at":"2019-08-07T18:45:25Z"},{"number":211,"title":"Contigugous loss after opt-einsum that may affect the efficiency of subsequent operations","comments":8,"created_at":"2022-12-15T00:35:56Z"},{"number":217,"title":"Setting memory_limit in contract_path causes \"ValueError: invalid subscript 'Ų' in einstein sum subscripts string, subscripts must be letters\"","comments":7,"created_at":"2023-06-27T13:06:25Z"},{"number":167,"title":"Is opt_einsum.paths.optimal algorithm correct?","comments":7,"created_at":"2021-08-24T16:19:49Z"},{"number":220,"title":"Sub-optimal contraction path when using broadcasting","comments":5,"created_at":"2023-09-23T10:47:01Z"}],"discussions":[],"latest_release":{"name":"v3.4.0","tag":"v3.4.0","published_at":"2024-09-26T13:40:39Z","body":"## 3.4.0 / 2024-09-26\r\n\r\nNumPy has been removed from `opt_einsum` as a dependency allowing for more flexible installs. Type hints have been added to the code base as well as an overhaul of the documentation to MkDocs here: https://dgasmith.github.io/opt_einsum/\r\n\r\n**New Features**\r\n\r\n - [\\#160](https://github.com/dgasmith/opt_einsum/pull/160) Migrates docs to MkDocs Material and GitHub pages hosting.\r\n - [\\#161](https://github.com/dgasmith/opt_einsum/pull/161) Adds Python type annotations to the code base.\r\n - [\\#204](https://github.com/dgasmith/opt_einsum/pull/204) Removes NumPy as a hard dependency.\r\n\r\n**Enhancements**\r\n\r\n- [\\#154](https://github.com/dgasmith/opt_einsum/pull/154) Prevents an infinite recursion error when the `memory_limit` was set very low for the `dp` algorithm. \r\n- [\\#155](https://github.com/dgasmith/opt_einsum/pull/155) Adds flake8 spell check to the doc strings\r\n- [\\#159](https://github.com/dgasmith/opt_einsum/pull/159) Migrates to GitHub actions for CI.\r\n- [\\#174](https://github.com/dgasmith/opt_einsum/pull/174) Prevents double contracts of floats in dynamic paths.\r\n- [\\#196](https://github.com/dgasmith/opt_einsum/pull/196) Allows `backend=None` which is equivalent to `backend='auto'`\r\n- [\\#208](https://github.com/dgasmith/opt_einsum/pull/208) Switches to `ConfigParser` insetad of `SafeConfigParser` for Python 3.12 compatability. \r\n- [\\#228](https://github.com/dgasmith/opt_einsum/pull/228) `backend='jaxlib'` is now an alias for the `jax` library\r\n- [\\#237](https://github.com/dgasmith/opt_einsum/pull/237) Switches to `ruff` for formatting and linting.\r\n- [\\#238](https://github.com/dgasmith/opt_einsum/pull/238) Removes `numpy`-specific keyword args from being explicitly defined in `contract` and uses `**kwargs` instead.\r\n\r\n**Bug Fixes**\r\n\r\n- [\\#195](https://github.com/dgasmith/opt_einsum/pull/195) Fixes a bug where `dp` would not work for scalar-only contractions.\r\n- [\\#200](https://github.com/dgasmith/opt_einsum/pull/200) Fixes a bug where `parse_einsum_input` would not correctly respect shape-only contractions.\r\n- [\\#222](https://github.com/dgasmith/opt_einsum/pull/222) Fixes an erorr in `parse_einsum_input` where an output subscript specified multiple times was not correctly caught. \r\n- [\\#229](https://github.com/dgasmith/opt_einsum/pull/229) Fixes a bug where empty contraction lists in `PathInfo` would cause an error.\r\n","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}