qlat_utils.get_threshold_idx

qlat_utils.get_threshold_idx(arr, threshold)[source]

return x `` q.interp(arr, [ x, ]) = np.array([ threshold, ]) arr.shape == (len(arr),) ``