qiskit_addon_cutting.utils.simulation.ExactSampler¶
- class ExactSampler(*, options=None)[source]¶
Sampler which returns exact probabilities for each possible outcome.
This sampler supports:
all unitary gates
projective measurements, anywhere in the circuit
reset operations, anywhere in the circuit
some (or all) classical bits can remain unused
classical bits can be written more than once
The samplers provided by
qiskit.primitives
andqiskit_aer.primitives
do not currently support all of the above functionality. Related upstream issues:- Parameters:
options (dict | None) – Default options.
- __init__(*, options=None)¶
- Parameters:
options (dict | None) – Default options.
Methods
__init__
(*[, options])run
(circuits[, parameter_values])Run the job of the sampling of bitstrings.
set_options
(**fields)Set options values for the estimator.
Attributes
options
Return options values for the estimator.