View source on GitHub
|
A serializable record of processor_id to map to a cg.EngineProcessor.
Inherits From: ProcessorRecord
cirq_google.workflow.EngineProcessorRecord(
processor_id: str
)
This class presumes the GOOGLE_CLOUD_PROJECT environment variable is set to establish a connection to the cloud service.
Args | |
|---|---|
processor_id
|
The processor id. |
Attributes | |
|---|---|
processor_id
|
Dataclass field |
Methods
get_device
get_device() -> cirq.Device
Return a cirq.Device for the processor specified by this class.
The default implementation delegates to self.get_processor().
get_processor
get_processor() -> cg.EngineProcessor
Return a cg.EngineProcessor for the specified processor_id.
get_sampler
get_sampler() -> cg.ProcessorSampler
Return a cirq.Sampler for the processor specified by this class.
The default implementation delegates to self.get_processor().
__eq__
__eq__(
other
)
Return self==value.
View source on GitHub