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:
- 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
autoray
, 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.3.1.tar.gz
(3.1 MB
view details)
Built Distribution
cotengra-0.3.1-py3-none-any.whl
(144.0 kB
view details)
File details
Details for the file cotengra-0.3.1.tar.gz
.
File metadata
- Download URL: cotengra-0.3.1.tar.gz
- Upload date:
- Size: 3.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bdddb213f7f7ee70b6e813b08024c778836576c9f246f6bb7c618fa37ff48f8 |
|
MD5 | 03c45967cddbaed05c8346a69a863c89 |
|
BLAKE2b-256 | f16ce09c3c7362514c5481070a9f487f1c2b835d3e225738003d359379126194 |
File details
Details for the file cotengra-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: cotengra-0.3.1-py3-none-any.whl
- Upload date:
- Size: 144.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c3b95ddfb5d27916f0e4d3269c32d7dc558b2508709e6718dec9cede2f5232a |
|
MD5 | 50d9b09c5089fdff0cd3eff73655541a |
|
BLAKE2b-256 | 3f8a825e708a9bfdd7b6f1bde8b7ba843ca01533a8c2a9b10e20564923a574ad |