Gillespie and spectral method for a Gene regulatory network