mpsprep.helpers.truncate_s_vals
- mpsprep.helpers.truncate_s_vals(s_vals, index_to_drop)[source]
Given a list of singular values, this function returns the list of singular values after dropping the singular value at the given index. Does not modify the original list.
- Parameters
- s_valslist of np.ndarray
List of arrays of singular values.
- index_to_droparray-like of int of shape (2,)
Index of the singular value to drop.
- Returns
- truncated_s_valslist of np.ndarray
List of arrays of singular values after dropping the singular value at the given index.