cirq.google.EngineJob

class cirq.google.EngineJob(project_id: str, program_id: str, job_id: str, context: engine_base.EngineContext, _job: Optional[google.cloud.quantum_v1alpha1.proto.quantum_pb2.QuantumJob] = None)[source]

A job created via the Quantum Engine API.

This job may be in a variety of states. It may be scheduling, it may be
executing on a machine, or it may have entered a terminal state
(either succeeding or failing).
project\_id

A project_id of the parent Google Cloud Project.

program\_id

Unique ID of the program within the parent project.

job\_id

Unique ID of the job within the parent program.

__init__(project_id: str, program_id: str, job_id: str, context: engine_base.EngineContext, _job: Optional[google.cloud.quantum_v1alpha1.proto.quantum_pb2.QuantumJob] = None) → None[source]

A job submitted to the engine.

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

  • program_id – Unique ID of the program within the parent project.

  • job_id – Unique ID of the job within the parent program.

  • context – Engine configuration and context to use.

  • _job – The optional current job state.