pygsti.tools.optools.extract_elementary_errorgen_coefficients#
- extract_elementary_errorgen_coefficients(errorgen, elementary_errorgen_labels, elementary_errorgen_basis='PP', errorgen_basis='pp', return_projected_errorgen=False)#
Extract a dictionary of elemenary error generator coefficients and rates from the specified dense error generator matrix.
- Parameters:
errorgen (numpy.ndarray) – Error generator matrix
elementary_errorgen_labels (list of `ElementaryErrorgenLabel`s) – A list of `ElementaryErrorgenLabel`s corresponding to the coefficients to extract from the input error generator.
elementary_errorgen_basis (str or Basis, optional (default ‘PP’)) – Basis used in construction of elementary error generator dual matrices.
errorgen_basis (str or Basis, optional (default ‘pp’)) – Basis of the input matrix specified in errorgen.
return_projected_errorgen (bool, optional (default False)) – If True return a new dense error generator matrix which has been projected onto the subspace of error generators spanned by elementary_errorgen_labels.
- Returns:
projections (dict) – Dictionary whose keys are the coefficients specified in elementary_errorgen_labels (cast to LocalElementaryErrorgenLabel), and values are corresponding rates.
projected_errorgen (np.ndarray) – Returned if return_projected_errorgen is True, a new dense error generator matrix which has been projected onto the subspace of error generators spanned by elementary_errorgen_labels.