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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ncon_torch-0.2.1.tar.gz
  • Upload date:
  • Size: 8.5 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.1.tar.gz
Algorithm Hash digest
SHA256 313376d3578a885245c9eaaf3a5fd6209b04c96102b834c9cf67e778a95902a7
MD5 cf03b1cf8a955679a516054069ccbed9
BLAKE2b-256 8afc238f1add0de4cb68b97fba7a5ad5b36a367ab0166a1716f79aec4083e38b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ncon_torch-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a6cf9edf99dff4b8aea8216b6703c0c5e9613daea6de14bbc1cc1d55d528804
MD5 d75de57c03974175fb4a600b15f3e2ba
BLAKE2b-256 441b57cafba3bf129aac39dce6571f33c3972b7bf7a1d4dc69608336a23ec6e2

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