ReadoutMetrics#
Module: iqm.pulse.playlist.instructions
- class iqm.pulse.playlist.instructions.ReadoutMetrics(num_segments, integration_occurrences=<factory>, timetrace_occurrences=<factory>, timetrace_lengths=<factory>, implementations=<factory>)#
Bases:
objectNecessary readout metrics needed for return data processing for a single
Playlist.Individual readout operations (and their results) are labeled using a readout label of the format
f"{component}__{readout_key}", wherecomponentis the name of the measured QPU component (typically a qubit), andreadout_keyis a string which identifies the individual measurement operation.Attributes
Number of segments in the Playlist this ReadoutMetrics object represents.
Map each integration readout label to its number of occurrences in each Playlist segment.
Map each time trace readout label to its number of occurrences in each Playlist segment.
Map each time trace readout label to its number of time trace samples.
Map each integration or time trace readout label to its implementations (of the format
f"{measure_gate_name}.{implementation_name}").Methods
Extend the metrics with a ReadoutTrigger in a given Playlist Segment.
Filter out readout labels from the contents of
self.Get all QPU components in the readout labels in
self.Get all readout keys in the readout labels in
self.Get all the readout labels in
self.- Parameters:
- integration_occurrences: dict[str, list[int]]#
Map each integration readout label to its number of occurrences in each Playlist segment.
- timetrace_occurrences: dict[str, list[int]]#
Map each time trace readout label to its number of occurrences in each Playlist segment.
- timetrace_lengths: dict[str, int]#
Map each time trace readout label 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
f"{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 readout labels from the contents of
self.- Parameters:
- Return type:
None
- get_labels(integration=True, timetrace=True)#
Get all the readout labels in
self.
- get_components(integration=True, timetrace=True)#
Get all QPU components in the readout labels in
self.
- get_keys(integration=True, timetrace=True)#
Get all readout keys in the readout labels in
self.
Inheritance
