Skip to content

Commit

Permalink
Update ibm.py to enable execution on QPUs (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
salmma authored Jun 24, 2024
1 parent 40cb48a commit ae5e126
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytket/extensions/qiskit/backends/ibm.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,9 +619,9 @@ def get_result(self, handle: ResultHandle, **kwargs: KwargTypes) -> BackendResul
if self._monitor and job:
# job_monitor(job)
status = job.status()
while status.name not in ["DONE", "CANCELLED", "ERROR"]:
while status not in ["DONE", "CANCELLED", "ERROR"]:
status = job.status()
print("Job status is", status.name)
print("Job status is", status)
sleep(10)

res = job.result(timeout=kwargs.get("timeout", None))
Expand Down

0 comments on commit ae5e126

Please sign in to comment.