View source on GitHub |
A serializable record that maps to a particular cg.engine.AbstractProcessor
.
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
@abc.abstractmethod
get_processor() -> 'cg.engine.AbstractProcessor'
Using this classes' attributes, return a unique cg.engine.AbstractProcessor
This is the primary method that descendants must implement.
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()
.