We're celebrating World Quantum Day 2022! Join us

cirq.optimizers.merge_single_qubit_gates_into_phased_x_z

THIS FUNCTION IS DEPRECATED.

IT WILL BE REMOVED IN cirq v1.0.

Use cirq.merge_single_qubit_gates_to_phased_x_and_z instead.

Canonicalizes runs of single-qubit rotations in a circuit.

Specifically, any run of non-parameterized single-qubit gates will be
replaced by an optional PhasedX operation followed by an optional Z
operation.

Args:
    circuit: The circuit to rewrite. This value is mutated in-place.
    atol: Absolute tolerance to angle error. Larger values allow more
        negligible gates to be dropped, smaller values increase accuracy.