BaseSampler#
- class qiskit.primitives.BaseSampler(*, options=None)[source]#
Bases:
BasePrimitive
,Generic
[T
]Sampler base class
Base class of Sampler that calculates quasi-probabilities of bitstrings from quantum circuits.
- প্যারামিটার:
options -- Default options.
Attributes
- circuits#
Quantum circuits to be sampled.
- রিটার্নস:
The quantum circuits to be sampled.
- options#
Return options values for the estimator.
- রিটার্নস:
options
- parameters#
Parameters of quantum circuits.
- রিটার্নস:
List of the parameters in each quantum circuit.
Methods
- run(circuits, parameter_values=None, **run_options)[source]#
Run the job of the sampling of bitstrings.
- প্যারামিটার:
circuits (QuantumCircuit | Sequence[QuantumCircuit]) -- One of more circuit objects.
parameter_values (Sequence[float] | Sequence[Sequence[float]] | None) -- Parameters to be bound to the circuit.
run_options -- Backend runtime options used for circuit execution.
- রিটার্নস:
The job object of the result of the sampler. The i-th result corresponds to
circuits[i]
evaluated with parameters bound asparameter_values[i]
.- রেইজেস:
ValueError -- Invalid arguments are given.
- রিটার্ন টাইপ:
T
- set_options(**fields)#
Set options values for the estimator.
- প্যারামিটার:
**fields -- The fields to update the options