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.

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.0.tar.gz (8.3 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.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ncon_torch-0.2.0.tar.gz
  • Upload date:
  • Size: 8.3 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.0.tar.gz
Algorithm Hash digest
SHA256 28c570492ecd6296fb10923627a3f3cf06667e272d2f1ac275904c83f3bed9d8
MD5 64f6e1fef24451921afd78fc83792f0a
BLAKE2b-256 5340ff06accf4f38c2bef60d78b87467503a5f9046bb9b79dcdc8b6abbb48a0a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ncon_torch-0.2.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f71f3c493c52791f8b77192bdaa99538ab1179dcbd741071b08b9ff60367010
MD5 5d22bef096f26c83091de7b65a5fc717
BLAKE2b-256 e3e1a60347ec847be4a224a2689c34c496e581d7aa7312dff81e8b5d4ec2457a

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