diff --git a/noxfile.py b/noxfile.py index 2cbd79e7..087443c9 100644 --- a/noxfile.py +++ b/noxfile.py @@ -108,26 +108,22 @@ class ReverseDependency: ReverseDependency( "https://github.com/thierry-martinez/graphix-stim-backend", branch="fix_graphix423", - version_constraint=VersionRange(upper=Version("3.14")), ), ReverseDependency( # "https://github.com/TeamGraphix/graphix-symbolic", "https://github.com/thierry-martinez/graphix-symbolic", - branch="fix/graphix_220", - version_constraint=VersionRange(upper=Version("3.14")), + branch="python_314", ), ReverseDependency("https://github.com/TeamGraphix/graphix-qasm-parser", branch="fix_angles"), ReverseDependency( "https://github.com/thierry-martinez/veriphix", branch="graphix_181", - version_constraint=VersionRange(upper=Version("3.14")), doctest_modules=False, initialization=lambda session: session.run("python", "-m", "veriphix.sampling_circuits.experiments"), ), ReverseDependency( "https://github.com/thierry-martinez/graphix-ibmq", - branch="fix/graphix_423", - version_constraint=VersionRange(upper=Version("3.14")), + branch="python_314", doctest_modules=False, ), ], diff --git a/requirements-dev.txt b/requirements-dev.txt index 45fbf98d..8004a19e 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -23,7 +23,7 @@ pytest-mpl # Optional dependencies qiskit>=1.0 qiskit_qasm3_import -qiskit-aer; python_version < "3.14" +qiskit-aer openqasm-parser>=3.1.0 graphix-qasm-parser>=0.1.1 diff --git a/tests/test_branch_selector.py b/tests/test_branch_selector.py index 689a98b2..db76233b 100644 --- a/tests/test_branch_selector.py +++ b/tests/test_branch_selector.py @@ -95,14 +95,14 @@ def test_random_branch_selector(fx_rng: Generator, backend: _BackendLiteral) -> "tensornetwork", ], ) -def test_random_branch_selector_without_pr_calc(backend: _BackendLiteral) -> None: +def test_random_branch_selector_without_pr_calc(fx_rng: Generator, backend: _BackendLiteral) -> None: branch_selector = RandomBranchSelector(pr_calc=False) # Pattern that measures 0 on qubit 0 with probability > 0.999999999, to avoid numerical errors when exploring impossible branches. pattern = Pattern(cmds=[N(0), M(0, Measurement.XY(1e-5))]) nb_outcome_1 = 0 for _ in range(NB_ROUNDS): measure_method = DefaultMeasureMethod() - pattern.simulate_pattern(backend, branch_selector=branch_selector, measure_method=measure_method) + pattern.simulate_pattern(backend, branch_selector=branch_selector, measure_method=measure_method, rng=fx_rng) if measure_method.results[0]: nb_outcome_1 += 1 assert abs(nb_outcome_1 - NB_ROUNDS / 2) < NB_ROUNDS / 5