spinqick.helper_functions.analysis
Functions for analyzing data.
Attributes
Functions
|
Calculate data magnitude from acquire function output. |
|
Calculate transconductance from acquire function output. |
|
Threshold data. |
|
Take magnitude of data, take difference between singlet and triplet data and threshold if |
|
Calculates conductance from raw data and saves on the analyzed_data attribute. |
|
Calculates transconductance from raw data and saves on the analyzed_data attribute. |
|
Calculates the electron temperature from a 1D sweep over a loading line. |
|
Fits gaussian mixture models to integrated measurements. |
|
Fit data to a gaussian. |
|
Fit data to a sigmoid. |
|
Subtract reference measurement from actual data. |
|
Calculate thresholded 0 or 1 data from analyzed data and average after thresholding. |
|
Calculates conductance and if desired the thresholded data from a spinqick data object. |
Module Contents
- spinqick.helper_functions.analysis.logger
- spinqick.helper_functions.analysis.analyze_conductance(data)
Calculate data magnitude from acquire function output.
- Parameters:
data (List[numpy.ndarray])
- spinqick.helper_functions.analysis.analyze_transconductance(data)
Calculate transconductance from acquire function output.
- Parameters:
data (List[numpy.ndarray])
- spinqick.helper_functions.analysis.thresh_psb(data, threshold)
Threshold data.
- Parameters:
data (numpy.ndarray)
threshold (float)
- spinqick.helper_functions.analysis.interpret_data_psb(data, diff=True, thresh=None)
Take magnitude of data, take difference between singlet and triplet data and threshold if needed.
- spinqick.helper_functions.analysis.calculate_conductance(data, adc_conversion, average_level=None)
Calculates conductance from raw data and saves on the analyzed_data attribute.
- Parameters:
adc_conversion (list[float])
average_level (spinqick.helper_functions.spinqick_enums.AverageLevel | None)
- spinqick.helper_functions.analysis.calculate_transconductance(data, adc_conversion)
Calculates transconductance from raw data and saves on the analyzed_data attribute.
- Parameters:
adc_conversion (list[float])
- spinqick.helper_functions.analysis.calculate_electron_temperature(data, plunger_gate)
Calculates the electron temperature from a 1D sweep over a loading line.
- Parameters:
plunger_gate (str)
- spinqick.helper_functions.analysis.fit_blobs(data, n_components=2)
Fits gaussian mixture models to integrated measurements.
- Parameters:
data (numpy.ndarray)
n_components (int)
- Return type:
tuple[numpy.ndarray, numpy.ndarray, numpy.ndarray]
- spinqick.helper_functions.analysis.fit_gaussian(x_data, y_data)
Fit data to a gaussian.
- spinqick.helper_functions.analysis.fit_sigmoid(x_data, y_data)
Fit data to a sigmoid.
- Parameters:
x_data (numpy.ndarray)
y_data (numpy.ndarray)
- spinqick.helper_functions.analysis.calculate_difference(data, average_level=None)
Subtract reference measurement from actual data.
- Parameters:
average_level (spinqick.helper_functions.spinqick_enums.AverageLevel | None)
- spinqick.helper_functions.analysis.calculate_thresholded(data, threshold, average_level=None)
Calculate thresholded 0 or 1 data from analyzed data and average after thresholding.
- Parameters:
threshold (List[float])
average_level (spinqick.helper_functions.spinqick_enums.AverageLevel | None)
- spinqick.helper_functions.analysis.analyze_psb_standard(sq_data, adc_unit_conversions, reference, thresh, threshold, final_avg_lvl=spinqick_enums.AverageLevel.BOTH)
Calculates conductance and if desired the thresholded data from a spinqick data object.
- Parameters:
sq_data (spinqick.core.spinqick_data.PsbData)
adc_unit_conversions (List[float])
reference (bool)
thresh (bool)
threshold (float | None)
final_avg_lvl (spinqick.helper_functions.spinqick_enums.AverageLevel | None)