The current implementation of mpnum.special.sumup is probably not the best. [1, Eq. (153)] suggests a more efficient algorithm for compression after summation. We should try it out.
[1] U. Schollwöck, “The density-matrix renormalization group in the age of matrix product states,” Annals of Physics, vol. 326, no. 1, pp. 96–192, Jan. 2011.
It's not exactly the sweeping-based solution proposed in [1], but it accomplishes a good scaling by using sparse matrices and (possibly) randomized truncated SVDs.
The current implementation of
mpnum.special.sumup
is probably not the best. [1, Eq. (153)] suggests a more efficient algorithm for compression after summation. We should try it out.[1] U. Schollwöck, “The density-matrix renormalization group in the age of matrix product states,” Annals of Physics, vol. 326, no. 1, pp. 96–192, Jan. 2011.