pygsti.tools.optools.frobeniusdist_squared#
- frobeniusdist_squared(a, b)#
Returns the square of the frobenius distance between arrays: (||a - b||_Fro)^2.
This could be inlined, but we’re keeping it for API consistency with other distance functions.
- Parameters:
a (numpy array) – First matrix.
b (numpy array) – Second matrix.
- Returns:
The resulting frobenius distance.
- Return type:
float