pygsti.tools.jtracedist¶
-
pygsti.tools.
jtracedist
(A, B, mxBasis='gm')¶ Compute the Jamiolkowski trace distance between gate matrices A and B, given by:
D = 0.5 * Tr( sqrt{ (J(A)-J(B))^2 } )where J(.) is the Jamiolkowski isomorphism map that maps a gate matrix to it’s corresponding Choi Matrix.
Parameters: - B (A,) – The matrices to compute the distance between.
- mxBasis ({“std”,”gm”,”pp”}, optional) – the basis of the gate matrices A and B : standard (matrix units), Gell-Mann, or Pauli-product, respectively.