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