PennyLane-Cirq Plugin




The PennyLane-Cirq plugin integrates the Cirq quantum computing framework 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.

Cirq is a software library for quantum computing.

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


To see the PennyLane-Cirq 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 the 'cirq.simulator' device:

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