You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m interested in working on this issue if it is still available.
I came across the issue while looking for a contribution related to OpenFermion and quantum chemistry. I noticed that the PySCF direct_spin1.py link referenced in the original issue is no longer available at that URL, so I wanted to check whether the proposed approach is still the preferred way to obtain the non-spin-summed RDMs with the current PySCF API.
If the issue is still relevant, I’d be happy to investigate the current PySCF implementation, update the approach as needed, and work on the corresponding tests.
Would it be possible to assign this issue to me if no one is currently working on it?
I've finished implementing this using direct_spin1.make_rdm12s to get the non-spin-summed RDMs.
I also fixed the slicing in test_accessing_rdm() to properly account for the cross-spin blocks ($\alpha\beta\beta\alpha$ and $\beta\alpha\alpha\beta$), and all tests are passing locally now.
Should I go ahead and open a PR for review?
Thanks!
Activity
anishbhujbal7 commentedon Sep 1, 2026
Hi @ncrubin,
I’m interested in working on this issue if it is still available.
I came across the issue while looking for a contribution related to OpenFermion and quantum chemistry. I noticed that the PySCF direct_spin1.py link referenced in the original issue is no longer available at that URL, so I wanted to check whether the proposed approach is still the preferred way to obtain the non-spin-summed RDMs with the current PySCF API.
If the issue is still relevant, I’d be happy to investigate the current PySCF implementation, update the approach as needed, and work on the corresponding tests.
Would it be possible to assign this issue to me if no one is currently working on it?
Thanks!
ncrubin commentedon Sep 1, 2026
Hi, Sure! I see the link is broken. The new link is probably here (http://github.com/pyscf/pyscf/blob/master/pyscf/fci/direct_spin1.py) though it has been awhile since I looked. The goal was to get spinorbital RDMs. You can probably also use the example
http://github.com/pyscf/pyscf/blob/master/examples/fci/31-apply_2nd_quantized_op.py
but it will be much slower
anishbhujbal7 commentedon Sep 2, 2026
Hi @ncrubin,
I've finished implementing this using$\alpha\beta\beta\alpha$ and $\beta\alpha\alpha\beta$ ), and all tests are passing locally now.
direct_spin1.make_rdm12sto get the non-spin-summed RDMs.I also fixed the slicing in
test_accessing_rdm()to properly account for the cross-spin blocks (Should I go ahead and open a PR for review?
Thanks!
ncrubin commentedon Sep 2, 2026
sure!