tqec.compile.observables.inplace_add_observables

inplace_add_observables(circuits: list[list[Circuit]], template_slices: list[LayoutTemplate], abstract_observables: list[AbstractObservable]) 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.