cirq.drop_empty_moments

Removes empty moments from a circuit.

Used in the notebooks

Used in the tutorials

circuit Input circuit to transform.
context cirq.TransformerContext storing common configurable options for transformers.

Copy of the transformed input circuit.