Merges adjacent moments with only 1-qubit rotations to a single moment with PhasedXZ gates.
cirq.merge_single_qubit_moments_to_phxz(
circuit: 'cirq.AbstractCircuit',
*,
context: Optional['cirq.TransformerContext'] = None,
atol: float = 1e-08
) -> 'cirq.Circuit'
Args |
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.
|
Returns |
Copy of the transformed input circuit.
|