QobjHeader#

class qiskit.qobj.QobjHeader(**kwargs)[Quellcode]#

Bases: QobjDictField

A class used to represent a dictionary header in Qobj objects.

Instantiate a new Qobj dict field object.

Parameter:

kwargs – arbitrary keyword arguments that can be accessed as attributes of the object.

Methods

classmethod from_dict(data)#

Create a new QobjHeader object from a dictionary.

Parameter:

data (dict) – A dictionary representing the QobjHeader to create. It will be in the same format as output by to_dict().

Rückgabe:

The QobjDictField from the input dictionary.

Rückgabetyp:

QobjDictFieldr

to_dict()#

Return a dictionary format representation of the OpenQASM 2 Qobj.

Rückgabe:

The dictionary form of the QobjHeader.

Rückgabetyp:

dict