tqecd.utils.remove_annotations#
- remove_annotations(circuit: Circuit, annotations_to_remove: frozenset[str] = frozenset({'DETECTOR', 'MPAD', 'OBSERVABLE_INCLUDE', 'SHIFT_COORDS'})) Circuit [source]#
Remove all the annotations from a given circuit, except TICK instructions.
- Parameters:
circuit – the circuit to remove annotations from.
- Returns:
a new quantum circuit that contains all the instructions from the provided circuit except annotations that are not TICK instructions.`