pygsti.tools.frobeniusnorm2¶
-
pygsti.tools.
frobeniusnorm2
(ar)¶ Compute the squared frobenius norm of an array (or matrix),
sum( each_element_of_a^2 ) )Parameters: ar (numpy array) – What to compute the squared frobenius norm of. Note that ar can be any shape or number of dimenions. Returns: depending on the element type of ar. Return type: float or complex