cirq.google.EngineProgram

class cirq.google.EngineProgram(project_id: str, program_id: str, context: engine_base.EngineContext, _program: Optional[google.cloud.quantum_v1alpha1.proto.quantum_pb2.QuantumProgram] = None)[source]

A program created via the Quantum Engine API.

This program wraps a Circuit with additional metadata used to
schedule against the devices managed by Quantum Engine.
project\_id

A project_id of the parent Google Cloud Project.

program\_id

Unique ID of the program within the parent project.

__init__(project_id: str, program_id: str, context: engine_base.EngineContext, _program: Optional[google.cloud.quantum_v1alpha1.proto.quantum_pb2.QuantumProgram] = 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.

  • context – Engine configuration and context to use.

  • _program – The optional current program state.