From e5edfc8f47445c34c6f50f9a941315983830d16f Mon Sep 17 00:00:00 2001 From: Thierry Martinez Date: Sun, 8 Mar 2026 12:06:30 +0100 Subject: [PATCH 1/3] Compatibility between `qiskit-aer` and Python 3.14 `qiskit-aer` now supports Python 3.14: https://github.com/Qiskit/qiskit-aer/issues/2378 --- noxfile.py | 6 +----- requirements-dev.txt | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/noxfile.py b/noxfile.py index 2cbd79e7c..bdeed54df 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")), ), 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 45fbf98da..8004a19ec 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 From c5913af869d79495d79c990d15f561ee416eb858 Mon Sep 17 00:00:00 2001 From: Thierry Martinez Date: Sun, 8 Mar 2026 12:28:28 +0100 Subject: [PATCH 2/3] Fix non-determinism in `test_random_branch_selector_without_pr_calc` --- tests/test_branch_selector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_branch_selector.py b/tests/test_branch_selector.py index 689a98b28..db76233bc 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 From bb74c6168689797593b3eb833ab8205f046ce04d Mon Sep 17 00:00:00 2001 From: Thierry Martinez Date: Sun, 8 Mar 2026 19:03:17 +0100 Subject: [PATCH 3/3] Branch for `graphix-symbolic` --- noxfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noxfile.py b/noxfile.py index bdeed54df..087443c92 100644 --- a/noxfile.py +++ b/noxfile.py @@ -112,7 +112,7 @@ class ReverseDependency: ReverseDependency( # "https://github.com/TeamGraphix/graphix-symbolic", "https://github.com/thierry-martinez/graphix-symbolic", - branch="fix/graphix_220", + branch="python_314", ), ReverseDependency("https://github.com/TeamGraphix/graphix-qasm-parser", branch="fix_angles"), ReverseDependency(