loom.interpreter.applicator.generate_detectors
Copyright 2024 Entropica Labs Pte Ltd
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
- loom.interpreter.applicator.generate_detectors.generate_detectors(interpretation_step, new_syndromes)[source]
Generates the detectors, by matching the new syndromes to their associated old syndromes. This relation is obtained via the stabilizer flow specified in the operation applicator.
Detectors inherit the labels from the new syndromes.
- Parameters:
interpretation_step (InterpretationStep) – The updated interpretation step implementing the operation.
new_syndromes (tuple[Syndrome, ...]) – The newly generated syndromes during the operation.
- Returns:
Detectors associated with the newly generated syndromes in the operation.
- Return type:
tuple[Detector, …]