8

I am trying to run some code using qiskit, but I get the error message, that I have run out of necessary Experiment Units. I tried to remove pending jobs using the API with the following code

for job in api.get_jobs():
    if job["status"] == "RUNNING":
    api.cancel_job(id_job=job["id"], hub=None, group=None, project=None,
        access_token=None, user_id=None)

but it didn't work.

Am I even going in the right direction or is there some other way to retrieve these used Experiment Units? I have read, that they normally are given back just after the execution of program is finished or after 24 hours (depending on which one ends earlier), but I am waiting now for over than two days and nothing happens.

James Wootton
  • 11,700
  • 1
  • 35
  • 74
brzepkowski
  • 1,069
  • 7
  • 19

1 Answers1

6

Cancel Job is only available for the IBM Q Network, not for IBM Q Experience: https://github.com/QISKit/qiskit-api-py/blob/master/IBMQuantumExperience/IBMQuantumExperience.py#L795

In the next weeks, we hope that it is available for IBM Q Experience too.

Regarding to the credits... we are analyzing the problem. We have refilled your credits.

If you have any other issue, please post in qiskit (https://qiskit.org/) slack public channel :).

pacom
  • 76
  • 3