PennyLane Q# Plugin

Release

0.19.0

_images/puzzle_qsharp.png

The PennyLane Q# plugin integrates the Q# quantum computing framework with PennyLane’s quantum machine learning capabilities.

The Microsoft Quantum Development Kit is an open-source library for quantum programming using the .NET Q# quantum programming language. Resulting quantum programs can be executed using built in local simulators, or via the cloud-based Azure quantum simulator.

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

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

Devices

Currently, PennyLane-Q# provides one Q# device for PennyLane:


Tutorials

To see the PennyLane-Q# 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 'microsoft.QuantumSimulator':

dev = qml.device('microsoft.QuantumSimulator', wires=XXX)