PauliOp.commutes¶
- PauliOp.commutes(other_op)[source]¶
Returns whether self commutes with other_op.
- Parameters
other_op (
OperatorBase
) – AnOperatorBase
with which to evaluate whether self commutes.- Return type
bool
- Returns
A bool equaling whether self commutes with other_op