![]() |
THIS CLASS IS DEPRECATED.
cirq.optimizers.SynchronizeTerminalMeasurements(
after_other_operations: bool = True
)
IT WILL BE REMOVED IN cirq v1.0
.
Use cirq.synchronize_terminal_measurements instead.
Move measurements to the end of the circuit.
Move all measurements in a circuit to the final moment if it can accommodate
them (without overlapping with other operations). If
self._after_other_operations is true then a new moment will be added to the
end of the circuit containing all the measurements that should be brought
forward.
Args | |
---|---|
after_other_operations
|
Set by default. If the circuit's final moment contains non-measurement operations and this is set then a new empty moment is appended to the circuit before pushing measurements to the end. |
Methods
optimize_circuit
optimize_circuit(
circuit: cirq.circuits.Circuit
) -> None
__call__
__call__(
circuit: cirq.circuits.Circuit
)
Call self as a function.