Researchers have created a miniaturized device that can transform electronic signals into optical signals with low signal loss.