A memory system has a memory unit that is made of memory cells, each of which assumes a record state with a threshold voltage according to data. The pumped laser has an inversion population remaining time, the inversion population remaining time being the time within which, in the absence of pumping, the remaining inversion population of the laser energy status is reduced by 90%. As a result, switching is smoothly performed without involvement of occurrence of a variation in the output voltage before and after switching operation.