Skip to main content

PennyLane plugin for Qrack.

Project description

The PennyLane-Qrack plugin integrates the Qrack quantum computing framework with PennyLane’s quantum machine learning capabilities.

Performance can benefit greatly from following the Qrack repository “Quick Start” and “Power user considerations.”

This plugin is addapted from the PennyLane-Qulacs plugin, under the Apache License 2.0, with many thanks to the original developers!

PennyLane is a cross-platform Python library for quantum machine learning, automatic differentiation, and optimization of hybrid quantum-classical computations.

unitaryfund/qrack (formerly vm6502q/qrack) is a software library for quantum computing, written in C++ and with GPU support.

PennyLane Catalyst provides optional quantum just-in-time (QJIT) compilation, for improved performance.

Features

  • Provides access to a PyQrack simulator backend via the qrack.simulator device

  • Provides access to a (C++) Qrack simulator backend for Catalyst (also) via the qrack.simulator device

  • Provides access to a PyQrack near-Clifford simulator backend via the qrack.stabilizer device

  • Provides access to a PyQrack simulator backend optimized for large-scale approximate simulation via the qrack.ace device

Installation

This plugin requires Python version 3.9 or above, as well as PennyLane and the Qrack library.

Installation of this plugin as well as all its Python dependencies can be done using pip (or pip3, as appropriate):

$ pip3 install pennylane-qrack

This step should automatically build the latest main branch Qrack library, for Catalyst support, if Catalyst support is available.

Dependencies

PennyLane-Qrack requires the following libraries be installed:

as well as the following Python packages:

with optional functionality provided by the following Python packages:

If you currently do not have Python 3 installed, we recommend Anaconda for Python 3, a distributed version of Python packaged for scientific computation.

Tests

To test that the PennyLane-Qrack plugin is working correctly you can run

$ make test

in the source folder.

Contributing

We welcome contributions - simply fork the repository of this plugin, and then make a pull request containing your contribution. All contributers to this plugin will be listed as authors on the releases.

We also encourage bug reports, suggestions for new features and enhancements, and even links to cool projects or applications built on PennyLane.

Authors

PennyLane-Qrack has been directly adapted by Daniel Strano from PennyLane-Qulacs. PennyLane-Qulacs is the work of many contributors.

If you are doing research using PennyLane and PennyLane-Qulacs, please cite their paper:

Ville Bergholm, Josh Izaac, Maria Schuld, Christian Gogolin, M. Sohaib Alam, Shahnawaz Ahmed, Juan Miguel Arrazola, Carsten Blank, Alain Delgado, Soran Jahangiri, Keri McKiernan, Johannes Jakob Meyer, Zeyue Niu, Antal Száva, and Nathan Killoran. PennyLane: Automatic differentiation of hybrid quantum-classical computations. 2018. arXiv:1811.04968

Support

If you are having issues, please let us know by posting the issue on our Github issue tracker, or by asking a question in the forum.

License

The PennyLane-Qrack plugin is free and open source, released under the Apache License, Version 2.0.

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

pennylane_qrack_cpu-0.27.1.tar.gz (47.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pennylane_qrack_cpu-0.27.1-py3-none-win_amd64.whl (34.3 kB view details)

Uploaded Python 3Windows x86-64

pennylane_qrack_cpu-0.27.1-py3-none-manylinux_2_39_x86_64.whl (1.5 MB view details)

Uploaded Python 3manylinux: glibc 2.39+ x86-64

pennylane_qrack_cpu-0.27.1-py3-none-manylinux_2_35_x86_64.whl (1.5 MB view details)

Uploaded Python 3manylinux: glibc 2.35+ x86-64

pennylane_qrack_cpu-0.27.1-py3-none-macosx_15_0_x86_64.whl (946.0 kB view details)

Uploaded Python 3macOS 15.0+ x86-64

pennylane_qrack_cpu-0.27.1-py3-none-macosx_15_0_arm64.whl (903.7 kB view details)

Uploaded Python 3macOS 15.0+ ARM64

pennylane_qrack_cpu-0.27.1-py3-none-macosx_14_0_arm64.whl (917.4 kB view details)

Uploaded Python 3macOS 14.0+ ARM64

File details

Details for the file pennylane_qrack_cpu-0.27.1.tar.gz.

File metadata

  • Download URL: pennylane_qrack_cpu-0.27.1.tar.gz
  • Upload date:
  • Size: 47.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pennylane_qrack_cpu-0.27.1.tar.gz
Algorithm Hash digest
SHA256 d230cada4a4a2f225ad71a90ceeb294ac8f4145c5596ec77ece50bf7df51edaa
MD5 fd08f36f1aebee99db32d0ca7d42ebc2
BLAKE2b-256 99c00dbc061e609c2a81cdc8c03939f3808fe12fbc2d863c248be04111ca4ea2

See more details on using hashes here.

File details

Details for the file pennylane_qrack_cpu-0.27.1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for pennylane_qrack_cpu-0.27.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 3306d24688983973871405e381cafee82b5017fdce7acd3127e1df7a09ddaefe
MD5 90ff68f71611b34efa0af1147d757d28
BLAKE2b-256 ed5c2345aa23646be46a68d412dc31941a2e76bdc6312aff7f8c659c9ef45b06

See more details on using hashes here.

File details

Details for the file pennylane_qrack_cpu-0.27.1-py3-none-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for pennylane_qrack_cpu-0.27.1-py3-none-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 46fb8508e2598d45f70a5b06b345583fcb2babb21094cf9c06efe59769b77205
MD5 59e36653fa81552fd0200becee135a4c
BLAKE2b-256 3a2f96a62744715ff20425ddf6b18dfde00d89c3cc6c0d03e1bb526690492437

See more details on using hashes here.

File details

Details for the file pennylane_qrack_cpu-0.27.1-py3-none-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for pennylane_qrack_cpu-0.27.1-py3-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 4a1bedeecba890a68de48899bcc9102e1d2f4bf93d836fb7d4cda0bc39614a73
MD5 f1ab7a637695c4dd1695ab5034be2f56
BLAKE2b-256 ecdb0a0c21ba409c334a880c46f41edbb123f869af62423e43ec78ae5ef6cd75

See more details on using hashes here.

File details

Details for the file pennylane_qrack_cpu-0.27.1-py3-none-macosx_15_0_x86_64.whl.

File metadata

File hashes

Hashes for pennylane_qrack_cpu-0.27.1-py3-none-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 88e7600f5c0cf8b410f4a209c48f3f0804f3b4998fbc2edc01cd00efd7ef0048
MD5 5ea7f27589928ded2c6fc3f8fca72438
BLAKE2b-256 87faddb47ce61ead8175fc8ecd32bffe778fee53956229d37cd66c28e57d5c51

See more details on using hashes here.

File details

Details for the file pennylane_qrack_cpu-0.27.1-py3-none-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for pennylane_qrack_cpu-0.27.1-py3-none-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 ebe4f78cecc62bfbf8d1d18789a6e039b897720db1cf28341503cd4328c2743a
MD5 9d1395bf95940d19e637d5e8fa65ad71
BLAKE2b-256 3e339d6afd1dba6b981f149a5f4f14635f277508bd63cbb91ae7698ed7ba8747

See more details on using hashes here.

File details

Details for the file pennylane_qrack_cpu-0.27.1-py3-none-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for pennylane_qrack_cpu-0.27.1-py3-none-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 83a05d84a8852405a4b5ed343db89a52960e9471453140853bf878d62850d412
MD5 29c568c9fa0ab2205fede31734fccef9
BLAKE2b-256 aca07b3829ab38091a0b7872b83748fc3157bfc3c4582ea08b0d97eb67d1daaa

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