A single MXene-based optical gate switches between seven Boolean logic functions via voltage, enabling trainable photonic ...