qat.quops.math_util.convert_density_mat_to_pauli_vec

qat.quops.math_util.convert_density_mat_to_pauli_vec(mat)

Compute the coordinates of a given matrix in the Pauli basis

Parameters

mat (np.ndarray) – the matrix

Returns

a vector of coordinates

Return type

np.ndarray