QasmQobjExperiment#
- class qiskit.qobj.QasmQobjExperiment(config=None, header=None, instructions=None)[Quellcode]#
Bases:
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.
- Parameter:
config (QasmQobjExperimentConfig) – A config object for the experiment
header (QasmQobjExperimentHeader) – A header object for the experiment
instructions (list) – A list of
QasmQobjInstruction
objects
Methods
- classmethod from_dict(data)[Quellcode]#
Create a new QasmQobjExperiment object from a dictionary.
- Parameter:
data (dict) – A dictionary for the experiment config
- Rückgabe:
The object from the input dictionary.
- Rückgabetyp:
- to_dict()[Quellcode]#
Return a dictionary format representation of the Experiment.
- Rückgabe:
The dictionary form of the QasmQObjExperiment.
- Rückgabetyp: