View source on GitHub |
Classes for running against Google's Quantum Cloud Service.
As an example, to run a circuit against the xmon simulator on the cloud, engine = cirq_google.Engine(project_id='my-project-id') program = engine.create_program(circuit) result0 = program.run(params=params0, repetitions=10) result1 = program.run(params=params1, repetitions=10)
In order to run on must have access to the Quantum Engine API. Access to this API is (as of June 22, 2018) restricted to invitation only.
Modules
engine_client
module
engine_job
module: A helper for jobs that have been created on the Quantum Engine.
engine_processor
module
engine_program
module
Classes
class Engine
: Runs programs via the Quantum Engine API.
class EngineContext
: Context for running against the Quantum Engine API.
class ProtoVersion
: Protocol buffer version to use for requests to the quantum engine.
Functions
get_engine(...)
: Get an Engine instance assuming some sensible defaults.
get_engine_calibration(...)
: Returns calibration metrics for a given processor.
get_engine_device(...)
: Returns a Device
object for a given processor.
get_engine_sampler(...)
: Get an EngineSampler assuming some sensible defaults.
Other Members | |
---|---|
CIRCUIT_SERIALIZER |
Instance of cirq_google.serialization.CircuitSerializer
|
TYPE_PREFIX |
'type.googleapis.com/'
|