Skip to content

Commit

Permalink
Reenable QIR submission tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-alec committed Oct 18, 2023
1 parent 673a020 commit 9588c0c
Showing 1 changed file with 13 additions and 48 deletions.
61 changes: 13 additions & 48 deletions tests/integration/backend_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@


@pytest.mark.parametrize("authenticated_quum_backend", [None], indirect=True)
@pytest.mark.parametrize("language", [Language.QASM]) # FIXME add QIR, #236
@pytest.mark.parametrize("language", [Language.QASM, Language.QIR])
@pytest.mark.timeout(120)
def test_quantinuum(
authenticated_quum_backend: QuantinuumBackend, language: Language
Expand Down Expand Up @@ -142,7 +142,7 @@ def test_max_classical_register(
@pytest.mark.parametrize(
"authenticated_quum_backend", [{"device_name": "H1-1SC"}], indirect=True
)
@pytest.mark.parametrize("language", [Language.QASM]) # FIXME add QIR, #236
@pytest.mark.parametrize("language", [Language.QASM, Language.QIR])
@pytest.mark.timeout(120)
def test_bell(
authenticated_quum_backend: QuantinuumBackend, language: Language
Expand All @@ -164,10 +164,7 @@ def test_bell(
[{"device_name": "H1-1SC", "label": "test 3"}],
indirect=True,
)
@pytest.mark.parametrize(
"language",
[Language.QASM],
) # FIXME add QIR, #236
@pytest.mark.parametrize("language", [Language.QASM, Language.QIR])
@pytest.mark.timeout(120)
def test_multireg(
authenticated_quum_backend: QuantinuumBackend, language: Language
Expand Down Expand Up @@ -350,10 +347,7 @@ def test_cost_estimate(
[{"device_name": name} for name in pytest.ALL_SYNTAX_CHECKER_NAMES], # type: ignore
indirect=True,
)
@pytest.mark.parametrize(
"language",
[Language.QASM],
) # FIXME add QIR, #236
@pytest.mark.parametrize("language", [Language.QASM, Language.QIR])
@pytest.mark.timeout(120)
def test_classical(
authenticated_quum_backend: QuantinuumBackend, language: Language
Expand Down Expand Up @@ -406,7 +400,7 @@ def test_classical(
[{"device_name": name} for name in pytest.ALL_SYNTAX_CHECKER_NAMES], # type: ignore
indirect=True,
)
@pytest.mark.parametrize("language", [Language.QASM]) # FIXME add QIR, #236
@pytest.mark.parametrize("language", [Language.QASM, Language.QIR])
@pytest.mark.timeout(120)
def test_postprocess(
authenticated_quum_backend: QuantinuumBackend, language: Language
Expand Down Expand Up @@ -483,14 +477,7 @@ def test_shots_bits_edgecases(n_shots, n_bits) -> None:
@pytest.mark.parametrize(
"authenticated_quum_backend", [{"device_name": "H1-1E"}], indirect=True
)
@pytest.mark.parametrize(
"language",
[
Language.QASM,
# https://github.com/CQCL/pytket-quantinuum/issues/236
# Language.QIR,
],
)
@pytest.mark.parametrize("language", [Language.QASM, Language.QIR])
@pytest.mark.timeout(120)
def test_simulator(
authenticated_quum_handler: QuantinuumAPI,
Expand Down Expand Up @@ -584,7 +571,7 @@ def test_batching(
[{"device_name": name} for name in pytest.ALL_SYNTAX_CHECKER_NAMES], # type: ignore
indirect=True,
)
@pytest.mark.parametrize("language", [Language.QASM]) # FIXME add QIR, #236
@pytest.mark.parametrize("language", [Language.QASM, Language.QIR])
@pytest.mark.timeout(120)
def test_submission_with_group(
authenticated_quum_backend: QuantinuumBackend, language: Language
Expand All @@ -609,7 +596,7 @@ def test_submission_with_group(
@pytest.mark.parametrize(
"authenticated_quum_backend", [{"device_name": "H1-1SC"}], indirect=True
)
@pytest.mark.parametrize("language", [Language.QASM]) # FIXME add QIR, #236
@pytest.mark.parametrize("language", [Language.QASM, Language.QIR])
@pytest.mark.timeout(120)
def test_zzphase(
authenticated_quum_backend: QuantinuumBackend, language: Language
Expand Down Expand Up @@ -793,7 +780,7 @@ def test_submit_qasm(
[{"device_name": name} for name in pytest.ALL_SYNTAX_CHECKER_NAMES], # type: ignore
indirect=True,
)
@pytest.mark.parametrize("language", [Language.QASM]) # FIXME add QIR, #236
@pytest.mark.parametrize("language", [Language.QASM, Language.QIR])
@pytest.mark.timeout(120)
def test_options(
authenticated_quum_backend: QuantinuumBackend, language: Language
Expand All @@ -815,7 +802,7 @@ def test_options(
[{"device_name": name} for name in pytest.ALL_SYNTAX_CHECKER_NAMES], # type: ignore
indirect=True,
)
@pytest.mark.parametrize("language", [Language.QASM]) # FIXME add QIR, #236
@pytest.mark.parametrize("language", [Language.QASM, Language.QIR])
@pytest.mark.timeout(120)
def test_no_opt(
authenticated_quum_backend: QuantinuumBackend, language: Language
Expand Down Expand Up @@ -914,7 +901,6 @@ def test_qir_submission(authenticated_quum_backend: QuantinuumBackend) -> None:
assert len(r.get_shots()) == 10


@pytest.mark.skipif(True, reason=REASON) # FIXME add QIR, #236
@pytest.mark.parametrize(
"authenticated_quum_backend", [{"device_name": "H1-1SC"}], indirect=True
)
Expand Down Expand Up @@ -1006,14 +992,7 @@ def test_scratch_removal(authenticated_quum_backend: QuantinuumBackend) -> None:
@pytest.mark.parametrize(
"authenticated_quum_backend", [{"device_name": "H1-1E"}], indirect=True
)
@pytest.mark.parametrize(
"language",
[
Language.QASM,
# https://github.com/CQCL/pytket-quantinuum/issues/236
# Language.QIR,
],
)
@pytest.mark.parametrize("language", [Language.QASM, Language.QIR])
@pytest.mark.timeout(120)
def test_wasm_collatz(
authenticated_quum_backend: QuantinuumBackend, language: Language
Expand Down Expand Up @@ -1064,14 +1043,7 @@ def collatz(n: int) -> int:
@pytest.mark.parametrize(
"authenticated_quum_backend", [{"device_name": "H1-1E"}], indirect=True
)
@pytest.mark.parametrize(
"language",
[
Language.QASM,
# https://github.com/CQCL/pytket-quantinuum/issues/236
# Language.QIR,
],
)
@pytest.mark.parametrize("language", [Language.QASM, Language.QIR])
@pytest.mark.timeout(120)
def test_wasm_state(
authenticated_quum_backend: QuantinuumBackend, language: Language
Expand Down Expand Up @@ -1120,14 +1092,7 @@ def to_int(C: np.ndarray) -> int:
@pytest.mark.parametrize(
"authenticated_quum_backend", [{"device_name": "H1-1E"}], indirect=True
)
@pytest.mark.parametrize(
"language",
[
Language.QASM,
# https://github.com/CQCL/pytket-quantinuum/issues/236
# Language.QIR,
],
)
@pytest.mark.parametrize("language", [Language.QASM, Language.QIR])
@pytest.mark.timeout(120)
def test_wasm_multivalue(
authenticated_quum_backend: QuantinuumBackend, language: Language
Expand Down

0 comments on commit 9588c0c

Please sign in to comment.