  It is known that the q-Heun equation has polynomial-type solutions in some
special cases, and the condition for the accessory parameter E is described by
the roots of the spectral polynomial. We investigate the spectral polynomial by
considering the ultradiscrete limit.
