Skip to content

Commit

Permalink
Temporarily disable specialized job retrieval for IQMB backends (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
dexter2206 authored Apr 25, 2023
1 parent 8c7507d commit 26c4160
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions qbench/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
from typing import Sequence

from qiskit.providers import JobV1
from qiskit.providers.ibmq import IBMQBackend, IBMQJob

# from qiskit.providers.ibmq import IBMQBackend, IBMQJob


@singledispatch
Expand All @@ -18,6 +19,6 @@ def retrieve_jobs(backend, job_ids: Sequence[str]) -> Sequence[JobV1]:
return [backend.retrieve_job(job_id) for job_id in job_ids]


@retrieve_jobs.register
def _retrieve_jobs_from_ibmq(backend: IBMQBackend, job_ids: Sequence[str]) -> Sequence[IBMQJob]:
return backend.jobs(db_filter={"id": {"inq": job_ids}}, limit=len(job_ids))
# @retrieve_jobs.register
# def _retrieve_jobs_from_ibmq(backend: IBMQBackend, job_ids: Sequence[str]) -> Sequence[IBMQJob]:
# return backend.jobs(db_filter={"id": {"inq": job_ids}}, limit=len(job_ids))

0 comments on commit 26c4160

Please sign in to comment.