Skip to content

Native truncated SVD #324

Open
Open

Description

@Chenqitrg

Hi developers,

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.

Activity

  1. lkdvos commented on Nov 9, 2026

    @lkdvos
    Member

    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.

  2. Chenqitrg commented on Nov 10, 2026

    @Chenqitrg
    Author

    I see. Thanks for your reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions