Skip to content

Nexus: Handle J3 terms in spin-orbit calculations#5184

Merged
ye-luo merged 2 commits into
QMCPACK:developfrom
aannabe:nxs_j3_soc
Oct 7, 2024
Merged

Nexus: Handle J3 terms in spin-orbit calculations#5184
ye-luo merged 2 commits into
QMCPACK:developfrom
aannabe:nxs_j3_soc

Conversation

@aannabe
Copy link
Copy Markdown
Contributor

@aannabe aannabe commented Sep 23, 2024

Proposed changes

For spin-orbit calculations, we only have up electron species. Currently in Nexus, J3 is written as usual with up and down electrons, which errors out in qmcpack. This PR loops over the three-body-Jastrow object and deletes terms that have up-down interactions.

What type(s) of changes does this code introduce?

  • Bugfix

Does this introduce a breaking change?

  • No

What systems has this change been tested on?

Local machine.

Checklist

  • Yes. This PR is up to date with current the current state of 'develop'

@prckent
Copy link
Copy Markdown
Contributor

prckent commented Sep 23, 2024

Did you investigate the possibility of not creating these terms in the first place?

@aannabe
Copy link
Copy Markdown
Contributor Author

aannabe commented Sep 23, 2024

I haven't investigated that route. Deleting the down terms seemed the easiest way in terms of handling it. Also, J2 was handled similarly to this, but for some reason J3 was left out. If you think it's better to not generate these terms in the first place, I can take a closer look.

@prckent
Copy link
Copy Markdown
Contributor

prckent commented Sep 24, 2024

Thanks -- I was just asking. Probably this is the pragmatic and quickest route and we should go ahead with this (@jtkrogel ?) but clearly it would be cleaner to never create incorrect terms in the first place. That would mean the parts of Nexus that create wavefunction components would inspect the spin and spin-orbit configuration before creating their terms.

@camelto2
Copy link
Copy Markdown
Contributor

camelto2 commented Oct 7, 2024

This LGTM. I am approving in case you need non-ORNL approval, and I would like to have this for my work.

@ye-luo
Copy link
Copy Markdown
Contributor

ye-luo commented Oct 7, 2024

Test this please

@ye-luo ye-luo enabled auto-merge October 7, 2024 16:40
@ye-luo ye-luo merged commit 5a4a0a2 into QMCPACK:develop Oct 7, 2024
@aannabe aannabe deleted the nxs_j3_soc branch October 7, 2024 17:52
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.

4 participants