tqec.compile.observables.inplace_add_observables#

inplace_add_observables(circuits: list[list[ScheduledCircuit]], template_slices: list[LayoutTemplate], abstract_observables: list[AbstractObservable], k: int) None[source]#

Inplace add the observable components to the circuits.

The circuits are grouped by time slices and layers. The outer list represents the time slices and the inner list represents the layers.