exa.core.multistate_classifier.utils.compute_three_state_probability_from_complex_data

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:
  • run_result (RunResult) – The run result containing the full dataset and run data.

  • qubit (str) – Qubit whose readout to classify.

Returns:

The RunResult object with GROUND_STATE_PROBABILITY, EXCITED_STATE_PROBABILITY

and F_STATE_PROBABILITY added to the dataset.

Return type:

list[DataArray]