A nanoscale optical device has been developed that allows independent control over the intensity and phase of light. By applying voltage, this innovative device can freely manipulate the phase and magnitude of second-harmonic (SH) light, opening new avenues for advanced quantum communication and information processing technologies. The research is published in Science Advances.