triqs.operators.operators.is_op_hermitian
- triqs.operators.operators.is_op_hermitian()
Dispatched C++ function(s).
[1] (op: Operator, tolerance: float = 0) -> bool
Check if a many-body operator is Hermitian within a given precision.
Checks whether the difference \(\hat{O}^{\dagger} - \hat{O}\) is close to zero within the given tolerance \(\epsilon\).
- Parameters:
- opOperator
Many-body operator \(\hat{O}\).
- tolerancefloat
Tolerance \(\epsilon\).
- Returns:
- bool
True if \(\hat{O}\) is Hermitian within the given precision, false otherwise.