MCPcopy Create free account
hub / github.com/GitsSaikat/PyGen / _is_error_pattern

Method _is_error_pattern

data/QEC/reference_code.py:134–136  ·  view source on GitHub ↗

Check if syndrome pattern indicates an error

(self, syndrome: List[int])

Source from the content-addressed store, hash-verified

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"""

Callers 1

detect_errorsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected