pygsti.vec_to_stdmx¶
-
pygsti.
vec_to_stdmx
(v, basis)¶ Convert a vector in the given basis to a matrix in the standard basis.
A convenience function for calling [pp,gm,std]vec_to_stdmx(v) based on the value of basis.
Parameters: - v (numpy array) – The vector
- basis ({“std”, “gm”, “pp”}) – The abbreviation for the basis used to interpret v (“gm” = Gell-Mann, “pp” = Pauli-product, “std” = matrix unit, or standard).
Returns: Return type: numpy array