Skip to content

Conversation

emstoudenmire
Copy link
Collaborator

This PR fixes the eigen function to handle fermionic matrices or operators which have an In,Out index ordering (e.g. "dual operators") such as density matrices or density-matrix-like messages. It also includes new tests.

Specifically, in cases where the tensor components are a Hermitian positive semidefinite (HPSD) matrix, then we want eigen to return a diagonal "D" ITensor which has non-negative entries when its indices are in the In, Out ordering.

Commits:

  • Initial fix of arrows for dual, HPSD fermionic matrix
  • Format & remove comment
  • Add tests for both types of HPSD fermionic matrices
  • Bump version

Co-authored-by: Matt Fishman <mtfishman@users.noreply.github.com>
@emstoudenmire
Copy link
Collaborator Author

@mtfishman does this PR look ok to you now that tests are passing? (Except Jenkins which I'm not sure about.)

@mtfishman
Copy link
Member

Looks good to me.

Test failures are unrelated, it may be related to a cuTENSOR issue discussed here: JuliaGPU/CUDA.jl#2881. If I'm following that thread correctly, an explanation might be that our Jenkins setup is running on a GPU that is not supported by the latest versions of cuTENSOR.

@mtfishman mtfishman merged commit bd99404 into main Sep 22, 2025
12 of 13 checks passed
@mtfishman mtfishman deleted the fermion_eigen branch September 22, 2025 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants