OpenFermion icon indicating copy to clipboard operation
OpenFermion copied to clipboard

Why does MajoranaOperator not subclass SymbolicOperator?

Open cvjjm opened this issue 2 years ago • 1 comments
trafficstars

It seems odd that MajoranaOperator is not a sub-class of SymbolicOperator. A notable side effect is that contrary to QubitOperator and other SymbolicOperators, MajoranaOperator does not auto-remove terms that are below EQ_TOLERANCE. Not the end of the world but a strange inconsistency...

cvjjm avatar Jul 26 '23 07:07 cvjjm

SymbolicOperator stores (index, action) pairs. For MajoranaOperator, there is no action, so it does not quite map onto the SymbolicOperator class.

kevinsung avatar Jul 26 '23 12:07 kevinsung