Lookup dictionary for JW transformation of a FermionOperator #777
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.
Low-hanging fruit for a simple speedup when working on
FermionOperator
->QubitOperator
conversions. The problem has been raised in #587. This is not an optimal solution to this issue (neither parallelization nor cython), but there is a significant speed improvement when working with aFermionOperator
with redundant terms.Here is a simple script I used to test:
On my machine (Arch Linux 5.17.3-arch1-1, python 3.8.5):
Before = 10min27s
After = 5min14s
Other tests:
O2_6-31g_triplet | 81s | 42 s
NaCl_sto-3g_singlet | 2min34s | 1min20s