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-1.0.0.tar.gz (46.6 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-1.0.0-py3-none-win_amd64.whl (33.9 kB view details)

Uploaded Python 3Windows x86-64

pennylane_qrack_cpu-1.0.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-1.0.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-1.0.0-py3-none-macosx_15_0_x86_64.whl (991.2 kB view details)

Uploaded Python 3macOS 15.0+ x86-64

pennylane_qrack_cpu-1.0.0-py3-none-macosx_15_0_arm64.whl (950.5 kB view details)

Uploaded Python 3macOS 15.0+ ARM64

pennylane_qrack_cpu-1.0.0-py3-none-macosx_14_0_arm64.whl (957.4 kB view details)

Uploaded Python 3macOS 14.0+ ARM64

File details

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

File metadata

  • Download URL: pennylane_qrack_cpu-1.0.0.tar.gz
  • Upload date:
  • Size: 46.6 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-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d7304a5a09f55bb239b992ee337cc24f57ae731e8dce064907159b81e8451fec
MD5 d38ec833d59982af385e2744f8b0f987
BLAKE2b-256 6df23e0a02e143baf2124a1f8f22966c866cbdf1eec193124df11bff4c48312b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack_cpu-1.0.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 d7ebe564556fd97f895a2137df81f4f663c0c8b715f7016352cd6280c244134e
MD5 1d3a40937d0d56e51d912c731c68ea70
BLAKE2b-256 61f1335b7485b849721588f9606f44fad923d54f86e8186772eff8d521508a6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack_cpu-1.0.0-py3-none-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 6d30ec2b4b69488f0b0ed50cfae66eeeb66fe18fd35f9c432df0f4f98b7481f5
MD5 a9af460b50e0a4550e2457c0d88656e0
BLAKE2b-256 12d37046cde5f8b40eb1b575d0cb480332c4ed3b5ce6b69928a1cca09fceb70e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack_cpu-1.0.0-py3-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 293ca62bdf1784304dd5c0e5e7e9fbb48de4687e42a592e02636ecf1441433c3
MD5 c4f72e10b735597a88dc6474a6cff99f
BLAKE2b-256 43833576d8f9cf8806817510fb6a4b12739ddeeee6bd130d52d3a5bceb5f4f0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack_cpu-1.0.0-py3-none-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 f71e55bdc3a9e35f0953b93f4c024018eddad52b8d11b3901ee92756c8f3f5b3
MD5 96b062c8a0adeb39bd913190509b3892
BLAKE2b-256 91d73012b2bc3820f082764462161ba3fbd683f735d1190e89c9ec1caa095ee5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack_cpu-1.0.0-py3-none-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 5443b682fa9de64b698590b58bcf4d3b35fad03ba2ea7214d4c5d5baa7a50c0b
MD5 84ba3b5392ce2b9c21cf0c886992c7cf
BLAKE2b-256 c001b1d569fe4a3aa76e1f99513b8dfb012ea7717e7939187bfddf6869025693

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack_cpu-1.0.0-py3-none-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 e9b577ce762bb4324791fa139dc93c3f0ac07da150da5a0be866f53fe4093334
MD5 dc2b24e71d1dac55fdea3fe016cf6380
BLAKE2b-256 c42e7206313b0c5b1ed9f1f9a0bcfdc90e8866e6f4e3f972a3d78f4284075d0a

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