QasmQobjExperiment#

class qiskit.qobj.QasmQobjExperiment(config=None, header=None, instructions=None)[código fonte]#

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.

Parâmetros:

Methods

classmethod from_dict(data)[código fonte]#

Create a new QasmQobjExperiment object from a dictionary.

Parâmetros:

data (dict) – A dictionary for the experiment config

Retorno:

The object from the input dictionary.

Tipo de retorno:

QasmQobjExperiment

to_dict()[código fonte]#

Return a dictionary format representation of the Experiment.

Retorno:

The dictionary form of the QasmQObjExperiment.

Tipo de retorno:

dict