We're celebrating World Quantum Day 2022! Join us


Replaces runs of single qubit rotations with a single optional cirq.PhasedXZGate.

Used in the notebooks

Used in the tutorials

Specifically, any run of non-parameterized single-qubit unitaries will be replaced by an optional PhasedXZ.

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.