loom.interpreter.applicator.generate_detectors

Copyright (c) Entropica Labs Pte Ltd 2025.

Use, distribution and reproduction of this program in its source or compiled form is prohibited without the express written consent of Entropica Labs Pte Ltd.

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, …]