cirq.google.EngineProcessor

class cirq.google.EngineProcessor(project_id: str, processor_id: str, context: engine_base.EngineContext, _processor: Optional[google.cloud.quantum_v1alpha1.proto.quantum_pb2.QuantumProcessor] = None)[source]

A processor available via the Quantum Engine API.

project\_id

A project_id of the parent Google Cloud Project.

processor\_id

Unique ID of the processor.

__init__(project_id: str, processor_id: str, context: engine_base.EngineContext, _processor: Optional[google.cloud.quantum_v1alpha1.proto.quantum_pb2.QuantumProcessor] = None) → None[source]

A processor available via the engine.

Parameters
  • project_id – A project_id of the parent Google Cloud Project.

  • processor_id – Unique ID of the processor.

  • context – Engine configuration and context to use.

  • _processor – The optional current processor state.

Methods

create_reservation(start_time, end_time[, …])

Creates a reservation on this processor.

engine()

Returns the parent Engine object.

expected_down_time()

Returns the start of the next expected down time of the processor, if

expected_recovery_time()

Returns the expected the processor should be available, if set.

get_calibration(calibration_timestamp_seconds)

Retrieve metadata about a specific calibration run.

get_current_calibration()

Returns metadata about the current calibration for a processor.

get_device(gate_sets)

Returns a Device created from the processor’s device specification.

get_device_specification()

Returns a device specification proto for use in determining

get_reservation(reservation_id)

Retrieve a reservation given its id.

get_schedule([from_time, to_time, …])

Retrieves the schedule for a processor.

health()

Returns the current health of processor.

list_calibrations([…])

Retrieve metadata about a specific calibration run.

list_reservations([from_time, to_time])

Retrieves the reservations from a processor.

remove_reservation(reservation_id)

supported_languages()

Returns the list of processor supported program languages.

update_reservation(reservation_id[, …])

Updates a reservation with new information.