You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems the current truncated SVD is by computing all dense SVD and then perform truncation, which is more expensive than directly compute truncated SVD by iterative method.
But there might be a problem for truncated SVD when there are charge sectors. One needs to determine which sector does the next computed value belongs to.
To reply to the first issue, indeed this package mostly has "dense" methods, and doesn't currently have all that much iterative methods included. I was definitely playing around with writing some KrylovKit.jl wrappers, but I think I got somewhat stuck on how to properly configure these algorithms, as it seems like there are too many parameters, and because of the generality of our truncation algorithms, supporting these tends to require the full spectrum. This is all to say, if you are up for trying to come up with an interface, that would be great, but from my experience that is not the easiest 😉
For the second issue, in general when there are charge sectors indeed the interface becomes even more annoying. Because of the block-diagonal structure, there really isn't that much more you can do except compute one/some extra values in each of the blocks, and then try to figure out where to go from that. Unfortunately, to do this efficiently, that does kind of mean that we would have to support "warm starting" the iterative solvers, as you basically then will have to recompute some of the blocks to find where the additional values should go, and probably don't want to start this from scratch. This is however currently not really possible with KrylovKit, which is more or less why this got stuck a bit.
Activity
lkdvos commentedon Nov 9, 2026
To reply to the first issue, indeed this package mostly has "dense" methods, and doesn't currently have all that much iterative methods included. I was definitely playing around with writing some KrylovKit.jl wrappers, but I think I got somewhat stuck on how to properly configure these algorithms, as it seems like there are too many parameters, and because of the generality of our truncation algorithms, supporting these tends to require the full spectrum. This is all to say, if you are up for trying to come up with an interface, that would be great, but from my experience that is not the easiest 😉
For the second issue, in general when there are charge sectors indeed the interface becomes even more annoying. Because of the block-diagonal structure, there really isn't that much more you can do except compute one/some extra values in each of the blocks, and then try to figure out where to go from that. Unfortunately, to do this efficiently, that does kind of mean that we would have to support "warm starting" the iterative solvers, as you basically then will have to recompute some of the blocks to find where the additional values should go, and probably don't want to start this from scratch. This is however currently not really possible with KrylovKit, which is more or less why this got stuck a bit.
Chenqitrg commentedon Nov 10, 2026
I see. Thanks for your reply.