WeightedPauliOperator.sub¶
- WeightedPauliOperator.sub(other, copy=False)[source]¶
Perform self - other.
- Parameters
other (WeightedPauliOperator) – to-be-combined operator
copy (bool) – working on a copy or self, if False, the results are written back to self.
- Returns
operator
- Return type