# Expectation value of operators with non-zero Hamiltonian commutators

Let's assume both $A$ and $B$ are Hermitian operators, since otherwise trying to take their expectation value doesn't make sense at all.

If $H$ and $A$ do not commute, then their product $HA$ is not an observable, since $(HA)^\dagger = A^\dagger H^\dagger = AH \neq HA$, so $HA$ is not Hermitian. So it is questionable what you're trying to compute here in the first place from a physical viewpoint.

Your argument is not wrong, it simply shows that $\langle B\rangle = 0$ for all eigenstates of $H$. In light of Ehrenfest's theorem ($\frac{\mathrm{d}}{\mathrm{d}t}\langle A\rangle \propto \langle [H,A]\rangle$ for not explicitly time-dependent $A$), this is not surprising: The eigenstates of the Hamiltonian are stationary states, so their expectation value for the commutator of an observable with the Hamiltonian needs to be zero, otherwise the expectation value (and thus the state) would not be stationary.