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.

প্যারামিটার:

Methods

classmethod from_dict(data)[source]#

Create a new QasmQobjExperiment object from a dictionary.

প্যারামিটার:

data (dict) -- A dictionary for the experiment config

রিটার্নস:

The object from the input dictionary.

রিটার্ন টাইপ:

QasmQobjExperiment

to_dict()[source]#

Return a dictionary format representation of the Experiment.

রিটার্নস:

The dictionary form of the QasmQObjExperiment.

রিটার্ন টাইপ:

dict