mpsprep.helpers.get_max_s_val_ratio

mpsprep.helpers.get_max_s_val_ratio(s_vals)[source]

Given a list of singular values, this function returns the ratio of the largest singular value to the smallest singular value.

Parameters
s_valslist of np.ndarray

List of arrays of singular values.

Returns
max_s_val_ratiofloat

Maximum ratio of the largest singular value to the smallest singular value.