# qiskit.ignis.measurement.LinearIQDiscriminator.format_iq_data¶

LinearIQDiscriminator.format_iq_data(iq_data)

Takes IQ data obtained from get_memory(), applies the qubit mask and formats the data as a list of lists. Each sub list is IQ data where the first half of the list is the I data and the second half of the list is the Q data.

Parameters

iq_data (np.ndarray) – data obtained from get_memory().

Return type

List[List[float]]

Returns

A list of shots where each entry is a list of IQ points.

Raises

PulseError – if the measurement return type is unknown