0

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

Mahesh Waghmare
  • 1,124
  • 10
  • 22
Aer
  • 3
  • 1

1 Answers1

0

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()

met927
  • 301
  • 4
  • 8
  • I upgrade qiskit-ibmq-provider, but the annaconda prompt told me that the version is incompatible : ERROR: qiskit 0.13.0 has requirement qiskit-ibmq-provider==0.3.3, but you'll have qiskit-ibmq-provider 0.4.3 which is incompatible. Installing collected packages: qiskit-ibmq-provider Found existing installation: qiskit-ibmq-provider 0.3.3 Uninstalling qiskit-ibmq-provider-0.3.3: Successfully uninstalled qiskit-ibmq-provider-0.3.3 Successfully installed qiskit-ibmq-provider-0.4.3 – Aer Nov 22 '19 at 12:23
  • So does it work or does it fail when you try to use it? – met927 Nov 22 '19 at 13:14