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.29.0.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.29.0-py3-none-win_amd64.whl (34.3 kB view details)

Uploaded Python 3Windows x86-64

pennylane_qrack_cpu-0.29.0-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.29.0-py3-none-manylinux_2_35_x86_64.whl (1.6 MB view details)

Uploaded Python 3manylinux: glibc 2.35+ x86-64

pennylane_qrack_cpu-0.29.0-py3-none-macosx_15_0_x86_64.whl (991.7 kB view details)

Uploaded Python 3macOS 15.0+ x86-64

pennylane_qrack_cpu-0.29.0-py3-none-macosx_15_0_arm64.whl (951.1 kB view details)

Uploaded Python 3macOS 15.0+ ARM64

pennylane_qrack_cpu-0.29.0-py3-none-macosx_14_0_arm64.whl (958.0 kB view details)

Uploaded Python 3macOS 14.0+ ARM64

File details

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

File metadata

  • Download URL: pennylane_qrack_cpu-0.29.0.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.29.0.tar.gz
Algorithm Hash digest
SHA256 d5365bd19d4bf6dc41de2c810cd2b2017bbb2298a9f253712ed1ab361403e327
MD5 b97383de5cc04c4cdb60c9645661ecb7
BLAKE2b-256 03d95cff36288b9c28d77b2af81b591db11f0d8cee651b0b2dcf0a23d3db0971

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack_cpu-0.29.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 a037c0a72e05a741f2bd595fdf591ef685125300b51609e870bb2a85cf94d38f
MD5 f3e00ed08292966dfd121b269569c248
BLAKE2b-256 42dcd94604dfbefedd37620f8ac95ae3c4fe8ca3498c50e13e17b69ef13840d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack_cpu-0.29.0-py3-none-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 15ece58b6be0547dace8c008b6ae536767f87f9d205b6110505299850906fd3a
MD5 faacee2ae449345bcc61ca5e46bd84e2
BLAKE2b-256 d6e9148394f776c075088d5b75a3f769ea9522e053c1fe7eba5dc57b5595bc3c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack_cpu-0.29.0-py3-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 40b1fac92716423fafc8c8597545922b3bd5ae51b2c45c20448654714b32dd59
MD5 1f9bb9a67cf3c4b7e44d1b4800ae635d
BLAKE2b-256 2ff8893e0d70dd5a5ee506eb90a076fe70fcba9d50276757762a5d69884b2ce3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack_cpu-0.29.0-py3-none-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 70d80a4037e065be1cfe5b162ba29fdffc0cc223e20975d4c7d6a1b1ae4b2ab2
MD5 75dc892eaec37f2d8d66877a0ad9100d
BLAKE2b-256 bbdab0aaee475b0ba0a27d0a093bd3753483a34c9baccb61bf71f08b746c9b97

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack_cpu-0.29.0-py3-none-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 d231d930bf037d03563fcc95a24a566bd290ef78beaededc501cb2e19e810677
MD5 0e89be0b65012709bdb4c05efc301b40
BLAKE2b-256 299dee70bc17abce06dfe496690e5d790abf84a9c8013a55a8cb73783eb915ce

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack_cpu-0.29.0-py3-none-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 6deb7d4f5bd8b02e8a8266851c471fa0fda9bf5e5d8e72007db80149f4d876fb
MD5 f78a0d50f2e0f8b790532437be3d0390
BLAKE2b-256 0542fd18fead05c88d70065b0e3d9ba855c162be1cd473ffb2385f9e40603d10

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