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

This version

1.0.0

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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3manylinux: glibc 2.39+ x86-64

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

Uploaded Python 3manylinux: glibc 2.35+ x86-64

pennylane_qrack-1.0.0-py3-none-macosx_15_0_x86_64.whl (991.1 kB view details)

Uploaded Python 3macOS 15.0+ x86-64

pennylane_qrack-1.0.0-py3-none-macosx_15_0_arm64.whl (950.4 kB view details)

Uploaded Python 3macOS 15.0+ ARM64

pennylane_qrack-1.0.0-py3-none-macosx_14_0_arm64.whl (957.3 kB view details)

Uploaded Python 3macOS 14.0+ ARM64

File details

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

File metadata

  • Download URL: pennylane_qrack-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-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9f8ef6e571681c1c63730e074be956f9eceb37e1d1678dcfae42628e605c78de
MD5 e38d1b840cd03200a47036bed23c3f5f
BLAKE2b-256 2eb318ab5452c3d26a6b9e7c2aadd2668e6f0e0c8225ace6771b05d3aed25d4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack-1.0.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 55088cca32a4b3ef7dc14e32bcf06ca2810b0becc7df6a90e50bd8b2ccbf9cd9
MD5 b812516b0e6e1fc9b2c288c40583cdb6
BLAKE2b-256 ce80fb69950368924718655af4a2f96b711d7b7410cb5896d0480ce437a75e59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack-1.0.0-py3-none-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 bb5025691501b5f5dfe7af1cd06851fb3be29013cb864903195374051325a96b
MD5 e0ddd686f1ca9204512366d99d97805e
BLAKE2b-256 2e77201b53abce3127a6740d06544a35e197eb256e08227b3dcc6ab820ab15ac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack-1.0.0-py3-none-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 e8cb92efdbc0aec1d5b980f9b7a2a832c62624d23ca1514dd3ebcf893bb11cfe
MD5 2ac697ecd22c17afe79168d7ad03228b
BLAKE2b-256 1eee1897d9b79db7ce12ba41004464ac1467e9c06b907557d62df979de4af029

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack-1.0.0-py3-none-macosx_15_0_x86_64.whl
Algorithm Hash digest
SHA256 bc9452ad2d7b6097a88bc95e64e21da9776f988371b55361893ae4c618b54cd4
MD5 cbb39cd635b7132c8533585b49db1b86
BLAKE2b-256 881b771942ccf01fdbf82bd8d2cd5bdd52c53b5f056f7e82602f579c59040317

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack-1.0.0-py3-none-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 b28011b3a783d79e47cd9e7811583360913a1d0df41ee7f3d71f3b1eb1f442c2
MD5 92d65cbfbbc4524c7cb28b447cf608d1
BLAKE2b-256 8b7cbf48ab64172d09980714dd2efe1ab8bd0deb1bec48c817587a841a5b9759

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pennylane_qrack-1.0.0-py3-none-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 49039a13cce574ab62ca4bf1a9ca57f80c2f19b8dbba64250ddfc52939109f35
MD5 c9376e4d16d306b281e6a150262f9c9a
BLAKE2b-256 c1dc0291eaa0b0dbeb588b29ac00d480854d91cf3229cda1b89d0bd4b72d6137

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