View source on GitHub |
Align gates to the left of the circuit.
cirq.align_left(
circuit: 'cirq.AbstractCircuit',
*,
context: Optional['cirq.TransformerContext'] = None
) -> 'cirq.Circuit'
Used in the notebooks
Used in the tutorials |
---|
Note that tagged operations with tag in context.tags_to_ignore
will continue to stay in their
original position and will not be aligned.
Args | |
---|---|
circuit
|
Input circuit to transform. |
context
|
cirq.TransformerContext storing common configurable options for transformers.
|
Returns | |
---|---|
Copy of the transformed input circuit. |