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.2.tar.gz
(3.3 MB
view details)
Built Distribution
cotengra-0.6.2-py3-none-any.whl
(177.8 kB
view details)
File details
Details for the file cotengra-0.6.2.tar.gz
.
File metadata
- Download URL: cotengra-0.6.2.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 | a56b921d0339d1397e925a7b69029d3301636d09b99b509368751753bda39d24 |
|
MD5 | 9a47c0f54c5430123cafe054697d8e24 |
|
BLAKE2b-256 | 9c89fa3e988d0075520b4089da44da3768de97bf14737de2f9f33ff23a1c88a3 |
File details
Details for the file cotengra-0.6.2-py3-none-any.whl
.
File metadata
- Download URL: cotengra-0.6.2-py3-none-any.whl
- Upload date:
- Size: 177.8 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 | 524711515cfbaae22ae56a8c6bf3339dfe50485b9b615de52f8f7c330847b196 |
|
MD5 | 5f5f4fd9155c25e5f9228fabe0ec5b29 |
|
BLAKE2b-256 | ca3e27a7aae7d3c47f58d6a754e03aad0d27a3f3a0514d61c8177324fe2fba23 |