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.2.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.2-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ncon_torch-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 bd461601512db1cb29ba460429f99f9bce7b70383b8fbd1ff9c9435c35eeb101
MD5 d825034c913ee143e988c6d22b12ee7d
BLAKE2b-256 c32148063d9993a2d872f25af1a814cceab70249727b0eb2b7abde9718b5c289

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ncon_torch-0.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 84f86dc0d276f08aaa4b8c8ef946f1d51663d813b0ca389e22c8931166a7ee0b
MD5 1e2893516b9a3035da38388666da603a
BLAKE2b-256 0abf1ca7dff3b91a764dab5070c549c9cf25c9fd0a15819dc7ad3f1c5840f057

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