Skip to content

Add DF complex RCCSD#3114

Open
RHSong wants to merge 3 commits into
pyscf:masterfrom
RHSong:dfcccsd
Open

Add DF complex RCCSD#3114
RHSong wants to merge 3 commits into
pyscf:masterfrom
RHSong:dfcccsd

Conversation

@RHSong
Copy link
Copy Markdown

@RHSong RHSong commented Feb 4, 2026

This PR adds DF complex RCCSD to the CC module. The code is largely based on rccsd.py, with some modifications to make it affordable for around 500 nmos.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Functions defined in this file largely overlap with those in rintermediates.py. Does it make sense to reuse the existing implementations there?

Comment thread pyscf/cc/__init__.py

if isinstance(mf, _DFHF) and mf.with_df:
return dfccsd.RCCSD(mf, frozen, mo_coeff, mo_occ)
if numpy.iscomplexobj(mo_coeff) or numpy.iscomplexobj(mf.mo_coeff):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Based on the eris generation logic in cmplx_dfccsd.py, the complex dfccsd is intended for the mf objects of the off-gamma-point PBC HF calculations. However, this mf object is not an instance of _DFHF. this factory function will not produce a correct complex dfccsd for this mf.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

  1. Please place the testing code inside a def test_xxx function or use the unittest framework.

  2. If cmplx_dfccsd.py is intended to support the off-gamma-point PBC-CCSD, tests for this type of systems should be added. Otherwise, consider removing the corresponding ERI generation code in cmplx_dfccsd.py.

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