Test suite: simpler = better? #239
Replies: 2 comments
-
I think this would certainly be an improvement! One point is that the energy used for testing does sometimes does need to be different as not all the algorithms converge to the exact answer. But that can be handled on a case by case basis. Another option for energy is that we add known values to each molecule in molecule_library. For example, |
Beta Was this translation helpful? Give feedback.
-
That is why I thought of keeping it small as H2 would, with most of the ansatze that consider single and double excitations, give the FCI energy or something near. For other ansatze, we could only test the according to the number of gates or change the energy for each case. For the second point you raised, we could indeed put references energies (FCI, CCSD, ...) directly into a data structure for test (a little like |
Beta Was this translation helpful? Give feedback.
-
Hello, I have been working on a no-pyscf version of Tangelo. During this process, I had to change code in many test folders. I compile the list of molecular systems needed for our test:
I feel this is a bit all over the place, with different reference values even with the very same molecular systems. I wonder if it would be beneficial to restrict ourselves to 2-3 molecules in our testing. The code could be improved to centralize the reference values to a single file, for e.g.
And in another file, where
TangeloTest
is imported.Potential improvements:
TangeloTest
and/orLinqTest
classes.Beta Was this translation helpful? Give feedback.
All reactions