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
andncon
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
Built Distribution
File details
Details for the file cotengra-0.7.1.tar.gz
.
File metadata
- Download URL: cotengra-0.7.1.tar.gz
- Upload date:
- Size: 2.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5649af42a2a5e836bb2bf3f96a4ce71d66324b96507a0a2efc1b64718ac404f6 |
|
MD5 | f7b2db7c6a8ef222c11fc6c919a27d52 |
|
BLAKE2b-256 | e73ccb934556c38194bdca19e2a321b3831e5f98e9a97df94ca410a80bfa90da |
Provenance
The following attestation bundles were made for cotengra-0.7.1.tar.gz
:
Publisher:
pypi-release.yml
on jcmgray/cotengra
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
cotengra-0.7.1.tar.gz
- Subject digest:
5649af42a2a5e836bb2bf3f96a4ce71d66324b96507a0a2efc1b64718ac404f6
- Sigstore transparency entry: 173954522
- Sigstore integration time:
- Permalink:
jcmgray/cotengra@d759b215fdcfc34a2051c67e9cada00bd10e0686
- Branch / Tag:
refs/tags/v0.7.1
- Owner: https://github.com/jcmgray
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
pypi-release.yml@d759b215fdcfc34a2051c67e9cada00bd10e0686
- Trigger Event:
release
- Statement type:
File details
Details for the file cotengra-0.7.1-py3-none-any.whl
.
File metadata
- Download URL: cotengra-0.7.1-py3-none-any.whl
- Upload date:
- Size: 190.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18b0c7f2993be86f8c51a2a41563bc6615225896929be0e207bd3a581260c405 |
|
MD5 | 2b04e48954613f1c1df7747161b06f4e |
|
BLAKE2b-256 | 905dec3a31fb9795ebb6a0321b978e8a627ea8e193c64212b40a71870af719cd |
Provenance
The following attestation bundles were made for cotengra-0.7.1-py3-none-any.whl
:
Publisher:
pypi-release.yml
on jcmgray/cotengra
-
Statement:
- Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
cotengra-0.7.1-py3-none-any.whl
- Subject digest:
18b0c7f2993be86f8c51a2a41563bc6615225896929be0e207bd3a581260c405
- Sigstore transparency entry: 173954523
- Sigstore integration time:
- Permalink:
jcmgray/cotengra@d759b215fdcfc34a2051c67e9cada00bd10e0686
- Branch / Tag:
refs/tags/v0.7.1
- Owner: https://github.com/jcmgray
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
pypi-release.yml@d759b215fdcfc34a2051c67e9cada00bd10e0686
- Trigger Event:
release
- Statement type: