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

LMP2 converence problems #1

Open
pulkin opened this issue Jan 15, 2018 · 0 comments
Open

LMP2 converence problems #1

pulkin opened this issue Jan 15, 2018 · 0 comments

Comments

@pulkin
Copy link
Owner

pulkin commented Jan 15, 2018

LMP2, generally, converges only down to a limitedly small value. The reason may be improper transformation when transforming residuals into updated amplitudes.

local-pyscf/lmp2.py

Lines 101 to 111 in 7fca442

basis = fock_basis_local[k]
virt_e = fock_energies_local[k]
# dual = numpy.linalg.inv(basis).T
v = common.transform(v, basis)
denominator = fock_occ[k[0], k[0]] + fock_occ[k[1], k[1]] - virt_e[:, numpy.newaxis] - virt_e[numpy.newaxis, :]
dt = v / denominator
dt_pao = common.transform(dt, basis.T)
result[k] = dt_pao
t2_diff = max(t2_diff, numpy.abs(dt_pao).max())

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

1 participant