Skip to content

Fix spinors for orb opt#4923

Merged
ye-luo merged 7 commits into
QMCPACK:developfrom
camelto2:spinor_oo
Feb 13, 2024
Merged

Fix spinors for orb opt#4923
ye-luo merged 7 commits into
QMCPACK:developfrom
camelto2:spinor_oo

Conversation

@camelto2
Copy link
Copy Markdown
Contributor

Please review the developer documentation
on the wiki of this project that contains help and requirements.

Proposed changes

Orbital optimization with spinors had a few issues. First, RotatedSPOs were missing a few spin APIs. Second, once the appropriate APIs were added, there were some sizing issues when spinors were used with DiracDeterminants. This is because DD always passes in data structues sized nelec x nelec, whereas in the case of orb opt the spinorset has OrbitalSetSize > nelec. This is now fixed, and orb opt with spinors should be working

Unit tests were modified or added to in order to check both the missing spin APIs in RotatedSPOs as well as the sizing issues in SpinorSet.

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

Delete the items that do not apply

  • Bugfix

Does this introduce a breaking change?

  • No

What systems has this change been tested on?

M1 mac

Checklist

Update the following with a yes where the items apply. If you're unsure about any of them, don't hesitate to ask. This is
simply a reminder of what we are going to look for before merging your code.

  • Yes. This PR is up to date with current the current state of 'develop'
  • Yes. Code added or changed in the PR has been clang-formatted
  • Yes. This PR adds tests to cover any new code, or to catch a bug that is being fixed
  • No. Documentation has been added (if appropriate)

@camelto2 camelto2 requested review from rcclay and ye-luo February 13, 2024 18:49
@ye-luo
Copy link
Copy Markdown
Contributor

ye-luo commented Feb 13, 2024

Test this please

@ye-luo ye-luo enabled auto-merge February 13, 2024 21:01
@ye-luo ye-luo merged commit f6621e2 into QMCPACK:develop Feb 13, 2024
@camelto2 camelto2 deleted the spinor_oo branch February 13, 2024 21:02
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