Search code examples
qiskit

How to connect to IBMQ from Qiskit?


I have a problem with connecting on IBMQ from jupyter, by typing :

from qiskit import IBMQ
IBMQ.save_account('Token')
IBMQ.load_account()

i tried many different code but nothing worked. I uninstalled Qiskit, then i reinstall it and it still don't work.

If you have an idea of what is happening, please tell me


Solution

  • Please try running IBMQ.delete_account() to remove any old/incorrect credentials that may have accidentally got stored. Then check you have the most up to date versions of all the qiskit packages, especially IBM Q provider which should be on 0.4.1. If the packages need updating run pip install --upgrade qiskit.

    Once this has finished, run IBMQ.save_account(token) to save the credentials again. After this you should be able to run IBMQ.load_account()