pygsti.tools.pp_to_std

pygsti.tools.pp_to_std(mxInPauliProdBasis, dimOrBlockDims=None)

Convert a gate matrix in the Pauli-product basis of a density matrix space to the Standard basis (of the same space).

Parameters:
  • mxInPauliProdBasis (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( mxInPauliProdBasis.shape[0] ).
Returns:

The given gate matrix converted to the Standard basis. Array size is the same as mxInPauliProdBasis.

Return type:

numpy array