exa.core.readout_helpers.resolve_target_name_for_f_state#
- resolve_target_name_for_f_state(run_result, settings, qubit)#
Resolve the name of the variable in the dataset carrying the most information about the f-state.
If the experiment was run in single_shot mode and the classifier exists, classifies the data into three states. If the classifier does not exist, or the experiment was run in complex mode, tries to use the average f state response. If that does not exist, tries to use contrast. If the experiment was run in any other mode, raises an error.
- Parameters:
run_result (RunResult) – A RunResult instance.
settings (SettingNode) – A SettingNode instance.
qubit (str) – A qubit for which to resolve the f-state.
- Returns:
The name of the f-state variable.
- Return type: