Skip to main content

Hyper optimized contraction trees for large tensor networks and einsums.

Project description

cotengra

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 provide einsum or tensordot but do have (batch) matrix multiplication

cotengra

Project details


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.2.tar.gz (3.1 MB view details)

Uploaded Source

Built Distribution

cotengra-0.3.2-py3-none-any.whl (145.0 kB view details)

Uploaded Python 3

File details

Details for the file cotengra-0.3.2.tar.gz.

File metadata

  • Download URL: cotengra-0.3.2.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

Hashes for cotengra-0.3.2.tar.gz
Algorithm Hash digest
SHA256 58f71b127d715401cc686ef27b6b61e0410680e8df352d39b58ca520d8bf7fc9
MD5 164a8924c8ad9e589c612bc94457795b
BLAKE2b-256 c7e40d8e0b359bae2ce5e357b5560580569c77672b8697e24e361a17d084115c

See more details on using hashes here.

File details

Details for the file cotengra-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: cotengra-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 145.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for cotengra-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1195624288038a3908f1bc51348cd95675a4341973209b37e28f5d1c30a9bbd6
MD5 e16c0e7ed59be9d1834a492edb2210b9
BLAKE2b-256 5c48c7f9fb0358398a98b66bb768a1242f3657243c65978f721a7945ad776f74

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page