pygsti.frobenius_norm_sq

pygsti.frobenius_norm_sq(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