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

# QasmQobjExperiment

*class* `qiskit.qobj.QasmQobjExperiment(config=None, header=None, instructions=None)`

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

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

An OpenQASM 2 Qobj Experiment.

Each instance of this class is used to represent an OpenQASM 2 experiment as part of a larger OpenQASM 2 qobj.

Instantiate a QasmQobjExperiment.

**Parameters**

- **config** ([*QasmQobjExperimentConfig*](/docs/api/qiskit/0.46/qiskit.qobj.QasmQobjExperimentConfig "qiskit.qobj.QasmQobjExperimentConfig")) – A config object for the experiment
- **header** (*QasmQobjExperimentHeader*) – A header object for the experiment
- **instructions** ([*list*](https://docs.python.org/3/library/stdtypes.html#list)) – A list of [`QasmQobjInstruction`](/docs/api/qiskit/0.46/qiskit.qobj.QasmQobjInstruction "qiskit.qobj.QasmQobjInstruction") objects

## Methods

### from\_dict

*classmethod* `from_dict(data)`

Create a new QasmQobjExperiment object from a dictionary.

**Parameters**

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

**Returns**

The object from the input dictionary.

**Return type**

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

### to\_dict

`to_dict()`

Return a dictionary format representation of the Experiment.

**Returns**

The dictionary form of the QasmQObjExperiment.

**Return type**

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