This repository was archived by the owner on Dec 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 376
SummedOp updates & optimization converters to use Opflow #1059
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
f58bee5
simplify and reduce, add equals to SummedOp, update tests
Cryoris 4b0232f
directly use new opflow, no need to go via WPO
Cryoris 211aebd
update comments and docstrings
Cryoris ffa5020
directly use opflow
Cryoris 4d431a8
Merge branch 'master' into summed-op-compare
Cryoris 3e24231
don't do equality check in add
Cryoris 4c6597d
directly use opflow
Cryoris 951efb9
change order in reduce
Cryoris c4b3ca7
fix qaoa
Cryoris 6678df1
add short test on summed op equality
Cryoris d2865d6
rm prints
Cryoris 87f5448
use set comparison, rename simplify to collapse_summands
Cryoris f34f4ea
fix expected value, should be sqrt(2), not 2
Cryoris b5bd373
cast coeffs to complex
Cryoris a499d0b
add reno on equals
Cryoris d610890
Merge branch 'master' into summed-op-compare
manoelmarques eb8ef07
fix mypy
Cryoris 898178c
Merge branch 'summed-op-compare' of github.com:Cryoris/qiskit-aqua in…
Cryoris 5b77cb6
fix spell
Cryoris 596d796
fix lint
Cryoris 0fb497e
dont cast coefficient to complex
Cryoris 9f80d9b
Merge branch 'master' into summed-op-compare
Cryoris 308564b
use sum instead of reduce
Cryoris 349dfb1
rm unused import
Cryoris 892d36f
move __hash__ to primitive op and base on repr
Cryoris f82da04
Merge branch 'master' into summed-op-compare
manoelmarques 42d23b9
use != over not ==
Cryoris 823d6de
Merge branch 'summed-op-compare' of github.com:Cryoris/qiskit-aqua in…
Cryoris fc0daa4
Merge branch 'op-hash' into summed-op-compare
Cryoris bc03704
add summed op test for different primitives
Cryoris 5a5bf03
check for opbase, not summedop
Cryoris 7a61f23
Merge branch 'master' into summed-op-compare
Cryoris b3f389d
adress changes from review
Cryoris 01008e1
fix spell
Cryoris 6c625bf
Merge branch 'master' into summed-op-compare
Cryoris cbb4429
Merge branch 'master' into summed-op-compare
Cryoris dc8f68c
add note that equals is not mathematically sound
Cryoris 8c81e9d
Merge branch 'summed-op-compare' of github.com:Cryoris/qiskit-aqua in…
Cryoris File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
features: | ||
- | | ||
The ``SummedOp`` does a mathematically more correct check for equality, where | ||
expressions such as ``X + X == 2*X`` and ``X + Z == Z + X`` evaluate to ``True``. |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.