QasmQobjExperiment#

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

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)[fuente]#

Create a new QasmQobjExperiment object from a dictionary.

Parámetros:

data (dict) – A dictionary for the experiment config

Devuelve:

The object from the input dictionary.

Tipo del valor devuelto:

QasmQobjExperiment

to_dict()[fuente]#

Return a dictionary format representation of the Experiment.

Devuelve:

The dictionary form of the QasmQObjExperiment.

Tipo del valor devuelto:

dict