Skip to content

Update DeltaSCF Hessian and simplify FR tests - #13

Merged
wtpeter merged 2 commits into
NonDFT:mainfrom
wtpeter:deltascf-hessian-fr-cleanup
Sep 23, 2026
Merged

wtpeter merged 2 commits into
NonDFT:mainfrom
wtpeter:deltascf-hessian-fr-cleanup

Conversation

@wtpeter

@wtpeter wtpeter commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

Update the SGM ROHF Hessian using PySCF PR #3448, remove FR reference cycles, and tidy sanity checks, logging, and documentation. Simplify FR tests and add the HCHO Rydberg triplet benchmark against Q-Chem and the existing SGM reference.

Validation: all 5 SGM/FR tests passed.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Unresolved critical validation and unsupported-group issues, along with lifecycle and validation concerns, block approval.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 2 High severity · 1 Medium severity

Open (3)
What changed in this PR

Updates the Delta-SCF SGM ROHF Hessian and simplifies FR workflows and benchmarks.

Changes:

  • Adapts the ROHF Hessian-vector implementation from PySCF PR #3448.
  • Refactors FR validation, logging, occupation handling, and documentation.
  • Simplifies FR tests and adds the HCHO Rydberg-triplet benchmark.
File Summary
src/​nest/​deltascf/​tests/​test_sgm.py Cleans up SGM tests.
src/​nest/​deltascf/​tests/​test_fr.py Simplifies FR tests and adds the HCHO benchmark.
src/​nest/​deltascf/​sgm.py Updates the ROHF Hessian. Moderate (3 votes): parameter validation must remain unconditional. Nit (1 vote): add arbitrary Hessian-vector finite-difference and symmetry regression coverage.
src/​nest/​deltascf/​fr.py Refactors FR lifecycle and validation. Critical (3 votes): sanity checks must not be gated by WARN verbosity. Critical (1 vote): restore explicit Abelian-group validation or support multidimensional irreps. Moderate (1 vote): the weakref MOM implementation still retains a bound getter cycle.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/nest/deltascf/fr.py
Comment on lines +129 to +130
if self.mol.symmetry and self.mol.groupname in ('Dooh', 'Coov', 'SO3'):
raise NotImplementedError('FR supports Abelian point groups; select an Abelian subgroup')
Comment thread src/nest/deltascf/fr.py Outdated
Comment on lines +147 to +148
if self.verbose >= logger.WARN:
self.check_sanity()
Comment thread src/nest/deltascf/sgm.py Outdated
Comment on lines +325 to +326
if self.verbose >= logger.WARN:
self.check_sanity()
@wtpeter
wtpeter merged commit f6d933b into NonDFT:main Sep 23, 2026
1 check passed
@wtpeter
wtpeter deleted the deltascf-hessian-fr-cleanup branch September 25, 2026 08:30
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