cirq_google.engine.engine.EngineContext

Context for running against the Quantum Engine API.

Most users should simply create an Engine object instead of working with one of these directly.

proto_version The version of cirq protos to use. If None, then ProtoVersion.V2 will be used.
service_args A dictionary of arguments that can be used to configure options on the underlying client.
verbose Suppresses stderr messages when set to False. Default is true.
client The engine client to use, if not supplied one will be created.
timeout Timeout for polling for results, in seconds. Default is to never timeout.
serializer Used to serialize circuits when running jobs.
enable_streaming Feature gate for making Quantum Engine requests using the stream RPC. If True, the Quantum Engine streaming RPC is used for creating jobs and getting results. Otherwise, unary RPCs are used.

ValueError If either service_args and verbose were supplied or client was supplied, or if proto version 1 is specified.

Methods

copy

View source

__eq__

__ne__