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

Uploaded Source

Built Distribution

cotengra-0.3.0-py3-none-any.whl (136.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cotengra-0.3.0.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for cotengra-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1b18212e245dcbb03418852d6e0827b293c20a8dc5a97869c670370ba923e0c6
MD5 4b67c8c6acab879884b01ad29d317224
BLAKE2b-256 febad760a83b3561b157e0c623bb0a5a7ca05b2838c706da127d7de34dfdcba7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for cotengra-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 546774fb8380efb68798ca4b02ccb75aff2e43922ec9c90756a32adf52e79a95
MD5 4792a39f0f842ccfa7ffcbe0ddeb5033
BLAKE2b-256 c911e0e0d3bff2a8073ed939700c13d69378562f37cecaf136508e66bf3c886b

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