Schedule(device: cirq.devices.device.Device, scheduled_operations: Iterable[cirq.schedules.scheduled_operation.ScheduledOperation] = ())¶
A quantum program with operations happening at specific times.Supports schedule[time] point lookups andschedule[inclusive_start_time:exclusive_end_time] slice lookups.
The hardware this will schedule on.
A SortedListWithKey containing theScheduledOperations for this schedule. The key is the start timeof the ScheduledOperation.
__init__(device: cirq.devices.device.Device, scheduled_operations: Iterable[cirq.schedules.scheduled_operation.ScheduledOperation] = ()) → None¶
Initializes a new schedule.
device – The hardware this schedule will run on.
scheduled_operations – Initial list of operations to apply. These will be moved into a sorted list, with a key equal to each operation’s start time.
Omits a scheduled operation from the schedule, if present.
Adds a scheduled operation to the schedule.
Finds operations happening at the same time as the given operation.
query(*, time[, duration, qubits, …])
Finds operations by time and qubit.
Convert the schedule to a circuit.