Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
],
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions tests/test_branch_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down