triqs.operators.operators.Operator.is_zero

Operator.is_zero()

Dispatched C++ function(s).

[1] ()
  -> bool

Check if the current operator \(\hat{O}\) is exactly zero.

Returns:
bool

True if the operator has no terms, false otherwise.