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
QX_CONFIG = {
"APItoken": "<my-token-here>",
"url":"https://quantumexperience.ng.bluemix.net/api"}
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?
PS:
api = IBMQuantumExperience(QX_API_TOKEN)
generates the same exception