I am just getting started with Qiskit and IBM Quantum Experience, so please forgive my newby question.

I have a IBM Quantum Experience account and I generated an API token.

I used the generated token in the following tiny Python3 program:

import qiskit
  "APItoken": "<my-token-here>",
qiskit.register(QX_CONFIG['APItoken'], QX_CONFIG['url'])

When I run this program qiskit.register throws the following exception:

Exception has occurred: qiskit._qiskiterror.QISKitError
"Couldn't instantiate provider! Error: Couldn't connect to IBMQuantumExperience server: error during login: HTTPSConnectionPool(host='quantumexperience.ng.bluemix.net', port=443): Max retries exceeded with url: /api/users/loginWithToken (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:645)'),))"

The API endpoint is reachable:

$ curl https://quantumexperience.ng.bluemix.net/api

{"error":{"status":400,"message":"Generic error","code":"GENERIC_ERROR"}}

Any suggestions on how to fix this issue?


api = IBMQuantumExperience(QX_API_TOKEN)

generates the same exception

  • $\begingroup$ That should work if you provided the right API token and url. Could you try the code from : github.com/Qiskit/qiskit-tutorial/blob/master/hello_world/… $\endgroup$
    – cnada
    Oct 1 '18 at 22:26
  • 1
    $\begingroup$ It seems like you are doing things right. Have you tried again? The new 0.6 version of Qiskit has new options for registration, so perhaps those could also help you stave off the error. $\endgroup$ Oct 4 '18 at 7:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.