Skip to main content

Tensor network contraction function with GPU and autograd support via PyTorch.

Project description

ncon-torch

PyPI version

ncon-torch is a fork of the ncon package, modified to include GPU and autograd support via PyTorch

Installation

pip install ncon-torch

Usage

See original package repo for examples.

Benchmark

Below we compare NumPy and PyTorch based contractions of a two-qubit gate with an n-qubit state. The benchmark was done on Google Colab with a T4 GPU.

Benchmark: NumPy vs PyTorch

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

ncon_torch-0.2.7.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ncon_torch-0.2.7-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file ncon_torch-0.2.7.tar.gz.

File metadata

  • Download URL: ncon_torch-0.2.7.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for ncon_torch-0.2.7.tar.gz
Algorithm Hash digest
SHA256 a00015c1b6bc56e97660c24de6102f0bdbfd1206787e129f1f832e9062292fb4
MD5 c214ed51d9b26f1da48b763d6eb5f4bf
BLAKE2b-256 6f87924025420fbd7a5e357dfddd4689281e9ea8a9348089dc1060794da75227

See more details on using hashes here.

File details

Details for the file ncon_torch-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: ncon_torch-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for ncon_torch-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c003816443d3736b78cb5da3af6ad2c2932b8ab7eabfe9a5a9bea9406c4dc849
MD5 ac25ea77ff86a06d91ae818808c25b82
BLAKE2b-256 4934dd01d810b614818fb13040887663b165a5763c02c4b4613c12e27bf1441c

See more details on using hashes here.

Supported by

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