QasmQobj¶
- class QasmQobj(qobj_id=None, config=None, experiments=None, header=None)[source]¶
A QASM Qobj.
Instatiate a new QASM Qobj Object.
Each QASM Qobj object is used to represent a single payload that will be passed to a Qiskit provider. It mirrors the Qobj the published Qobj specification for OpenQASM experiments.
- Parameters
qobj_id (str) – An identifier for the qobj
config (QasmQobjRunConfig) – A config for the entire run
header (QobjHeader) – A header for the entire run
experiments (list) – A list of lists of
QasmQobjExperiment
objects representing an experiment
Methods
QasmQobj.from_dict
(data)Create a new QASMQobj object from a dictionary.
QasmQobj.to_dict
([validate])Return a dictionary format representation of the QASM Qobj.