PennyLane-ProjectQ Plugin

Release

0.34.0

Warning

This plugin will not be supported in newer versions of PennyLane. It is compatible with versions of PennyLane up to and including 0.34.

_images/puzzle_pq.png

The PennyLane-ProjectQ plugin integrates the ProjectQ quantum computing library with PennyLane’s quantum machine learning capabilities.

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

ProjectQ is an open-source compilation framework capable of targeting various types of hardware and a high-performance quantum computer simulator with emulation capabilities, and various compiler plug-ins.

This PennyLane plugin allows to use both the software and hardware backends of ProjectQ as devices for PennyLane.

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

Tutorials

To see the PennyLane-ProjectQ plugin in action, you can use any of the qubit based demos from the PennyLane documentation, for example the tutorial on qubit rotation, and simply replace 'default.qubit' with any of the available ProjectQ devices, such as 'projectq.simulator':

dev = qml.device('projectq.simulator', wires=XXX)

You can also try to run tutorials, such as the qubit rotation tutorial, on actual quantum hardware by using the 'projectq.ibm' device.