qrisp.operators.qubit.QubitOperator.hermitize#

QubitOperator.hermitize()[source]#

Returns the hermitian part of self.

\(H = (O + O^\dagger)/2\)

Returns:
QubitOperator

The hermitian part.