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


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

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

Uploaded Python 3Windows x86-64

pennylane_qrack-0.29.0-py3-none-manylinux_2_39_x86_64.whl (1.8 MB view details)

Uploaded Python 3manylinux: glibc 2.39+ x86-64

pennylane_qrack-0.29.0-py3-none-manylinux_2_35_x86_64.whl (1.8 MB view details)

Uploaded Python 3manylinux: glibc 2.35+ x86-64

pennylane_qrack-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-0.29.0-py3-none-macosx_15_0_arm64.whl (951.0 kB view details)

Uploaded Python 3macOS 15.0+ ARM64

pennylane_qrack-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-0.29.0.tar.gz.

File metadata

  • Download URL: pennylane_qrack-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-0.29.0.tar.gz
Algorithm Hash digest
SHA256 76b3a5bd3b6bfe139318143497b36e516ddaf6c576b4f9142301ef2544727966
MD5 546f9a7eeeeeaebea76ee36def9c9ec7
BLAKE2b-256 0eef439ae6bf3ae0ae50da16f1bc0e312394d40d197d1a0e4c71cd6eab3fb29a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack-0.29.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 f79850d856b0b3cb5cf86d3f3f4925743c96f2d027c004cae430b45f70e0b53d
MD5 f148106ac63ea0ca7c4794b3020e2349
BLAKE2b-256 83a6e4746ab143c1b61745fd92cf19333022ebb3d255b3410a53cbc972539509

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack-0.29.0-py3-none-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 7b5468d8267343356de72c2f34bb3c36c221f28d6343d4cc8196d0757a877be1
MD5 f9073da109d16f3bcd45816b24f8059c
BLAKE2b-256 cd80084a1022c9b05997bc7b5a44ffac31696bbe3d2640f38cb0ec235a730116

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack-0.29.0-py3-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 3d853d0de681f77b02986c875c02f225377d6a82362b5807459c6cbb1e18d253
MD5 9eee8b622f4e411f8bf7baabb129cce8
BLAKE2b-256 83939d3116248e4e77674bb21da4744f85a1d466d3c93f71e8cc1828777cb805

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack-0.29.0-py3-none-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 6bf046c99df1c102ced49c0c64a754b23efe5c7413e106b7006dd14d372c3f56
MD5 aa2ee399c98fae7e2f7cd1e256b91abd
BLAKE2b-256 e674fb98f6e80835cf5979f9604ef45e54b31ea329b0fd3613890290cc64ea24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack-0.29.0-py3-none-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 9eea304c699fdbf7375ecf9fd34503f61e2b3a18a5c442bd291f2850eb52dcc2
MD5 6677a50de3a3aeacba355ad5aa0e12ca
BLAKE2b-256 6fc6143e5fc06b3d6312b8b925bcdd4f3c8694bb27375b8700a88210137fa951

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack-0.29.0-py3-none-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 089e8cecc39d48a13bcb5a503464a6e781e829524a397a8d8f65834b261a22b2
MD5 562f822473e599a32e9ed5d6e406aad0
BLAKE2b-256 1f87f9cef5114a8082e497485cc99f47314a78fc89854ea5d9577973a5306a3d

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