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.
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.
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
dev = qml.device('braket.XXX.qubit', [...])