Canonical Fiedler vector in degenerate eigenspaces
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start with the degenerate prototypes in tests/test_orbital_reordering.py and the sol.reorder handling at fcisolver.py:843. Review the projector and fallback proposal, then make the reordering test pass an explicit non-identity permutation so it independently checks the pull-back. Done means degenerate prototypes return a build-independent order, the warning remains when unresolved, and UnrestrictedReordering still checks the pull-back.
Written by the indexing model from the issue text.
Description
What happened, and what did you expect?
🤖 AI text below 🤖
#121 made the order from fiedler_order independent of the LAPACK build for near-ties
between components (PR #). That fix cannot help when the Fiedler vector itself is
not unique: if λ2 = λ3 (or nearly), the eigenvector can be any vector of the eigenspace,
and the build picks one. The engine now warns on stderr when (λ2 − λ1)/‖L‖ or
(λ3 − λ2)/‖L‖ is below 1e-4, and returns the order anyway.
Proposal: define a canonical vector in that case.
f = P·r / ‖P·r‖, withPthe projector on the eigenspace of the cluster containing
λ2 (it does not depend on the basis the solver returns) andr_i = i − (n−1)/2the
centred ramp.- Conditions: the gap at the edges of the cluster is at least
1e-4·‖L‖, and
‖P·r‖/‖r‖ ≥ 1e-4. - Fallbacks if they fail:
r_i = (i − c)², then unit vectors.
On every degenerate prototype checked, this gives a unique order.
It was left out of #121 because, on a uniform mutual information, the projector gives
the identity order, and UnrestrictedReordering.test_reordering_actually_reordered
rejects it. That guard exists because an identity permutation would make the other
assertions pass without exercising the pull-back. So this needs:
- A design review of the projector and its fallbacks.
- A guard that does not depend on the engine's choice: pass an explicit non-identity
permutation asreorder(sol.reorderaccepts a list through_reorder_setting,
fcisolver.py:843).
Acceptance:
- The order is unique, and the same on every build, for the degenerate prototypes.
UnrestrictedReorderingstill checks that a non-identity order is pulled back.- The warning stays for the cases the projector cannot resolve.
Refs: #121, PR #160 .
How to reproduce it
🤖 AI text below 🤖
Not a crash: the order of the orbitals changes with the build when the Fiedler vector
is degenerate, so there is no single failing command.
Where to see it: the degenerate prototypes in tests/test_orbital_reordering.py (the
tests that expect the warning [compop] WARNING: the Fiedler vector is degenerate,
added in PR #160 ). With reorder="fiedler" or "fiedler-mi", on an active space
whose weight matrix has a degenerate second eigenvalue, the engine prints that warning
and the returned order depends on the LAPACK build and core type.
Expected: one order, the same on every build.
Severity
None
- Dominant language
- C++
- Stars
- 3
- Forks
- 0
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 31
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Algorithmiq/exa-dmrg
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Algorithmiq/exa-dmrg#153 ·
Maintainers usually reply within 2 days
-
Add CITATION.cff once the paper is outPossibly taken @FabioTarocco claimed this 1 day ago. Opendocumentation request
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Algorithmiq/exa-dmrg#106 · 2 assignees ·
Maintainers usually reply within 2 days
-
bug cpp
Difficulty 5/5 Over a week Newbie friendliness 35/100
Algorithmiq/exa-dmrg#157 ·
Maintainers usually reply within 2 days
-
Shorten the tests of the wheels in cibuildwheelPossibly taken @robertodr claimed this 1 day ago. Openci request
Algorithmiq/exa-dmrg#155 · 1 comment · 1 assignee ·
Maintainers usually reply within 2 days
-
Coverage jobs failPossibly taken @robertodr claimed this 1 day ago. Openbug
Algorithmiq/exa-dmrg#148 · 1 assignee ·
Maintainers usually reply within 2 days
All issues in Algorithmiq/exa-dmrg
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
simnJS/AnyPS5#735 · 1 comment ·
Maintainers usually reply within 1 day
-
needs-format
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Niko1221/Strata#7719 · 1 comment ·
Maintainers usually reply within 4 days
-
area:tests kind:test
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day