Hyper optimized contraction trees for large tensor networks and einsums.
Project description
cotengra
is a python library for contracting tensor networks or einsum
expressions involving large numbers of tensors - the main docs can be found
at cotengra.readthedocs.io.
Some of the key feautures of cotengra
include:
- drop-in
einsum
replacement - an explicit contraction tree object that can be flexibly built, modified and visualized
- a 'hyper optimizer' that samples trees while tuning the generating meta-paremeters
- dynamic slicing for massive memory savings and parallelism
- support for hyper edge tensor networks and thus arbitrary einsum equations
- paths that can be supplied to
numpy.einsum
,opt_einsum
,quimb
among others - performing contractions with tensors from many libraries via
cotengra
, even if they don't provideeinsum
ortensordot
but do have (batch) matrix multiplication
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cotengra-0.6.1.tar.gz
(3.3 MB
view details)
Built Distribution
cotengra-0.6.1-py3-none-any.whl
(177.7 kB
view details)
File details
Details for the file cotengra-0.6.1.tar.gz
.
File metadata
- Download URL: cotengra-0.6.1.tar.gz
- Upload date:
- Size: 3.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69364e1c6d9e100b245f6250af2fc8ddd71899de786f94c7bafcf0a32ecf895d |
|
MD5 | 05094b45f79b1aa5a27e2be38fb8fc90 |
|
BLAKE2b-256 | eff829057fe6fec60b0aef78de8f1f426a84d485edf71be63c1bab50d3b54ef3 |
File details
Details for the file cotengra-0.6.1-py3-none-any.whl
.
File metadata
- Download URL: cotengra-0.6.1-py3-none-any.whl
- Upload date:
- Size: 177.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8a0e266eea656a261bb46f6b844debbc5780597ad71e9e0f3a78b8f58c72112 |
|
MD5 | e38e3a31657cfc32cc6bd36a53bde625 |
|
BLAKE2b-256 | 095fb32d69ec4fe03286256be513fa8165829fe8474f90da3705df9adce6eb80 |