PennyLane-Forest Plugin


The PennyLane Forest plugin allows different Rigetti devices to work with PennyLane — the wavefunction simulator, and the Quantum Virtual Machine (QVM).

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 the Rigetti QCS.

PennyLane is a cross-platform Python library for quantum machine learning, automatic differentiation, and optimization of hybrid quantum-classical computations.

Once Pennylane-Forest is installed, the provided Forest devices can be accessed straight away in PennyLane, without the need to import any additional packages.


Check out these demos to see the PennyLane-Forest plugin in action:

You can also try it out using any of the qubit based demos from the PennyLane documentation, for example the tutorial on qubit rotation. Simply replace 'default.qubit' with a 'forest.XXX' device if you have an API key for hardware access.

dev = qml.device('forest.XXX', wires=XXX)