![]() |
Pushes Z gates towards the end of the circuit.
cirq.optimizers.EjectZ(
tolerance: float = 0.0,
eject_parameterized: bool = False
) -> None
As the Z gates get pushed they may absorb other Z gates, get absorbed into measurements, cross CZ gates, cross W gates (by phasing them), etc.
Methods
optimize_circuit
optimize_circuit(
circuit: cirq.circuits.Circuit
)