pygsti.tools.optools.generator_infidelity

pygsti.tools.optools.generator_infidelity#

generator_infidelity(a, b, mx_basis='pp')#

Returns the generator infidelity between a and b, where b is the “target” operation. Generator infidelity is given by the sum of the squared hamiltonian error generator rates plus the sum of the stochastic error generator rates.

GI = sum_k(H_k**2) + sum_k(S_k)

Parameters:
  • a (numpy.ndarray) – The first process (transfer) matrix.

  • b (numpy.ndarray) – The second process (transfer) matrix.

  • mx_basis (mx_basis : {'std', 'gm', 'pp', 'qt'} or Basis object) – The basis that a and b are in. Allowed values are Matrix-unit (std), Gell-Mann (gm), Pauli-product (pp), and Qutrit (qt) (or a custom basis object).

Return type:

float