The PennyLane Rigetti plugin allows different Rigetti devices to work with PennyLane — the wavefunction simulator, the Quantum Virtual Machine (QVM), and Quantum Processing Units (QPUs).
pyQuil is a Python library for quantum programming using the quantum instruction language (Quil) — resulting quantum programs can be executed using the Rigetti Forest SDK and Rigetti Quantum Cloud Services (QCS).
PennyLane is a cross-platform Python library for quantum machine learning, automatic differentiation, and optimization of hybrid quantum-classical computations.
The plugin documentation can be found here: https://docs.pennylane.ai/projects/rigetti.
Features
Provides four devices to be used with PennyLane: rigetti.numpy_wavefunction, rigetti.wavefunction, rigetti.qvm, and rigetti.qpu. These provide access to the pyQVM Numpy wavefunction simulator, pyQuil wavefunction simulator, quantum virtual machine (QVM), and quantum processing units (QPUs) respectively.
All provided devices support all core qubit PennyLane operations and observables.
Installation
PennyLane-Rigetti, as well as all required Python packages mentioned above, can be installed via pip:
$ python -m pip install pennylane-rigetti
Make sure you are using the Python 3 version of pip.
Alternatively, you can install PennyLane-Rigetti from the source code by navigating to the top-level directory and running
$ python setup.py install
Dependencies
PennyLane-Rigetti requires the following libraries be installed:
Python >=3.10
as well as 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.
Additionally, if you would like to compile the quantum instruction language (Quil) and run it locally using a quantum virtual machine (QVM) server, you will need to download and install the Forest software development kit (SDK):
Alternatively, you may sign up for Rigetti’s Quantum Cloud Services (QCS) which will allow you to compile your quantum code and run on real QPUs. Note that this requires a valid QCS account and the QCS CLI:
Tests
To test that the PennyLane-Rigetti plugin is working correctly you can run
$ make test
in the source folder.
Documentation
To build the HTML documentation, go to the top-level directory and run:
$ make docs
The documentation can then be found in the doc/_build/html/ directory.
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.
Support
Source Code: https://github.com/PennyLaneAI/pennylane-rigetti
Issue Tracker: https://github.com/PennyLaneAI/pennylane-rigetti/issues
PennyLane Forum: https://discuss.pennylane.ai
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
PennyLane-Rigetti is free and open source, released under the BSD 3-Clause license.
Metadata
Release files for PennyLane-Rigetti 0.40.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| PennyLane_Rigetti-0.40.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / PennyLane_Rigetti-0.40.0-py3-none-any.whl
| Download URL | PennyLane_Rigetti-0.40.0-py3-none-any.whl |
|---|---|
| Size | 27.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b13272ddd40ff1bd9b9742553898db7fef0b661ca4bd040ce4bc9ba8b713621
|
|
BLAKE2b-256 checksum How to use checksums |
992a1125d90276fbace94d290642de5f202ea797958dc44c35e0db93b9b8d5cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Security for PennyLane-Rigetti 0.40.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.