Skip to main content

cotengra

tests codecov Docs PyPI Anaconda-Server Badge Pixi Badge

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 and ncon 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
  • simulated annealing as an alternative optimizing and slicing strategy
  • 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

Metadata

Release files for cotengra 0.8.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cotengra 0.8.2
File Size Uploaded
cotengra-0.8.2.tar.gz 2.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for cotengra 0.8.2
File Interpreter ABI Platform
cotengra-0.8.2-py3-none-any.whl Python 3 none any Details

Total release size: 2.8 MB

Release files / cotengra-0.8.2.tar.gz

Download URL cotengra-0.8.2.tar.gz
Size 2.5 MB
Tags Source
SHA-256 checksum
How to use checksums
3040ec6cbcc5b3c5d0388444a97cef02dc5963c6a222106e669db0e586369da9
BLAKE2b-256 checksum
How to use checksums
6155867bfde1fd7d91b79fd1ee23468f034fc5afb6da620124e43a1a004d3a05
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 22, 2026.

Transparency log

Release files / cotengra-0.8.2-py3-none-any.whl

Download URL cotengra-0.8.2-py3-none-any.whl
Size 254.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f8c636bb392aa17e463c979d186a76c6220da7a98fdf6a252e02122a726009e2
BLAKE2b-256 checksum
How to use checksums
f627157df41828f9d3ea3db17b1d299c900e7faa84e14fc0cf32ded39e87b7e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 22, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.8.2 This release

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.6

2 release files

0.5.5

2 release files

0.5.4

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page