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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyqtorch-1.4.3.tar.gz
.
File metadata
- Download URL: pyqtorch-1.4.3.tar.gz
- Upload date:
- Size: 85.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c31eedd535515b5a49c0d723c72822705f440523d55d4e886217fcff26dc811 |
|
MD5 | 45db0d21854fc1626d536e073cc9d9c7 |
|
BLAKE2b-256 | 48041aaa814b351df8c2fd7e9b975d9ca724131f7c402a7331983ca71dada0be |
File details
Details for the file pyqtorch-1.4.3-py3-none-any.whl
.
File metadata
- Download URL: pyqtorch-1.4.3-py3-none-any.whl
- Upload date:
- Size: 64.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c37e2cf584ecc953974005a7b2f720d616b3efc406e5ddc876637e39fa5feb23 |
|
MD5 | 00c58409cfaaf0db2733247720167730 |
|
BLAKE2b-256 | 0e7338ea88d1ee987cbe4bdb87b246884127038f0f4156e7e2a8b2d3cd5d0b16 |