# cirq.Sampler¶

class cirq.Sampler[source]

Something capable of sampling quantum circuits. Simulator or hardware.

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

 run(program[, param_resolver, repetitions]) Samples from the given Circuit. run_async(program, *, repetitions) Asynchronously samples from the given Circuit. run_sweep(program, params[, repetitions]) Samples from the given Circuit. run_sweep_async(program, params[, repetitions]) Asynchronously sweeps and samples from the given Circuit. sample(program, *[, repetitions, params]) Samples the given Circuit, producing a pandas data frame.