IntegrationWeight#

class IntegrationWeight(state_left: QuditState, state_right: QuditState)[source]#

Bases: object

Represents integration weights vectors for one-vs-one classification.

Differential weight vectors are defined as the complex conjugate of the difference between reference traces of two states. They are used for weighed integration in the multi-state discrimination units.

Parameters:
  • state_left (QuditState) – The state corresponding to the reference trace used as the left side of the subtraction operator.

  • state_right (QuditState) – The state corresponding to the reference trace used as the right side of the subtraction operator.

Methods

__init__(state_left, state_right)

center_threshold(trace1, trace2)

Center the threshold value between trace1 and trace2.

center_threshold_ref()

Center the threshold value between the left and right reference traces.

scale(factor)

Scales the weight vector with a factor.

Attributes

left_state

The state corresponding to the left side of the subtraction.

right_state

The state corresponding to the right side of the subtraction.

threshold

Get the threshold value used together with this weight.

vector

The vector of integration weights.