Skip to content

Commit b4ef472

Browse files
committed
Fix #854: change NoiseChannel.__str__ to use correct method
An inspection of the code of class `NoiseChannel` in `qsimcirq_tests/qsimcirq_tests.py` suggests that the most likely cause of error #854 is that the call to the `_ops` method should be instead to `_prob_op_pairs`, like this: ```python def __str__(self): return f"NoiseChannel({self._prob_op_pairs})" ```
1 parent 7932f78 commit b4ef472

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

qsimcirq_tests/qsimcirq_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ def steps(self):
10451045
return [m for _, m in self._prob_op_pairs]
10461046

10471047
def __str__(self):
1048-
return f"NoiseChannel({self._ops})"
1048+
return f"NoiseChannel({self._prob_op_pairs})"
10491049

10501050
def __repr__(self):
10511051
return str(self)

0 commit comments

Comments
 (0)