cirq.google.Engine.run_sweep

Engine.run_sweep(*, program: Union[cirq.circuits.circuit.Circuit, cirq.schedules.schedule.Schedule], job_config: Optional[cirq.google.engine.engine.JobConfig] = None, params: Union[cirq.study.resolver.ParamResolver, Iterable[cirq.study.resolver.ParamResolver], cirq.study.sweeps.Sweep, Iterable[cirq.study.sweeps.Sweep]] = None, repetitions: int = 1, priority: int = 500, target_route: str = '/xmonsim') → cirq.google.engine.engine.EngineJob[source]

Runs the supplied Circuit or Schedule via Quantum Engine.

In contrast to run, this runs across multiple parameter sweeps, and
does not block until a result is returned.
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.
  • params – Parameters to run with the program.
  • repetitions – The number of circuit repetitions to run.
  • priority – The priority to run at, 0-100.
  • target_route – The engine route to run against.
Returns:

An EngineJob. If this is iterated over it returns a list of TrialResults, one for each parameter sweep.