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.
A tuple of the Operations for this Moment.
A set of the qubits acted upon by this Moment.
__init__(operations: Iterable[cirq.ops.raw_types.Operation] = ()) → None¶
Constructs a moment with the given operations.
Parameters: operations – The operations applied within the moment. Will be frozen into a tuple before storing. Raises:
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 an equal moment, but with the given op added.
Returns an equal moment, but without ops on the given qubits.