qrisp.operators.qubit.QubitOperator.hermitize#

QubitOperator.hermitize()[source]#

Returns the hermitian part of self.

H=(O+O)/2

Returns:
QubitOperator

The hermitian part.