PennyLane-Braket Plugin

Release

1.1.0.post0

_images/pl-braket.png

The Amazon Braket Python SDK is an open source library that provides a framework to interact with quantum computing hardware devices and simulators through Amazon Braket.

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

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

Devices

This plugin provides two Braket devices for use with PennyLane:


While the local device helps with small-scale simulations and rapid prototyping, the remote device provides access different backends of the Amazon Braket service, such as high performance simulators and quantum hardware.

Tutorials

To see the PennyLane-Braket 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 'braket.local.qubit' or the 'braket.aws.qubit' device:

dev = qml.device('braket.XXX.qubit', [...])

Tutorials that showcase the Braket devices can be found on the PennyLane website and the Amazon Braket examples GitHub repository.