exa.core.util.phase_helper.get_phase_array

exa.core.util.phase_helper.get_phase_array#

get_phase_array(data_array, phase_coord, prefix='')#

Calculates the fit, phase and amplitude arrays, by collapsing the phase dimension on the given data. The fit data array has the same dimensions as the input data array, and the phase and amplitude arrays have the ‘phase’ dimension collapsed.

Parameters:
  • data_array (DataArray) – array containing the data, one dimension of which is phase

  • phase_coord (str) – name of the phase coordinate in the data array

  • prefix (str) – name to attach to the phase and amplitude arrays

Returns:

tuple of three data arrays, containing the fit, the qubit phase and amplitude respectively

Return type:

tuple[DataArray, DataArray, DataArray]