The spectrum of a transfer matrix for loops