Context for running against the Quantum Engine API. Most users should
cirq_google.engine.engine.EngineContext(
proto_version: Optional[cirq_google.engine.ProtoVersion
] = None,
service_args: Optional[Dict] = None,
verbose: Optional[bool] = None,
client: 'Optional[engine_client.EngineClient]' = None,
timeout: Optional[int] = None,
serializer: cirq_google.serialization.Serializer
= cirq_google.serialization.CIRCUIT_SERIALIZER
) -> None
simply create an Engine object instead of working with one of these
directly.
Args |
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.
|
Raises |
ValueError
|
If either service_args and verbose were supplied
or client was supplied, or if proto version 1 is specified.
|
Methods
copy
View source
copy() -> 'EngineContext'
__eq__
__eq__(
other: _SupportsValueEquality
) -> bool
__ne__
__ne__(
other: _SupportsValueEquality
) -> bool