pygsti.ppvec_to_stdmx

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