24 March 2020 2 10K Report

I am using numpy in python along with the linalg package to solve for the eigenvalues and eigenvectors of a 2x2 matrix. I also did this by hand, and coded the brute-force algebra step by step to compare with the numpy outputs. While the diagonals between the two methods are the same, the off-diagonal values are slightly different. Here is what is odd: they are both effectively zero i.e. 10^-10 to 10^-13, but they are not the same. Does this have to do with how python rounds numbers between using numpy and just doing arithmetic??

For reference, I am using the NOCI-MP2 method along with ALMO states, combining the ALMO states into one multireference wavefunction. When attempting to block diagonalize, the new Fock matrices are different between the methods (only added last part in case someone wanted to know why I was doing this). We are testing a new way to obtain coupling values between states using QChem. Thanks so much for any and all help.

More Eric Welch's questions See All
Similar questions and discussions