Commit b4ef472
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1045 | 1045 | | |
1046 | 1046 | | |
1047 | 1047 | | |
1048 | | - | |
| 1048 | + | |
1049 | 1049 | | |
1050 | 1050 | | |
1051 | 1051 | | |
| |||
0 commit comments