diff --git a/pyproject.toml b/pyproject.toml index fe9066e1..f98951e2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ build-backend = "setuptools.build_meta" [project] name = "quantum-pecos" -version = "0.5.0.dev7" +version = "0.5.0.dev8" authors = [ {name = "The PECOS Developers"}, ] @@ -28,7 +28,7 @@ requires-python = ">=3.10" license = { file = "LICENSE"} keywords = ["quantum", "QEC", "simulation", "PECOS"] dependencies = [ - "phir~=0.2.1", + "phir~=0.3.0", "numpy>=1.15.0,<2.0", "scipy>=1.1.0,<2.0", "networkx>=2.1.0,<3.0", diff --git a/python/pecos/decoders/mwpm2d/mwpm2d.py b/python/pecos/decoders/mwpm2d/mwpm2d.py index a8774e3d..03fc5298 100644 --- a/python/pecos/decoders/mwpm2d/mwpm2d.py +++ b/python/pecos/decoders/mwpm2d/mwpm2d.py @@ -48,7 +48,7 @@ def decode(self, measurements, error_params=None): logic_range identifies over what part of self.logic we are decoding over. """ - syndromes = measurements.simplified(True) + syndromes = set(measurements.simplified(True)) tuple_key = frozenset(syndromes) diff --git a/requirements.txt b/requirements.txt index f2cf9141..5ed3348b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,7 +17,7 @@ mdurl==0.1.2 networkx==2.8.8 numpy==1.26.3 packaging==23.2 -phir==0.2.1 +phir==0.3.0 pillow==10.2.0 pluggy==1.4.0 pydantic==2.6.0 diff --git a/tests/integration/test_phir.py b/tests/integration/test_phir.py index 3bae3d8c..b2a3d174 100644 --- a/tests/integration/test_phir.py +++ b/tests/integration/test_phir.py @@ -294,7 +294,6 @@ def test_bell_qparallel_cliff_barrier(): results (with Clifford circuits and stabilizer sim).""" interp = PHIRClassicalInterpreter() - interp.phir_validate = False results = HybridEngine(qsim="stabilizer", cinterp=interp).run( program=json.load(Path.open(this_dir / "phir" / "bell_qparallel_cliff_barrier.json")), @@ -310,7 +309,6 @@ def test_bell_qparallel_cliff_ifbarrier(): returns expected results (with Clifford circuits and stabilizer sim).""" interp = PHIRClassicalInterpreter() - interp.phir_validate = False results = HybridEngine(qsim="stabilizer", cinterp=interp).run( program=json.load(Path.open(this_dir / "phir" / "bell_qparallel_cliff_ifbarrier.json")),