quantumlib / OpenFermion

The electronic structure package for quantum computers.
Apache License 2.0
1.51k stars 372 forks source link

MajoranaOperator supports operation with numbers. #868

Closed snow0369 closed 6 months ago

snow0369 commented 7 months ago

Addition and subtraction in MajoranaOperator accept a number as an input. Bugs in __isub__ and the corresponding testcases are fixed.

Related to this issue.