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

Method _locate_error

data/QEC/reference_code.py:138–141  ·  view source on GitHub ↗

Locate qubits affected by the error

(self, syndrome: List[int])

Source from the content-addressed store, hash-verified

136 return any(syndrome)
137
138 def _locate_error(self, syndrome: List[int]) -> List[int]:
139 """Locate qubits affected by the error"""
140 # Implement error localization logic
141 return [i for i, val in enumerate(syndrome) if val]
142
143 def _classify_error(self, syndrome: List[int]) -> ErrorType:
144 """Classify the type of error based on syndrome pattern"""

Callers 1

detect_errorsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected