qiskit-documentation/docs/api/qiskit/0.29/qiskit.qobj.QasmQobjExperim...

61 lines
1.8 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: QasmQobjExperiment
description: API reference for qiskit.qobj.QasmQobjExperiment
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.qobj.QasmQobjExperiment
---
# QasmQobjExperiment
<Class id="qiskit.qobj.QasmQobjExperiment" isDedicatedPage={true} github="https://github.com/qiskit/qiskit/tree/stable/0.18/qiskit/qobj/qasm_qobj.py" signature="QasmQobjExperiment(config=None, header=None, instructions=None)" modifiers="class">
Bases: `object`
A QASM Qobj Experiment.
Each instance of this class is used to represent a QASM experiment as part of a larger QASM qobj.
Instantiate a QasmQobjExperiment.
**Parameters**
* **config** ([*QasmQobjExperimentConfig*](qiskit.qobj.QasmQobjExperimentConfig "qiskit.qobj.QasmQobjExperimentConfig")) A config object for the experiment
* **header** (*QasmQobjExperimentHeader*) A header object for the experiment
* **instructions** (*list*) A list of [`QasmQobjInstruction`](qiskit.qobj.QasmQobjInstruction "qiskit.qobj.QasmQobjInstruction") objects
## Methods
### from\_dict
<Function id="qiskit.qobj.QasmQobjExperiment.from_dict" signature="QasmQobjExperiment.from_dict(data)" modifiers="classmethod">
Create a new QasmQobjExperiment object from a dictionary.
**Parameters**
**data** (*dict*) A dictionary for the experiment config
**Returns**
The object from the input dictionary.
**Return type**
[QasmQobjExperiment](qiskit.qobj.QasmQobjExperiment "qiskit.qobj.QasmQobjExperiment")
</Function>
### to\_dict
<Function id="qiskit.qobj.QasmQobjExperiment.to_dict" signature="QasmQobjExperiment.to_dict()">
Return a dictionary format representation of the Experiment.
**Returns**
The dictionary form of the QasmQObjExperiment.
**Return type**
dict
</Function>
</Class>