PennyLane-ProjectQ Plugin




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.


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 '' device.