Skip to content

Commit

Permalink
Bumping phir req (#39)
Browse files Browse the repository at this point in the history
* updating requirements to phir ~= 0.3.0

* Fixes rare test error

* Bumping version to 0.5.0.dev8 and updating requirements.txt
  • Loading branch information
qciaran committed Feb 1, 2024
1 parent fb01d5c commit ad8f9da
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
]
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion python/pecos/decoders/mwpm2d/mwpm2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions tests/integration/test_phir.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
Expand All @@ -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")),
Expand Down

0 comments on commit ad8f9da

Please sign in to comment.