According to Wikipeida, a scalar operator is invariant under rotations, and the Hamiltonian satisfies this definition. But at the same time, a Hamiltonian can be written as a matrix, which means it is a rank-2 tensor. Does it mean that a "scalar operator" may also be a tensor?