mpsprep.helpers.coarse_truncate_s_vals

mpsprep.helpers.coarse_truncate_s_vals(s_vals, threshold=1e-15)[source]

Given a list of singular values, this function returns the list of singular values after truncating the singular values below the given threshold. Does not modify the original list.

Parameters
s_valslist of np.ndarray

List of arrays of singular values.

thresholdfloat

Threshold below which singular values are truncated. The default is 1e-15.

Returns
truncated_s_valslist of np.ndarray

List of arrays of singular values after truncating the singular values below the given threshold.