Skip to main content

An efficient, large-scale emulator designed for quantum machine learning, seamlessly integrated with a PyTorch backend. Please refer to https://pyqtorch.readthedocs.io/en/latest/ for setup and usage info, along with the full documentation.

Project description

pyqtorch

pyqtorch is a PyTorch-based state vector simulator designed for quantum machine learning. It acts as the main backend for Qadence, a digital-analog quantum programming interface. pyqtorch allows for writing fully differentiable quantum programs using both digital and analog operations; enabled via a intuitive, torch-based syntax.

Linting / Tests/ Documentation License Pypi Coverage

Installation guide

pyqtorch can be installed from PyPI with pip as follows:

pip install pyqtorch

Install from source

We recommend to use the hatch environment manager to install pyqtorch from source:

python -m pip install hatch

# get into a shell with all the dependencies
python -m hatch shell

# run a command within the virtual environment with all the dependencies
python -m hatch run python my_script.py

Please note that hatch will not combine nicely with other environment managers such Conda. If you want to use Conda, install pyqtorch from source using pip:

# within the Conda environment
python -m pip install -e .

Contributing

Please refer to CONTRIBUTING to learn how to contribute to pyqtorch.

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

pyqtorch-1.7.4.tar.gz (104.3 kB view details)

Uploaded Source

Built Distribution

pyqtorch-1.7.4-py3-none-any.whl (79.3 kB view details)

Uploaded Python 3

File details

Details for the file pyqtorch-1.7.4.tar.gz.

File metadata

  • Download URL: pyqtorch-1.7.4.tar.gz
  • Upload date:
  • Size: 104.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyqtorch-1.7.4.tar.gz
Algorithm Hash digest
SHA256 84ac0e3c1de25743b163e46fd20a9933ab9aad8eb8faa620c5e8d47001f9b130
MD5 2832ce2da78cfb486ae6afbdae115bf7
BLAKE2b-256 f7c2663377d1bd339d210deb840373a7c08be7f215ce018771f7426f048c9917

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyqtorch-1.7.4.tar.gz:

Publisher: test.yml on pasqal-io/pyqtorch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyqtorch-1.7.4-py3-none-any.whl.

File metadata

  • Download URL: pyqtorch-1.7.4-py3-none-any.whl
  • Upload date:
  • Size: 79.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyqtorch-1.7.4-py3-none-any.whl
Algorithm Hash digest
SHA256 eef7d8aa210ec4bad3d5386e5a6b1e96dbd69add28bd3337c124984023696ad9
MD5 bd71854e2bddabf514bd17a7dd9f2f4b
BLAKE2b-256 1d841357e356720f40eadfa301130a5e177cd51bf221ccefb9083a389c46e6cb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyqtorch-1.7.4-py3-none-any.whl:

Publisher: test.yml on pasqal-io/pyqtorch

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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