tqecd.utils.has_measurement#

has_measurement(moment: Circuit) bool[source]#

Check if a stim.Circuit moment contains measurement instructions.

Parameters:

moment – The moment to check.

Returns:

True if the provided moment has a measurement, else False.