From 26c4160e98eb86f15dd16291f9f54f641a31f67a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konrad=20Ja=C5=82owiecki?= Date: Tue, 25 Apr 2023 21:15:54 +0200 Subject: [PATCH] Temporarily disable specialized job retrieval for IQMB backends (#48) --- qbench/jobs.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/qbench/jobs.py b/qbench/jobs.py index b118516..96e1591 100644 --- a/qbench/jobs.py +++ b/qbench/jobs.py @@ -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 @@ -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))