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:
config (QasmQobjExperimentConfig) – A config object for the experiment
header (QasmQobjExperimentHeader) – A header object for the experiment
instructions (list) – A list of
QasmQobjInstruction
objects
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:
- to_dict()[código fonte]#
Return a dictionary format representation of the Experiment.
- Retorno:
The dictionary form of the QasmQObjExperiment.
- Tipo de retorno: