pygsti.tools.std_to_gm¶
-
pygsti.tools.
std_to_gm
(mxInStdBasis, dimOrBlockDims=None)¶ Convert a gate matrix in the Standard basis of a density matrix space to the Gell-Mann basis (of the same space).
Parameters: - mxInStdBasis (numpy array) – The gate matrix, (a 2D square array)
- dimOrBlockDims (int or list of ints, optional) – Structure of the density-matrix space. If None, then assume mxInStdBasis operates on a single-block density matrix space, i.e. on K x K density matrices with K == sqrt( mxInStdBasis.shape[0] ).
Returns: The given gate matrix converted to the Gell-Mann basis. Array size is the same as mxInStdBasis.
Return type: numpy array