Represents a collection of PulseBlock objects which is called a PulseBlockEnsemble.
More...
|
def | __init__ (self, name, block_list=None, rotating_frame=True) |
| The constructor for a Pulse_Block_Ensemble needs to have: More...
|
|
def | __repr__ (self) |
|
def | __str__ (self) |
|
def | __eq__ (self, other) |
|
def | __len__ (self) |
|
def | __getitem__ (self, key) |
|
def | __setitem__ (self, key, value) |
|
def | __delitem__ (self, key) |
|
def | pop (self, position=None) |
|
def | insert (self, position, element) |
| Insert a (PulseBlock.name, repetitions) tuple at the given position. More...
|
|
def | append (self, element) |
|
def | extend (self, iterable) |
|
def | clear (self) |
|
def | reverse (self) |
|
def | get_dict_representation (self) |
|
|
def | ensemble_from_dict (ensemble_dict) |
|
|
| name |
|
| rotating_frame |
|
| block_list |
|
| sampling_information |
|
| measurement_information |
|
Represents a collection of PulseBlock objects which is called a PulseBlockEnsemble.
This object is used as a construction plan to create one sampled file.
◆ __init__()
def pulse_objects.PulseBlockEnsemble.__init__ |
( |
|
self, |
|
|
|
name, |
|
|
|
block_list = None , |
|
|
|
rotating_frame = True |
|
) |
| |
The constructor for a Pulse_Block_Ensemble needs to have:
- Parameters
-
str | name: chosen name for the PulseBlockEnsemble |
list | block_list: contains the PulseBlock names with their number of repetitions, e.g. [(name, repetitions), (name, repetitions), ...]) |
bool | rotating_frame: indicates whether the phase should be preserved for all the functions. |
◆ insert()
def pulse_objects.PulseBlockEnsemble.insert |
( |
|
self, |
|
|
|
position, |
|
|
|
element |
|
) |
| |
Insert a (PulseBlock.name, repetitions) tuple at the given position.
The old element at this position and all consecutive elements after that will be shifted to higher indices.
- Parameters
-
int | position: position in the element list |
tuple | element: (PulseBlock name (str), repetitions (int)) |
The documentation for this class was generated from the following file:
- logic/pulsed/pulse_objects.py