pygsti.tools.stdmx_to_ppvec

pygsti.tools.stdmx_to_ppvec(m)
Convert a matrix in the standard basis to
a vector in the Pauli basis.
Parameters:m (numpy array) – The matrix, shape 2x2 (1Q) or 4x4 (2Q)
Returns:The vector, length 4 or 16 respectively.
Return type:numpy array