LDAComponentClassifier#

Module: exa.core.multistate_classifier.linear_discriminant_analysis

class LDAComponentClassifier#

Bases: SingleComponentClassifier

Classifier for a single qpu component - a qubit.

Attributes

LABEL

The label used as part of the observation name for this classifier.

MODEL_PARAMETERS

The names of the model parameters used by this classifier.

Methods

apply

Apply the LDA classifier to data.

calibrate

Calibrate the LDA classifier with data.

LABEL = 'lda_component_classifier'#

The label used as part of the observation name for this classifier.

MODEL_PARAMETERS: ClassVar[list[str]] = ['coef', 'inter', 'inverse_assignment_error']#

The names of the model parameters used by this classifier.

apply(input_data, component, data_variable_label, component_override)#

Apply the LDA classifier to data.

Updates the provided data with the classification results.

Parameters:
  • input_data (Dataset) – The dataset to classify.

  • component (str) – The component whose readout data to classify.

  • data_variable_label (str) – The data variable containing the raw readout.

  • component_override (dict[str, Any] | None) – The Model parameters to use.

Return type:

None

calibrate(input_data, component, data_variable_label)#

Calibrate the LDA classifier with data.

Parameters:
  • input_data (Dataset) – The labeled calibration dataset`.

  • component (str) – The component to calibrate the classifier for.

  • data_variable_label (str) – The data variable containing the raw readout.

Returns:

Tha mapping of observation names to calibrated model parameters.

Return type:

dict[str, Any]

Inheritance

Inheritance diagram of exa.core.multistate_classifier.linear_discriminant_analysis.LDAComponentClassifier