cirq_google.workflow.SimulatedProcessorRecord

A serializable record mapping a processor_id and optional noise spec to a simulator-backed

Inherits From: ProcessorRecord

mock of cg.AbstractProcessor.

processor_id The processor id we are emulating
noise_strength To do noisy simulation, set this to a positive float. The default of 0 will result in a noiseless state-vector simulation. If float('inf') is provided the simulator will be cirq.ZerosSampler. Otherwise, use a depolarizing model with this probability of noise.

processor_id Dataclass field
noise_strength Dataclass field

Methods

get_device

View source

Return a cirq.Device for the processor specified by this class.

The default implementation delegates to self.get_processor().

get_processor

View source

Return a cg.SimulatedLocalProcessor for the specified processor_id.

get_sampler

View source

Return a cirq.Sampler for the processor specified by this class.

The default implementation delegates to self.get_processor().

__eq__

noise_strength 0