cirq_google.ops.CompressDurationTag

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

View source

to_proto

View source

__eq__

View source

Return self==value.