Skip to content

Commit

Permalink
Introduce delay to job submission to prevent session being closed.
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-alec committed Nov 14, 2023
1 parent 6af29bc commit 8484ce0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/backend_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import json
import os
from collections import Counter
from time import sleep
from typing import Dict, cast
from warnings import warn
import math
Expand Down Expand Up @@ -1090,6 +1091,7 @@ def test_postprocess(lagos_backend: IBMQBackend) -> None:
c = Circuit(2, 2)
c.SX(0).SX(1).CX(0, 1).measure_all()
c = b.get_compiled_circuit(c)
sleep(10)
h = b.process_circuit(c, n_shots=10, postprocess=True)
ppcirc = Circuit.from_dict(json.loads(cast(str, h[3])))
ppcmds = ppcirc.get_commands()
Expand Down

0 comments on commit 8484ce0

Please sign in to comment.