QasmQobjExperiment#

class qiskit.qobj.QasmQobjExperiment(config=None, header=None, instructions=None)[source]#

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.

Paramètres:

Methods

classmethod from_dict(data)[source]#

Create a new QasmQobjExperiment object from a dictionary.

Paramètres:

data (dict) – A dictionary for the experiment config

Renvoie:

The object from the input dictionary.

Type renvoyé:

QasmQobjExperiment

to_dict()[source]#

Return a dictionary format representation of the Experiment.

Renvoie:

The dictionary form of the QasmQObjExperiment.

Type renvoyé:

dict