View source on GitHub
|
Class to direct hardware to compress operations of zero duration.
By default, parameters of gates that could lead to no-ops do not change the original duration of the gate. For instance, X**0 will cause a wait of the same duration as an X gate. (This is so that parameter sweeps do not inadvertently change the duration of the circuit, leading to artifacts in data).
When applied to an operation, this will cause the operation to compress to zero duration if possible. Currently, this will affect gates with angles of zero.
This can also affect PhasedXZGates to turn them into virtual Z gates if the resulting gate has a Z phase but no X component.
Methods
from_proto
@staticmethodfrom_proto( msg: program_pb2.Tag ) -> CompressDurationTag
to_proto
to_proto(
msg: (program_pb2.Tag | None) = None
) -> program_pb2.Tag
__eq__
__eq__(
other
) -> bool
Return self==value.
View source on GitHub