Reduced BCS type Hamiltonians#770
Merged
ncrubin merged 5 commits intoquantumlib:masterfrom Mar 1, 2022
Merged
Conversation
ncrubin
previously approved these changes
Feb 7, 2022
Collaborator
ncrubin
left a comment
There was a problem hiding this comment.
small nit but LGMT otherwise
| from openfermion import (get_fermion_operator, InteractionOperator, \ | ||
| normal_ordered) | ||
|
|
||
| numpy.set_printoptions(linewidth=2000, threshold=sys.maxsize) |
Collaborator
There was a problem hiding this comment.
this can be remove right? Since the print statements are removed below.
Contributor
Author
There was a problem hiding this comment.
Yes, these print options can be removed since they was used mostly for debugging purposes. However, print statements still exist in the test_fermionic_hamiltonian_from_integrals, and are also useful if the assert statements raise an error in the construction of an object of interest.
Collaborator
|
@cvmxn1 can I merge this? |
Contributor
Author
|
Yes, this branch is ready for merge, all docstrings and relevant information have been updated. |
ncrubin
added a commit
to ncrubin/OpenFermion
that referenced
this pull request
Jul 25, 2022
* improved import formatting * support RichardsonGaudin-type Hamiltonians * improved formatting * corrected docstring which corresponds to the ladder operator Co-authored-by: Nicholas Rubin <rubinnc0@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR aims to facilitate the use of reduced Bardeen-Cooper-Schrieffer Hamiltonians. Although these Hamiltonians are exactly solvable using the Richardson-Gaudin equations, are useful for serving as a benchmark for strongly correlated systems where the attractive regime is prominent and the equations break down, while maintaining a simple form, allowing for easier implementation in NISQ devices where the connectivity between qubits remains an important factor.
@ncrubin please share your thoughts and feedback on this.