cirq.Schedule.query

Schedule.query(*, time: cirq.value.timestamp.Timestamp, duration: cirq.value.duration.Duration = cirq.Duration(picos=0), qubits: Iterable[cirq.ops.raw_types.QubitId] = None, include_query_end_time=False, include_op_end_times=False) → List[cirq.schedules.scheduled_operation.ScheduledOperation][source]

Finds operations by time and qubit.

Parameters:
  • time – Operations must end after this time to be returned.
  • duration – Operations must start by time+duration to be returned.
  • qubits – If specified, only operations touching one of the included qubits will be returned.
  • include_query_end_time – Determines if the query interval includes its end time. Defaults to no.
  • include_op_end_times – Determines if the scheduled operation intervals include their end times or not. Defaults to no.
Returns:

A list of scheduled operations meeting the specified conditions.