tqecd.utils.is_virtual_moment#

is_virtual_moment(moment: Circuit) bool[source]#

Check if the provided moment only contains virtual instructions.

Virtual instructions are noisy instructions or instructions whose name is in the ANNOTATIONS structure.

Parameters:

moment – circuit to check.

Returns:

True if the provided circuit is only composed of virtual instructions, else False.