cirq.google.engine_from_environment

cirq.google.engine_from_environment()cirq.google.Engine[source]

THIS FUNCTION IS DEPRECATED.

IT WILL BE REMOVED IN cirq v0.10.0.

Use cirq.get_engine instead.

Returns an Engine instance configured using environment variables.

If the environment variables are set, but incorrect, an authentication
failure will occur when attempting to run jobs on the engine.

Required Environment Variables:
    CIRQ_QUANTUM_ENGINE_DEFAULT_PROJECT_ID: The name of a google cloud
        project, with the quantum engine enabled, that you have access to.

Raises:
    EnvironmentError: The environment variables are not set.