Sampler¶
- class Sampler(*, options=None)[código fonte]¶
Bases:
BaseSampler
[PrimitiveJob
[SamplerResult
]]Sampler class.
Sampler
is a reference implementation ofBaseSampler
.- Run Options
shots (None or int) – The number of shots. If None, it calculates the probabilities. Otherwise, it samples from multinomial distributions.
seed (np.random.Generator or int) – Set a fixed seed or generator for the multinomial distribution. If shots is None, this option is ignored.
- Parâmetros
options – Default options.
- Levanta
QiskitError – if some classical bits are not used for measurements.
Methods
Run the job of the sampling of bitstrings.
Set options values for the estimator.
Attributes
- circuits¶
Quantum circuits to be sampled.
- Retorno
The quantum circuits to be sampled.
- options¶
Return options values for the estimator.
- Retorno
options
- parameters¶
Parameters of quantum circuits.
- Retorno
List of the parameters in each quantum circuit.