The IBM device¶
This device uses ProjectQ’s interfaces with the IBM Quantum Experience backend, which includes a simulator and access to the hardware.
For this you need to instantiate a 'projectq.ibm'
device by giving your IBM Quantum Experience username and password:
import pennylane as qml
dev = qml.device('projectq.ibm', wires=2, user="XXX", password="XXX")
Storing your credentials¶
In order to avoid accidentally publishing your credentials, you should specify them via the PennyLane configuration file by adding a section such as
[projectq.global]
[projectq.ibm]
user = "XXX"
password = "XXX"
devices/ibm
Download Python script
Download Notebook
View on GitHub