Using Pennylane with IBM

Hello, I’m trying to use qml.device with IBM device through the following code

IBMQ.save_account("MY_IBMQ_TOKEN")
qiskit.IBMQ.load_account()
dev_ibmq = qml.device("qiskit.ibmq", wires=qubits)

But I get the following error :

IBMAccountError: 'No active IBM Q account, and no IBM Q token provided.'

Why does qml.device can’t find my account here although I saved it ?

Hey @Delon!

Are you following what’s outlined here in the documentation?

Well, my bad it seems to be working now…

1 Like

No worries at all! Glad I could help :smiley: