From b4ef4725a76ae98e724c9e07b3810b6525f8c598 Mon Sep 17 00:00:00 2001 From: mhucka Date: Sun, 10 Aug 2025 01:58:38 +0000 Subject: [PATCH] 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})" ``` --- qsimcirq_tests/qsimcirq_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qsimcirq_tests/qsimcirq_test.py b/qsimcirq_tests/qsimcirq_test.py index 6c81298df..6e9847572 100644 --- a/qsimcirq_tests/qsimcirq_test.py +++ b/qsimcirq_tests/qsimcirq_test.py @@ -1045,7 +1045,7 @@ def steps(self): return [m for _, m in self._prob_op_pairs] def __str__(self): - return f"NoiseChannel({self._ops})" + return f"NoiseChannel({self._prob_op_pairs})" def __repr__(self): return str(self)