You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* simplify and reduce, add equals to SummedOp, update tests
* directly use new opflow, no need to go via WPO
* update comments and docstrings
* directly use opflow
* don't do equality check in add
* directly use opflow
* change order in reduce
* fix qaoa
* add short test on summed op equality
* rm prints
* use set comparison, rename simplify to collapse_summands
* fix expected value, should be sqrt(2), not 2
* cast coeffs to complex
* add reno on equals
* fix mypy
* fix spell
* fix lint
* dont cast coefficient to complex
leads to problems if the coeff is exponentitated and not supposed to be complex
* use sum instead of reduce
* rm unused import
* move __hash__ to primitive op and base on repr
* use != over not ==
* add summed op test for different primitives
* check for opbase, not summedop
* adress changes from review
* explicitly raise an error upon ListOp input
* return identity op instead of the int 0
* fix spell
* add note that equals is not mathematically sound
Co-authored-by: Manoel Marques <[email protected]>
0 commit comments