ProjectQ-Framework / FermiLib

FermiLib: Open source software for analyzing fermionic quantum simulation algorithms
https://projectq.ch/
Apache License 2.0
86 stars 38 forks source link

optimized subtraction of FermionOperator #107

Closed babbush closed 7 years ago

babbush commented 7 years ago

Added needed isub method which is then used to implement sub in more efficient way that does not require unnecessary copying of subtrahend operator.