Skip to content

classification_functions

tergite_autocalibration.lib.utils.classification_functions

Functions:

Name Description
generate_iq_shots

given the probabilities array, generate an array of IQ points

generate_iq_shots

generate_iq_shots(probabilities: ndarray, qubit: str, loops: int) -> ndarray

given the probabilities array, generate an array of IQ points of size loops that given the loaded discriminator would produce the probabilities. This function is the reverse of calculate_probabilities and is used to create dummy datasets. Example of probabilities array: [0.2, 0.3, 0.5]