Skip to content

Conversation

@sunqm
Copy link
Contributor

@sunqm sunqm commented Feb 7, 2019

Fix ccsd amplitudes.

Copy link
Contributor

@babbush babbush left a 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!

@babbush babbush merged commit 0e467e8 into quantumlib:master Feb 7, 2019
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)

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)

Copy link
Contributor

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?

sunqm added a commit to sunqm/OpenFermion-PySCF that referenced this pull request Feb 8, 2019
babbush pushed a commit that referenced this pull request Feb 8, 2019
* 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
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

Successfully merging this pull request may close these issues.

3 participants