QuditSettings#
- class QuditSettings(ref_traces: List[ndarray])[source]#
Bases:
object
Collection of qudit settings for multistate discrimination.
Qudit settings are the integration weights, thresholds, and the assignment vector for qudit state discrimination. These settings are initialized based on reference traces for each state, which need to be provided as input to the constructor of this class.
- Parameters:
ref_traces (List[ndarray]) – List of (complex-valued) reference traces, one vector per state. The reference traces are typically obtained by an averaged scope measurement of the readout resonator response when the qudit is prepared in a certain state.
Methods
__init__
(ref_traces)Calculates the theoretical assignment vector.
Scales all weight vectors with a common factor.
Resets the thresholds of each weight to the center.
Attributes
Vector assigning state indices for each threshold comparison outcome.
Length of the weight vectors as number of samples.
Number of states (d) of the qudit.
Dictionary of states of the qudit.
Threshold values, one per weight vector, for one-vs-one classification.
List of weight vectors for one-vs-one classification.