amir11 said:
Well I'm using the single particle states as basis for the integration
Yes, the integral is over orbitals, i.e. single particle states. A basis function is what you describe your orbitals with. If you'd read (and understood) the thread I linked to, you'd have known that, as well as the fact that these integrals are not normally integrated numerically to begin with.
and am using the product of WF's instead of slater dets to make the comp cost low.
A Slater determinant
is a product of wave-functions! If you were not using Slater determinants, you would not have the two-electron integral given in your first post, and you most certainly wouldn't be using the configuration interaction method, which is an expansion
in Slater determinants. There is
no way to change the scaling and hence the computational cost of the CI method. If you are not using an expansion in SDs over excitations then you are not using the CI method, period.
But any way I think there is something missing in the formula.[..] The integral is easy to evaluate numerically and see that it is not convergant.
Just because something like \int_0^\infty \frac{1}{x} dx diverges, hardly means that \int_0^\infty \frac{f(x)}{x}dx must do so. (Also, the correct numerator is |r_1 - r_2|)
So, in summary:
1) You want to calculate something using a method that
isn't used and
can't be used for that calculation. CI with 50 electrons is feasible, not with 150 atoms.
2) You want to write your own program to do the calculation, despite the fact that
nobody who knew what they were doing
ever writes such a program for the sake of a single calculation, or set of calculations, because:
3) It takes
years to write such a program on the level of the ones in real use today, even if you were John Pople himself. There are hundreds if not thousands of people with PhDs in this area, but only a few dozen programs in widespread use.
4) You're not John Pople. Rather you seem to lack even the most basic knowledge about the method you supposedly want to implement. I teach an undergrad course where we expect the students to know what orbitals, basis sets and Slater determinants are, how the CI method works, and even something about how the integrals are evaluated. But I would
never expect them to write a competent program if they so had a PhD in the subject.
I have a PhD in the subject, and I've never written a complete program for the sake of doing a real calculation. On top of that, I'm now even doubting whether you're up to speed on the calculus involved.
It's not 'just' a matter of evaluating the integrals in question.
Decades of research have gone into techniques for evaluating those integrals. Pople got his Nobel prize largely for it. The Helgaker book referenced in the other thread dedicates over 100 pages to describing modern techniques for Fock integral evaluation, and that's with Gaussian basis sets alone, and solid-state uses other ones as well, with entirely different integration techniques as a result. The way I see it, you have two options:
A) Take some course and/or read an intro textbook, educate yourself on the methods and models that are actually being used calculate what you want to calculate, get the programs implementing these methods, educate yourself on how to use them, and then do your calculations.
or
B) Take a course, continue to the graduate level, get a PhD, spend another number of years writing a program that's close enough to the state-of-the-art to be worth using, and then do your calculations using whatever method is most appropriate at that time. (Which, despite advances in computer technology, is
still not going to be CI)
Other than that, I can't help you. Because what you're proposing right now is a fool's errand.