cirq.Simulator.run_sweep¶
-
Simulator.run_sweep(program: Union[cirq.circuits.circuit.Circuit, cirq.schedules.schedule.Schedule], params: Union[cirq.study.resolver.ParamResolver, Iterable[cirq.study.resolver.ParamResolver], cirq.study.sweeps.Sweep, Iterable[cirq.study.sweeps.Sweep]] = cirq.ParamResolver({}), repetitions: int = 1) → List[cirq.study.trial_result.TrialResult]¶ Runs the entire supplied Circuit, mimicking the quantum hardware.
In contrast to run, this allows for sweeping over different parametervalues.Parameters: - program – The circuit or schedule to simulate.
- params – Parameters to run with the program.
- repetitions – The number of repetitions to simulate.
Returns: TrialResult list for this run; one for each possible parameter resolver.