-
Notifications
You must be signed in to change notification settings - Fork 210
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
Include the option for imaginary parts in the UCC ansatz #455
Conversation
I think unittests are required for this new feature since the feature is totally new. |
44ceb99
to
21a3456
Compare
..._nature/properties/second_quantization/electronic/integrals/two_body_electronic_integrals.py
Outdated
Show resolved
Hide resolved
..._nature/properties/second_quantization/electronic/integrals/two_body_electronic_integrals.py
Outdated
Show resolved
Hide resolved
1ec4f42
to
29570a4
Compare
Pull Request Test Coverage Report for Build 4813358660
💛 - Coveralls |
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.
This LGTM now (assuming CI passes). I'll await another review by @pbark or @woodsp-ibm before merging 👍
Co-authored-by: Max Rossmannek <[email protected]>
This ensures that the HFInitialPoint array has the correct shape.
…als/two_body_electronic_integrals.py
bfa5d8a
to
2996487
Compare
With complex integrals no longer being an issue in the stack (see also #1144), I have updated this PR to the latest changes. |
2996487
to
7fc6622
Compare
7fc6622
to
5d2113a
Compare
…unity#455) * included the option for imaginary parts to ucc * fix sign * fix black * Added unittest for imaginary component * Run black * Fix spelling, lint * Update qiskit_nature/circuit/library/ansatzes/ucc.py Co-authored-by: Max Rossmannek <[email protected]> * Add include_imaginary arg. to subclasses of UCC * Patch the UCC excitation_list when `include_imaginary is True`. This ensures that the HFInitialPoint array has the correct shape. * Update qiskit_nature/properties/second_quantization/electronic/integrals/two_body_electronic_integrals.py * Update ucc_imaginary-8d7d9c3322899a34.yaml * Migrate proposed changes to new code location --------- Co-authored-by: Panagiotis Barkoutsos <[email protected]> Co-authored-by: Marc Sanz Drudis <[email protected]> Co-authored-by: Matthew Treinish <[email protected]> Co-authored-by: Manoel Marques <[email protected]> Co-authored-by: Manoel Marques <[email protected]> Co-authored-by: Max Rossmannek <[email protected]> Co-authored-by: Declan Millar <[email protected]> Co-authored-by: Max Rossmannek <[email protected]>
Summary
A feature added to the ucc.py file to include imaginary contributions to the ucc wave function along with the real parts. To allow for complex values in the Hamiltonian, changes to the 'so_matrix' initiation in the 'two_body_electronic_integrals.py' were added as well.
Details and comments

3. Modified the '_build_fermionic_excitation_ops()' in 'ucc.py' file to incorporate the additions described above