SDK integrations
PennyLane
Use QXel as a PennyLane device for hybrid quantum-classical workloads such as variational algorithms.
Install PennyLane and the Braket plugin:
bash
pip install pennylane amazon-braket-pennylane-pluginCreate a device on the local Braket qubit backend with backend="QXel-sv", then decorate a QNode:
python
import pennylane as qml
qxel = qml.device("braket.local.qubit", wires=2, backend="QXel-sv")
@qml.qnode(qxel)
def circuit():
qml.Hadamard(wires=0)
qml.CNOT(wires=[0, 1])
return qml.probs(wires=[0, 1])
print(circuit())Output
[0.5 0. 0. 0.5]