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:
- Returns:
tuple of three data arrays, containing the fit, the qubit phase and amplitude respectively
- Return type: