cirq.google.Engine.run¶
-
Engine.run(*, program: Union[cirq.circuits.circuit.Circuit, cirq.schedules.schedule.Schedule], job_config: Optional[cirq.google.engine.engine.JobConfig] = None, param_resolver: cirq.study.resolver.ParamResolver = cirq.ParamResolver({}), repetitions: int = 1, priority: int = 50, target_route: str = '/xmonsim') → cirq.study.trial_result.TrialResult[source]¶ Runs the supplied Circuit or Schedule via Quantum Engine.
Parameters: - program – The Circuit or Schedule to execute. If a circuit is provided, a moment by moment schedule will be used.
- job_config – Configures the names of programs and jobs.
- param_resolver – Parameters to run with the program.
- repetitions – The number of repetitions to simulate.
- priority – The priority to run at, 0-100.
- target_route – The engine route to run against.
Returns: A single TrialResult for this run.