Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The HOMO LUMO calculation equation need to confirm #44

Open
wangyingxie opened this issue Dec 29, 2022 · 1 comment
Open

The HOMO LUMO calculation equation need to confirm #44

wangyingxie opened this issue Dec 29, 2022 · 1 comment

Comments

@wangyingxie
Copy link

Hi I am using the HOMO, LUMO function, but I found the conflicts online.
HOMO = scf_wfn.epsilon_a_subset('AO', 'ALL').np[scf_wfn.nalpha()]
LUMO = scf_wfn.epsilon_a_subset('AO', 'ALL').np[scf_wfn.nalpha() + 1]

@property
def HOMO(self):
    return self.wfn.epsilon_a_subset('AO', 'ALL').np[self.wfn.nalpha()-1]

@property
def LUMO(self):
    return self.wfn.epsilon_a_subset('AO', 'ALL').np[self.wfn.nalpha()]

I want to know which one is correct? Thanks!

@JonathonMisiewicz
Copy link

@wangyingxie

Hi, I'm a Psi developer. The correct code is the second piece you posted (for a closed-shell system).

If there are 5 alpha electrons, then they are numbered 0, 1, 2, 3, 4, so you need 5 - 1 to get the highest occupied molecular orbital.

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

No branches or pull requests

2 participants