Qiskit / qiskit-ibm-provider

Qiskit Provider for accessing the IBM Quantum Services: Online Systems and Simulators
https://qiskit.org/ecosystem/ibm-provider/
Apache License 2.0
78 stars 68 forks source link

Unable to retrieve jobs from the retired device `manila` #837

Open adrianor opened 1 month ago

adrianor commented 1 month ago

Information

What is the current behavior?

I have a strange issue in retrieving jobs from the retired device manila from the jupyter notebook. I have two batches of jobs that I am working with. One batch I can access it without any problems but the id's of the other batch are unreachable. I honestly can't explain why this is the case, as it is the same device.

Steps to reproduce the problem

In both cases, I retrieve the jobs using

from qiskit import IBMQ
provider = IBMQ.load_account()
job_id =  <job_id>
retrieve_job = provider.backend.retrieve_job(job_id)

In the batch where this fails I obtain the error

(...)
IBMQBackendApiError: "Failed to get job cj56nj0l9m0cicsnbln0: '404 Client Error: Not Found for url: https://api.quantum.ibm.com/api/Network/ibm-q/Groups/open/Projects/main/Jobs/cj56nj0l9m0cicsnbln0/v/1. Job not found., Error code: 3250.'"

(If you require more output please let me know.)

I also tried the official suggestion

from qiskit_ibm_provider import IBMProvider
provider = IBMProvider(instance="ibm-q/open/main")
##provider = IBMProvider(instance="hub/group/project")

#If you want to retrieve a specific job you have the id for
job = provider.backend.retrieve_job('cjd6tm3qmesganhces60')

I suppose the first option for the provider is my case, I just wanted to try also the code as it is the webpage. In any case, I obtain a similar error message as before

RequestsApiError: '401 Client Error: Unauthorized for url: https://auth.quantum-computing.ibm.com/api/users/loginWithToken. Login failed., Error code: 3446.'

I should also note that the jobs exist, as I can see it in my ib quantum experience account.

What is the expected behavior?

It is expected that the same code can do the same job, in this case, retrieve jobs information from a certain device.

Suggested solutions

jwoehr commented 1 month ago

As indicated on the main page of this repo, qiskit-ibm-provider is deprecated. It appears to be out of maintenance, and thus it may not be aligned with recent changes to various backends, especially as regards retired backends. Note: I am not an IBM employee.