pygsti.frobeniusdist2

pygsti.frobeniusdist2(A, B)
Returns the square of the frobenius distance between gate

or density matrices A and B given by :

sum( (A_ij-B_ij)^2 )

Parameters:
  • A (numpy array) – First matrix.
  • B (numpy array) – Second matrix.
Returns:

The resulting frobenius distance.

Return type:

float