PulseLibraryItem

class qiskit.qobj.PulseLibraryItem(name, samples)[source]

Bases: object

An item in a pulse library.

Instantiate a pulse library item.

Parameters:
  • name (str) – A name for the pulse.

  • samples (list[complex]) – A list of complex values defining pulse shape.

Methods

classmethod from_dict(data)[source]

Create a new PulseLibraryItem object from a dictionary.

Parameters:

data (dict) – A dictionary for the experiment config

Returns:

The object from the input dictionary.

Return type:

PulseLibraryItem

to_dict()[source]

Return a dictionary format representation of the pulse library item.

Returns:

The dictionary form of the PulseLibraryItem.

Return type:

dict