pygsti.tools.rbtheory.gate_dependence_of_errormaps#
- gate_dependence_of_errormaps(model, target_model, norm='diamond', mx_basis=None)#
Computes the “gate-dependence of errors maps” parameter defined by
delta_avg = avg_i|| E_i - avg_i(E_i) ||,
where E_i are the error maps, and the norm is either the diamond norm or the 1-to-1 norm. This quantity is defined in Magesan et al PRA 85 042311 2012.
- Parameters:
model (Model) – The actual model
target_model (Model) – The target model.
norm (str, optional) – The norm used in the calculation. Can be either ‘diamond’ for the diamond norm, or ‘1to1’ for the Hermitian 1 to 1 norm.
mx_basis ({"std","gm","pp"}, optional) – The basis of the models. If None, the basis is obtained from the model.
- Returns:
delta_avg – The value of the parameter defined above.
- Return type:
float