View source on GitHub |
Context for running against the Quantum Engine API.
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
,
enable_streaming: bool = True
) -> None
Most users should simply create an Engine object instead of working with one of these directly.
Raises | |
---|---|
ValueError
|
If either service_args and verbose were supplied
or client was supplied, or if proto version 1 is specified.
|
Methods
copy
copy() -> 'EngineContext'
__eq__
__eq__(
other: _SupportsValueEquality
) -> bool
__ne__
__ne__(
other: _SupportsValueEquality
) -> bool