---
title: SamplerExecutionOptionsV2 (latest version)
description: API reference for qiskit_ibm_runtime.options.SamplerExecutionOptionsV2 in the latest version of qiskit-ibm-runtime
source: https://eu-de.quantum.cloud.ibm.com/docs/en/api/qiskit-ibm-runtime/options-sampler-execution-options-v2
---

# SamplerExecutionOptionsV2

*class* `SamplerExecutionOptionsV2(init_qubits=Unset, rep_delay=Unset, meas_type=Unset)`

[GitHub](https://github.com/Qiskit/qiskit-ibm-runtime/tree/stable/0.49/qiskit_ibm_runtime/options/sampler_execution_options.py#L21-L51)

Bases: [`ExecutionOptionsV2`](/docs/api/qiskit-ibm-runtime/options-execution-options-v2 "qiskit_ibm_runtime.options.execution_options.ExecutionOptionsV2")

Extends [`ExecutionOptionsV2`](/docs/api/qiskit-ibm-runtime/options-execution-options-v2 "qiskit_ibm_runtime.options.ExecutionOptionsV2") for the sampler primitive.

## Attributes

**Parameters**

- **init\_qubits** (*UnsetType | bool*)
- **rep\_delay** (*UnsetType | float*)
- **meas\_type** (*UnsetType | Literal\['classified', 'kerneled', 'avg\_kerneled']*)

### init\_qubits

Type: `UnsetType | bool`

Default value: `Unset`

Whether to reset the qubits to the ground state for each shot. Default is `True`.

### meas\_type

Type: `UnsetType | Literal['classified', 'kerneled', 'avg_kerneled']`

Default value: `Unset`

How to process and return measurement results.

This option sets the return type of all classical registers in all `SamplerPubResult`s. If a sampler pub with shape `pub_shape` has a circuit that contains a classical register with size `creg_size`, then the returned data associated with this register will have one of the following formats depending on the value of this option.

- `"classified"`: A `BitArray` of shape `pub_shape` over `num_shots` with a number of bits equal to `creg_size`.
- `"kerneled"`: A complex NumPy array of shape `(*pub_shape, num_shots, creg_size)`, where each entry represents an IQ data point (resulting from kerneling the measurement trace) in arbitrary units.
- `"avg_kerneled"`: A complex NumPy array of shape `(*pub_shape, creg_size)`, where each entry represents an IQ data point (resulting from kerneling the measurement trace and averaging over shots) in arbitrary units. This option is equivalent to selecting `"kerneled"` and then averaging over the shots axis, but requires less data bandwidth.

Default: “classified”.

See [here](https://pubs.aip.org/aip/rsi/article/88/10/104703/836456) for a description of kerneling.

### rep\_delay

Type: `UnsetType | float`

Default value: `Unset`

The repetition delay.

This is the delay between a measurement and the subsequent quantum circuit. This is only supported on backends that have `backend.dynamic_reprate_enabled=True`. It must be from the range supplied by `backend.rep_delay_range`.

Default is given by `backend.default_rep_delay`.

## Methods
