On matrices which anticommute with a Hamiltonian