cirq.ScheduledOperation

class cirq.ScheduledOperation(time: cirq.value.timestamp.Timestamp, duration: cirq.value.duration.Duration, operation: cirq.ops.raw_types.Operation)[source]

An operation that happens over a specified time interval.

__init__(time: cirq.value.timestamp.Timestamp, duration: cirq.value.duration.Duration, operation: cirq.ops.raw_types.Operation) → None[source]

Initializes the scheduled operation.

Parameters:
  • time – When the operation starts.
  • duration – How long the operation lasts.
  • operation – The operation.

Methods

op_at_on(operation, time, device) Creates a scheduled operation with a device-determined duration.