static KrausModel.unpack_kraus_matrix(m)[source]

Helper to optionally unpack a JSON compatible representation of a complex Kraus matrix.

Parameters:m (Union[List[Any], ndarray]) – The representation of a Kraus operator. Either a complex square matrix (as numpy array or nested lists) or a JSON-able pair of real matrices (as nested lists) representing the element-wise real and imaginary part of m.
Return type:ndarray
Returns:A complex square numpy array representing the Kraus operator.