Skip to content

Inconsistent eigenvalues with cytnx.linalg.Lanczos when using symmetric LinOp #738

@Chan-Sing-Hong

Description

@Chan-Sing-Hong

Description
When using cytnx.linalg.Lanczos with a LinOp that operates on symmetric UniTensors, the eigenvalues results differ from the non-symmetric case, even when the underlying data is equivalent. While exact diagonalization (cytnx.linalg.Eig) remains consistent across both symmetric and non-symmetric representations, the iterative Lanczos solver exhibits significant instability when symmetry is involved.

This instability appears to be contraction-order dependent, suggesting a potential bug in how the LinOp interface or the Lanczos solver handles symmetric sectors during iterative matrix-vector multiplications.

Reproduction Codes
show_symm_Lanczos_issue.html
show_symm_Lanczos_issue.ipynb

Eigenvalues results
Image

Environment
Cytnx Version: 1.0.1

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