Skip to content
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

Remove of deduplicated code #86

Merged
merged 4 commits into from
Nov 15, 2021
Merged

Conversation

alexfleury-sb
Copy link
Collaborator

@alexfleury-sb alexfleury-sb commented Nov 9, 2021

Here are the highlights:

  • Deletion of _unitary_cc.py
  • Suppression of many lines in jordan_wigner.py
  • Moved conversion from openfermion.QubitOperator to qsdk.QubitOperator in the fermion_to_qubit_mapping function.
  • Released some checks: isinstance(fermion_operator, FermionOperator) -> isinstance(fermion_operator, ofFermionOperator) so that those functions work with openfermion.FermionOperator and our FermionOperator.

_unitary_cc_openshell.py and _unitary_cc_paired.py seem to be entirely new files (inspired by _unitary_cc.py), so I kept those.

@JamesB-1qbit JamesB-1qbit self-requested a review November 12, 2021 21:48
@ValentinS4t1qbit ValentinS4t1qbit merged commit c4da558 into staging-0.3.0 Nov 15, 2021
@ValentinS4t1qbit ValentinS4t1qbit deleted the remove_of_code branch December 8, 2021 19:32
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