pygsti.tracedist

pygsti.tracedist(A, B)

Compute the trace distance between matrices A and B, given by:

D = 0.5 * Tr( sqrt{ (A-B)^2 } )
Parameters:B (A,) – The matrices to compute the distance between.