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
{{ message }}
This repository was archived by the owner on Dec 7, 2021. It is now read-only.
>>>fromqiskit.aqua.operatorsimportMatrixOp>>>op=MatrixOp([[1, 0], [0, 0]])
>>> (2*op) == (op+op)
False# should be True
This is done for PauliOps as part of #1059 but should be extended to MatrixOps.
One possible implementation is to adapt SummedOp.collapse_summands to sum up all MatrixOps to one.
The text was updated successfully, but these errors were encountered:
What is the expected enhancement?
This is done for
PauliOp
s as part of #1059 but should be extended toMatrixOp
s.One possible implementation is to adapt
SummedOp.collapse_summands
to sum up allMatrixOp
s to one.The text was updated successfully, but these errors were encountered: