View source on GitHub |
Runs the supplied Circuit, mimicking quantum hardware.
cirq.sample_sweep(
program: 'cirq.Circuit',
params: 'cirq.Sweepable',
*,
noise: 'cirq.NOISE_MODEL_LIKE' = None,
repetitions: int = 1,
dtype: Type[np.complexfloating] = np.complex64,
seed: 'cirq.RANDOM_STATE_OR_SEED_LIKE' = None
) -> Sequence['cirq.Result']
In contrast to run, this allows for sweeping over different parameter values.
Returns | |
---|---|
Result list for this run; one for each possible parameter resolver. |