QasmQobjExperiment#

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

기반 클래스: 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)[소스]#

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()[소스]#

Return a dictionary format representation of the Experiment.

반환:

The dictionary form of the QasmQObjExperiment.

반환 형식:

dict