pygsti.gm_to_std¶
-
pygsti.
gm_to_std
(mxInGellMannBasis, dimOrBlockDims=None)¶ Convert a gate matrix in the Gell-Mann basis of a density matrix space to the Standard basis (of the same space).
Parameters: - mxInGellMannBasis (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 mxInGellMannBasis operates on a single-block density matrix space, i.e. on K x K density matrices with K == sqrt( mxInGellMannBasis.shape[0] ).
Returns: The given gate matrix converted to the Standard basis. Array size is the same as mxInGellMannBasis.
Return type: numpy array