tqec.circuit.operations.operation.make_detector

make_detector(measurements: Sequence[Measurement], coordinates: tuple[float, ...]) Operation[source]

This is a helper function to make a Detector operation with the cirq.VirtualTag tag.

Parameters:
  • measurements – a list of measurements that compose the parity check of the detector.

  • coordinates – an annotation that will be forwarded to the DETECTOR Stim instruction.

Returns:

A Detector operation with the cirq.VirtualTag tag.