tqec.circuit.operations.operation.make_observable

make_observable(measurements: Sequence[Measurement], observable_index: int = 0) Operation[source]

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

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

  • observable_index – index of the observable.

Returns:

A Observable operation with the cirq.VirtualTag tag.