cirq.google.EngineTimeSlot

class cirq.google.EngineTimeSlot(processor_id: str, start_time: datetime.datetime, end_time: datetime.datetime, slot_type: cirq.google.engine.client.quantum_v1alpha1.gapic.enums.QuantumTimeSlot.TimeSlotType = <TimeSlotType.TIME_SLOT_TYPE_UNSPECIFIED: 0>, project_id: Optional[str] = None, maintenance_title: Optional[str] = None, maintenance_description: Optional[str] = None)[source]

A python wrapping of a Quantum Engine timeslot.

Parameters
  • processor_id – The processor whose schedule the time slot exists on.

  • start_time – starting datetime of the time slot, usually in local time.

  • end_time – ending datetime of the time slot, usually in local time.

  • slot_type – type of time slot (reservation, open swim, etc)

  • project_id – Google Cloud Platform id of the project, as a string

  • maintenance_title – If a MAINTENANCE period, a string title describing the type of maintenance being done.

  • maintenance_description – If a MAINTENANCE period, a string describing the particulars of the maintenancethe title of the slot

__init__(processor_id: str, start_time: datetime.datetime, end_time: datetime.datetime, slot_type: cirq.google.engine.client.quantum_v1alpha1.gapic.enums.QuantumTimeSlot.TimeSlotType = <TimeSlotType.TIME_SLOT_TYPE_UNSPECIFIED: 0>, project_id: Optional[str] = None, maintenance_title: Optional[str] = None, maintenance_description: Optional[str] = None) → None