Moment(operations: Iterable[cirq.ops.raw_types.Operation] = ())¶
A simplified time-slice of operations within a sequenced circuit.Note that grouping sequenced circuits into moments is an abstraction thatmay not carry over directly to the scheduling on the hardware or simulator.Operations in the same moment may or may not actually end up scheduled tooccur at the same time. However the topological quantum circuit orderingwill be preserved, and many schedulers or consumers will attempt tomaximize the moment representation.
__init__(operations: Iterable[cirq.ops.raw_types.Operation] = ()) → None¶
Constructs a moment with the given operations.
operations – The operations applied within the moment. Will be frozen into a tuple before storing.
ValueError – A qubit appears more than once.
Determines if the moment has operations touching the given qubits.
Determines if the moment has operations touching the given qubit.
Returns the same moment, but with different qubits.
Returns an equal moment, but with the given op added.
Returns an equal moment, but without ops on the given qubits.