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
6 changes: 5 additions & 1 deletion checks/coverage_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@
import pytest_

if __name__ == "__main__":
# The coverage check only runs *.py tests, never notebooks, so the nbmake plugin is pure
# overhead here; disabling it saves ~0.7s of pytest startup in each modular-coverage subprocess.
# "-pno:nbmake" is the attached spelling of "-p no:nbmake"; the separate "no:nbmake" token would
# otherwise be parsed as a positional filename by checks_superstaq's argument parser.
sys.exit(
checks_superstaq.coverage_.run(
*sys.argv[1:], "--modular", "--sysmon", exclude=pytest_.EXCLUDE
*sys.argv[1:], "--modular", "--sysmon", "-pno:nbmake", exclude=pytest_.EXCLUDE
)
)
3 changes: 2 additions & 1 deletion src/qldpc/circuits/memory/alpha_syndrome_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
circuits.DepolarizingNoiseModel(0.001),
iters_per_step=3,
shots_per_iter=1,
verbose=False,
)


Expand All @@ -43,7 +44,7 @@ def test_alpha_syndrome(pytestconfig: pytest.Config) -> None:
assert alpha_syndrome_is_valid(codes.ToricCode(2, rotated=True))
assert alpha_syndrome_is_valid(codes.SurfaceCode(2, rotated=True))

code_a = codes.ClassicalCode.random(5, 3, seed=seed)
code_a = codes.ClassicalCode.random(3, 2, seed=seed)
code_b = codes.ClassicalCode.random(3, 2, seed=seed + 1)
assert alpha_syndrome_is_valid(codes.HGPCode(code_a, code_b))

Expand Down