pygsti.gm_to_pp¶
-
pygsti.
gm_to_pp
(mxInGellMannBasis, dimOrBlockDims=None)¶ Convert a gate matrix in the Gell-Mann basis of a density matrix space to the Pauil-product 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 mxInPauliProdBasis 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 Pauli-product basis. Array size is the same as mxInGellMannBasis.
Return type: numpy array