QrSamplerV2 module
- class QrSamplerV2
Implements a BackendSamplerV2 derived class for the QrBackendV2.
A tuple of
(circuit, <optional> parameter values, <optional> shots)
, called a sampler primitive unified bloc (PUB) can be submitted to this class for execution.
- QrSamplerV2(backend=None, options=None, run_options=None)
- Args:
- backend: QrBackendV2 backend.options: The options to control the defaults such as shots (
default_shots
)run_options: See options.
- QrSamplerV2.options: Options
Returns the options
- run(pubs, *, shots=None)
Executes the pubs and estimates all associated observables.
- Args:
- pubs [pub]: The pub to process.shots (optional) int: Number of times the circuit needs to be executed.
- Returns:
The job associated with the pub.