cirq.Schedule.exclude

Schedule.exclude(scheduled_operation: cirq.schedules.scheduled_operation.ScheduledOperation) → bool[source]

Omits a scheduled operation from the schedule, if present.

Parameters:scheduled_operation – The operation to try to remove.
Returns:True if the operation was present and is now removed, False if it was already not present.