Check if syndrome pattern indicates an error
(self, syndrome: List[int])
| 132 | raise |
| 133 | |
| 134 | def _is_error_pattern(self, syndrome: List[int]) -> bool: |
| 135 | """Check if syndrome pattern indicates an error""" |
| 136 | return any(syndrome) |
| 137 | |
| 138 | def _locate_error(self, syndrome: List[int]) -> List[int]: |
| 139 | """Locate qubits affected by the error""" |