cirq.google.QuantumEngineSampler

class cirq.google.QuantumEngineSampler(*, engine: cirq.google.Engine, processor_id: Union[str, List[str]], gate_set: cirq.google.SerializableGateSet)[source]

A sampler that samples from processors managed by the Quantum Engine.

Exposes a cirq.google.Engine instance as a cirq.Sampler.

__init__(*, engine: cirq.google.Engine, processor_id: Union[str, List[str]], gate_set: cirq.google.SerializableGateSet)[source]
Parameters
  • engine – Quantum engine instance to use.

  • processor_id – String identifier, or list of string identifiers, determining which processors may be used when sampling.

  • gate_set – Determines how to serialize circuits when requesting samples.