cirq.Moment.with_operation

Moment.with_operation(operation: cirq.ops.raw_types.Operation)[source]

Returns an equal moment, but with the given op added.

Parameters:operation – The operation to append.
Returns:The new moment.