From 2719a9b8a0b8e63fd42d180c37b237911f3214d0 Mon Sep 17 00:00:00 2001 From: Tom Peham Date: Mon, 26 Aug 2024 19:16:17 +0200 Subject: [PATCH] Remove resource-intensive tests (#263) ## Description Overlooked a test in the last PR. Opening a new PR. ## Checklist: - [x] The pull request only contains commits that are related to it. - [x] I have added appropriate tests and documentation. - [x] I have made sure that all CI jobs on GitHub pass. - [x] The pull request introduces no new warnings and follows the project's style guidelines. --- test/python/ft_stateprep/test_stateprep.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/python/ft_stateprep/test_stateprep.py b/test/python/ft_stateprep/test_stateprep.py index 4b530438..2bc07156 100644 --- a/test/python/ft_stateprep/test_stateprep.py +++ b/test/python/ft_stateprep/test_stateprep.py @@ -150,11 +150,11 @@ def test_depth_optimal_prep_consistent(code: CSSCode, request) -> None: # type: assert eq_span(np.vstack((code.Hz, code.Lz)), z) # type: ignore[arg-type] -@pytest.mark.parametrize("code", ["steane_code", "surface_code"]) +@pytest.mark.parametrize("code", ["steane_code"]) def test_plus_state_gate_optimal(code: CSSCode, request) -> None: # type: ignore[no-untyped-def] """Test synthesis of the plus state.""" code = request.getfixturevalue(code) - sp_circ_plus = gate_optimal_prep_circuit(code, max_timeout=5, zero_state=False) + sp_circ_plus = gate_optimal_prep_circuit(code, max_timeout=3, zero_state=False) assert sp_circ_plus is not None assert not sp_circ_plus.zero_state