When considering the 'Heisenberg' picture of the harmonic oscillator, I've come across the step: $$\begin{align} \left\langle n\left|(\hat{q_H}\hat{H}-\hat{H}\hat{q_H})\right|k\right\rangle &= (E_k-E_n)q_{nk} \end{align}$$
where $\hat{q_H}$ is a position operator. I realise that this must be a pretty simple step for someone who is familiar with Dirac notation, but I'm not sure how the author has unlocked the $\hat{H}$ from the $\hat{H}\hat{q_H}$?
Any comments greatly appreciated as always.