-
Notifications
You must be signed in to change notification settings - Fork 44
OpenFermion issue #451 #42
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
Conversation
* Efficient integral transformation function * Fixed n_orbitals
Conflicts: openfermionpyscf/_run_pyscf.py
babbush
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Excellent contribution Qiming. Thanks for the help!
| no, nv = t2.shape[1:3] | ||
| nmo = no + nv | ||
| self._ccsd_single_amps = numpy.zeros((nmo, nmo, nmo, nmo)) | ||
| self._ccsd_single_amps[no:,:no,no:,:no] = t2.transpose(2,0,3,1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is a small typo; the following
self._ccsd_single_amps = numpy.zeros((nmo, nmo, nmo, nmo))
self._ccsd_single_amps[no:,:no,no:,:no] = t2.transpose(2,0,3,1)
should be
self._ccsd_double_amps = numpy.zeros((nmo, nmo, nmo, nmo))
self._ccsd_double_amps[no:,:no,no:,:no] = t2.transpose(2,0,3,1)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh man. @sunqm would you mind editing this in another small PR?
* Update psycf interface * Efficient integral transformation function * Fixed n_orbitals * Extending MolecularData to hold pyscf objects * Bugfix for index convention of eri and 2-pdm * Renamed _molecular_data module and MolecularData class * Removing the DEBUG flag * Updated installation requirements and tests * Updated Author lists * More sanity checks in pyscf_molecular_data * Fix error in PySCFMolecularData.__init__ * Temporarily removed dependence to pyscf in requirements.txt * Name convention of test files. * Updated Author list * A pyscf-1.4.3 compatibility issue * Added travis (for issue #28) * Fix import error (issue #40) * Fix ccsd amps for OpenFermion issue #451 * typo in PR #42 * scale ccsd t2 amplitudes by 0.5 (issue #43) * Update ccsd amps tests
Fix ccsd amplitudes.