exa.core.multistate_classifier.utils.compute_three_state_probability_from_complex_data#
- compute_three_state_probability_from_complex_data(run_result, qubit)#
Post processor to calculate and add three state probabilities to the dataset.
Use readout average response phase settings and observations to compute the probabilities of three states, using the barycentric coordinates method from raw complex readout.
The processed data will have the shape
(len(hard_sweeps[0]), ..., len(hard_sweeps[-1]), s0, s1, ...), where s0, s1 etc. denote the dimensions of the soft sweeps.See
compute_three_state_probability()for more details about the computation.- Parameters:
- Returns:
- The
RunResultobject withGROUND_STATE_PROBABILITY,EXCITED_STATE_PROBABILITY and
F_STATE_PROBABILITYadded to the dataset.
- The
- Return type: