ReadoutMetrics#
- class iqm.pulse.playlist.instructions.ReadoutMetrics(num_segments, integration_occurrences=<factory>, timetrace_occurrences=<factory>, timetrace_lengths=<factory>, implementations=<factory>)#
Bases:
objectAggregates the necessary readout metrics needed for return data processing.
Module:
iqm.pulse.playlist.instructionsAttributes
Number of segments in the Playlist this ReadoutMetrics object represents.
Map each integration readout label (of the format
"<component>__<readout key>") to its number of occurrences in each Playlist segment.Map each time trace label (of the format
"<component>__<readout key>") to its number of occurrences in each Playlist segment.Map each time trace label (of the format
"<component>__<readout key>") to its number of time trace samples.Map each integration or time trace readout label to its implementations (of the format
"<measure gate name>.<implementation name>").Methods
Extend the metrics with a ReadoutTrigger in a given Playlist Segment.
Filter out labels from the contents in self.
Get all components in the labels in self
Get all readout keys in the labels in self
Get all the labels in self
- Parameters:
- integration_occurrences: dict[str, list[int]]#
Map each integration readout label (of the format
"<component>__<readout key>") to its number of occurrences in each Playlist segment.
- timetrace_occurrences: dict[str, list[int]]#
Map each time trace label (of the format
"<component>__<readout key>") to its number of occurrences in each Playlist segment.
- timetrace_lengths: dict[str, int]#
Map each time trace label (of the format
"<component>__<readout key>") to its number of time trace samples.
- implementations: dict[str, set[str]]#
Map each integration or time trace readout label to its implementations (of the format
"<measure gate name>.<implementation name>").
- extend(trigger, seg_idx)#
Extend the metrics with a ReadoutTrigger in a given Playlist Segment.
- Parameters:
trigger (ReadoutTrigger) – The readout trigger.
seg_idx (int) – The index of the Playlist segment
triggerbelongs to.
- Return type:
None
- filter_out(labels=None, components=None, keys=None)#
Filter out labels from the contents in self.
- get_labels(integration=True, timetrace=True)#
Get all the labels in self
- get_components(integration=True, timetrace=True)#
Get all components in the labels in self
- get_keys(integration=True, timetrace=True)#
Get all readout keys in the labels in self