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)

calc_theoretical_assignment_vec()

Calculates the theoretical assignment vector.

normalize_weights()

Scales all weight vectors with a common factor.

reset_thresholds_to_center()

Resets the thresholds of each weight to the center.

Attributes

assignment_vec

Vector assigning state indices for each threshold comparison outcome.

integration_len

Length of the weight vectors as number of samples.

num_states

Number of states (d) of the qudit.

states

Dictionary of states of the qudit.

thresholds

Threshold values, one per weight vector, for one-vs-one classification.

weights

List of weight vectors for one-vs-one classification.