The optical device includes a waveguide positioned on a base and a modulator positioned on the base. The modulator includes an electro-absorption medium. The waveguide is configured to guide a light signal through the modulator such that the light signal is guided through the electro-absorption medium. A heater is positioned on the electro-absorption medium such that the electro-absorption medium is between the base and the heater.