pygsti.tools.gmvec_to_stdmx

pygsti.tools.gmvec_to_stdmx(v)
Convert a vector in the Gell-Mann basis to a matrix
in the standard basis.
Parameters:v (numpy array) – The vector (length must be a perfect square, e.g. 4, 9, 16, ...)
Returns:The matrix, shape (2,2) or (4,4) respectively.
Return type:numpy array