---
title: QasmQobjConfig (v0.46)
description: API reference for qiskit.qobj.QasmQobjConfig in qiskit v0.46
source: https://eu-de.quantum.cloud.ibm.com/docs/en/api/qiskit/0.46/qiskit.qobj.QasmQobjConfig
---

# QasmQobjConfig

*class* `qiskit.qobj.QasmQobjConfig(shots=None, seed_simulator=None, memory=None, parameter_binds=None, meas_level=None, meas_return=None, memory_slots=None, n_qubits=None, pulse_library=None, calibrations=None, rep_delay=None, qubit_lo_freq=None, meas_lo_freq=None, **kwargs)`

[GitHub](https://github.com/qiskit/qiskit/tree/stable/0.46/qiskit/qobj/qasm_qobj.py)

Bases: [`SimpleNamespace`](https://docs.python.org/3/library/types.html#types.SimpleNamespace)

A configuration for an OpenQASM 2 Qobj.

Model for RunConfig.

**Parameters**

- **shots** ([*int*](https://docs.python.org/3/library/functions.html#int)) – the number of shots.
- **seed\_simulator** ([*int*](https://docs.python.org/3/library/functions.html#int)) – the seed to use in the simulator
- **memory** ([*bool*](https://docs.python.org/3/library/functions.html#bool)) – whether to request memory from backend (per-shot readouts)
- **parameter\_binds** ([*list*](https://docs.python.org/3/library/stdtypes.html#list)*\[*[*dict*](https://docs.python.org/3/library/stdtypes.html#dict)*]*) – List of parameter bindings
- **meas\_level** ([*int*](https://docs.python.org/3/library/functions.html#int)) – Measurement level 0, 1, or 2
- **meas\_return** ([*str*](https://docs.python.org/3/library/stdtypes.html#str)) – For measurement level \< 2, whether single or avg shots are returned
- **memory\_slots** ([*int*](https://docs.python.org/3/library/functions.html#int)) – The number of memory slots on the device
- **n\_qubits** ([*int*](https://docs.python.org/3/library/functions.html#int)) – The number of qubits on the device
- **pulse\_library** ([*list*](https://docs.python.org/3/library/stdtypes.html#list)) – List of [`PulseLibraryItem`](/docs/api/qiskit/0.46/qiskit.qobj.PulseLibraryItem "qiskit.qobj.PulseLibraryItem").
- **calibrations** ([*QasmExperimentCalibrations*](/docs/api/qiskit/0.46/qiskit.qobj.QasmExperimentCalibrations "qiskit.qobj.QasmExperimentCalibrations")) – Information required for Pulse gates.
- **rep\_delay** ([*float*](https://docs.python.org/3/library/functions.html#float)) – Delay between programs in sec. Only supported on certain backends (`backend.configuration().dynamic_reprate_enabled` ). Must be from the range supplied by the backend (`backend.configuration().rep_delay_range`). Default is `backend.configuration().default_rep_delay`.
- **qubit\_lo\_freq** ([*list*](https://docs.python.org/3/library/stdtypes.html#list)) – List of frequencies (as floats) for the qubit driver LO’s in GHz.
- **meas\_lo\_freq** ([*list*](https://docs.python.org/3/library/stdtypes.html#list)) – List of frequencies (as floats) for the measurement driver LO’s in GHz.
- **kwargs** – Additional free form key value fields to add to the configuration.

## Methods

### from\_dict

*classmethod* `from_dict(data)`

Create a new QasmQobjConfig object from a dictionary.

**Parameters**

**data** ([*dict*](https://docs.python.org/3/library/stdtypes.html#dict)) – A dictionary for the config

**Returns**

The object from the input dictionary.

**Return type**

[QasmQobjConfig](#qiskit.qobj.QasmQobjConfig "qiskit.qobj.QasmQobjConfig")

### to\_dict

`to_dict()`

Return a dictionary format representation of the OpenQASM 2 Qobj config.

**Returns**

The dictionary form of the QasmQobjConfig.

**Return type**

[dict](https://docs.python.org/3/library/stdtypes.html#dict)
