NeutralAtomDevice.can_add_operation_into_moment(operation: cirq.ops.raw_types.Operation, moment: cirq.ops.moment.Moment) → bool[source]
Determines if it’s possible to add an operation into a moment. An
operation can be added if the moment with the operation added is valid
Parameters
• operation – The operation being added.

• moment – The moment being transformed.

Returns

Whether or not the moment will validate after adding the operation.

Raises

ValueError – If either of the given moment or operation is invalid