mpsprep.helpers.best_s_val_truncation_idx
- mpsprep.helpers.best_s_val_truncation_idx(s_vals)[source]
Given a list of singular values, this function returns the index of the singular value that is the best valid candidate for truncation. This is determined by 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
- best_valid_s_val_truncation_idxarray-like of int of shape (2,)
Index of the singular value that is the best valid candidate for truncation.