Reading determinants back from an external SCI solver: the format and index convention are unfixed
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 28/100
Direzione di ricerca
Read python/unrestricted_FCIDUMP.py, ci_to_mps.as_dets, and examples/python/mps/04-guess_from_determinants.py to trace the existing determinant conventions and chain constraints. Add format adapters that feed one internal converter, starting with SBD/Dice dets text, then gate the round trip with tests/python/test_unrestricted_fcidump.py. Done means the converted chain’s energy matches the same wavefunction contracted by PySCF, including index, phase, frozen-core, and orbital-order conventions.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The starting-guess round trip is half built. Outbound has a module: python/unrestricted_FCIDUMP.py
writes the active space for an external SCI solver. Inbound has nothing — the step from that
solver's determinant output to something ci_to_mps.as_dets accepts is currently the caller's
problem, with no fixed format and no documented target convention.
What has to be pinned
Each of these is a silent wrong energy if guessed, not a crash:
- Index convention.
unrestricted_FCIDUMP._interleavedwrites2*p + spin + 1— SBD's
_UHFindexing, spin alternating one spatial orbital at a time, deliberately not the
Qiskit-fermions contiguous-alpha-then-beta block. So determinants come back over2*ncas
interleaved spin-orbitals, while our internal currency isncasspatial occupations
0/1/2/3= empty/alpha/beta/doubly. Nothing folds one into the other. - Coefficient convention.
as_detsexpects PySCF's spin-grouped ordering (alla+then all
b+) and before the Li 2021 Eq. 13 phase, whichci_encodingapplies. A list that arrives
already phased, or in the solver's own ordering, converts without complaint. - Normalization. Accepted either way —
from_cifolds the norm into site 0 — so an
unnormalized list is not an error but shows up incanonical_error()[0]and nowhere else. - Frozen core.
ci_to_dets/cisd_detstakencore=; a solver's determinants may or may not
include it. - Orbital order. Determinants name orbitals, the chain names sites. With
reorderactive the
permutation must be passed (dets_to_chain(..., order=)) so the fermionic sign is carried;
dropping it leaves every dimension right and moves the energy by ~1e-1 Ha. - The last-bond constraint. The final orbital must appear in all four occupations across the
list, ormps_env_isometriesrefuses the chain (see
examples/python/mps/04-guess_from_determinants.py). A truncated CI can easily violate this.
Shape
One adapter per input format, all funnelling into one converter to the internal encoding — the
same "one internal currency" split ci_guess already uses, so every format shares the tests
below it. Formats worth having: SBD/Dice dets text, and whatever else we actually feed it.
Home: beside the outbound half rather than in ci_to_mps. This is I/O and a convention, not MPS
algebra, and unrestricted_FCIDUMP.py is already the module that owns "the format an external
SCI solver speaks".
Gate it as a round trip: write an active space out, read a determinant file back, convert,
and check the energy of the resulting chain against the same wavefunction contracted by pyscf.
That is the only check that sees an index-convention error — tests/python/test_unrestricted_fcidump.py
already gates the outbound half that way.
Related: #34 (MPS storage, whose MPS half is #36). This is the CI/determinant path, not the MPS
file format.
- Lingua principale
- C++
- Stelle
- 3
- Fork
- 0
- Merge medio
- 2g 8h
- PR unite (30g)
- 31
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Algorithmiq/exa-dmrg
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
Algorithmiq/exa-dmrg#153 ·
I maintainer di solito rispondono entro 2 giorni
-
Add CITATION.cff once the paper is outForse già presa @FabioTarocco l’ha presa 2 giorni fa. Apertadocumentation request
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
Algorithmiq/exa-dmrg#106 · 2 assegnatari ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
Algorithmiq/exa-dmrg#161 ·
I maintainer di solito rispondono entro 2 giorni
-
bug cpp
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
Algorithmiq/exa-dmrg#157 ·
I maintainer di solito rispondono entro 2 giorni
-
Shorten the tests of the wheels in cibuildwheelForse già presa @robertodr l’ha presa 1 giorno fa. Apertaci request
Algorithmiq/exa-dmrg#155 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di Algorithmiq/exa-dmrg
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
gofractally/psibase#2379 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
simnJS/AnyPS5#735 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
needs-format
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Niko1221/Strata#7719 · 1 commento ·
I maintainer di solito rispondono entro 4 giorni