Replaces runs of single qubit rotations with cirq.PhasedXPowGate and cirq.ZPowGate.

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

circuit Input circuit to transform. It will not be modified.
context cirq.TransformerContext storing common configurable options for transformers.
atol Absolute tolerance to angle error. Larger values allow more negligible gates to be dropped, smaller values increase accuracy.

Copy of the transformed input circuit.