We consider one source of decoherence for a quantum computer composed of many trapped ions due to the thermal effects of the system in the presence of laser-ion interaction.The upper limit of the temperature at which the logical gate operations could be carried out reliably is given,and our result is agreement with the experiment.