65 lines
2.0 KiB
Plaintext
65 lines
2.0 KiB
Plaintext
---
|
||
title: QasmQobjExperiment (v0.31)
|
||
description: API reference for qiskit.qobj.QasmQobjExperiment in qiskit v0.31
|
||
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
|
||
|
||
<span id="qiskit-qobj-qasmqobjexperiment-from-dict" />
|
||
|
||
### 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>
|
||
|
||
<span id="qiskit-qobj-qasmqobjexperiment-to-dict" />
|
||
|
||
### 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>
|
||
|