cirq.Schedule¶
-
class
cirq.Schedule(device: cirq.devices.device.Device, scheduled_operations: Iterable[cirq.schedules.scheduled_operation.ScheduledOperation] = ())[source]¶ A quantum program with operations happening at specific times.
Supports schedule[time] point lookups andschedule[inclusive_start_time:exclusive_end_time] slice lookups.-
device¶
The hardware this will schedule on.
-
scheduled_operations¶
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[source]¶ Initializes a new schedule.
Parameters: - 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.
Methods
exclude(scheduled_operation)Omits a scheduled operation from the schedule, if present. include(scheduled_operation)Adds a scheduled operation to the schedule. operations_happening_at_same_time_as(…)Finds operations happening at the same time as the given operation. query(*, time, duration, qubits[, …])Finds operations by time and qubit. to_circuit()Convert the schedule to a circuit. -