cirq.google.engine_from_environment¶
-
cirq.google.engine_from_environment() → cirq.google.engine.engine.Engine[source]¶ Returns an Engine instance configured using environment variables.
If the environment variables are set, but incorrect, an authenticationfailure will occur when attempting to run jobs on the engine.Required Environment Variables:QUANTUM_ENGINE_PROJECT: The name of a google cloud project, with thequantum engine enabled, that you have access to.QUANTUM_ENGINE_API_KEY: An API key for the google cloud project namedby QUANTUM_ENGINE_PROJECT.Raises: EnvironmentError– The environment variables are not set.