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.4

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.4
File Size Uploaded Provenance Actions
cotengra-0.8.4.tar.gz 2.5 MB With provenance Details for cotengra-0.8.4.tar.gz

Built distribution (wheel)

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

Total release size: 2.8 MB

Release files / cotengra-0.8.4.tar.gz

Download URL cotengra-0.8.4.tar.gz
Size 2.5 MB
Tags Source
SHA-256 checksum
How to use checksums
0237f6498071d5f88b67c1afd40e73a9103c15fd602c68c346f3e4ee0660c6bc
BLAKE2b-256 checksum
How to use checksums
3771ff5fda9fa7191d4d5a308251eca6689a11935c6960bffff55a19755e67f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

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

Download URL cotengra-0.8.4-py3-none-any.whl
Size 255.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bdef059e55d2b747bd93abf9c99c99fb2c13586bc61cc8b2b7421b721256a154
BLAKE2b-256 checksum
How to use checksums
7bd354feee9c30b208f2830c444951b75a45df8070b1522d42be6c0c06f87ef0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 18, 2026.

Transparency log

Security for cotengra 0.8.4

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cotengra-0.8.4.tar.gz

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 Nov 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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