Polarity-tunable photocurrents provide an intrinsic decision variable that enables in-sensor computing within a single device, moving beyond simple intensity detection toward next-generation intelligent vision, yet traditional photodetectors are limited by static doping profiles and fixed junction polarities. To overcome this bottleneck, we propose a Te0.61Se0.39 nanowire device with polarity-tunable photoresponse for broadband optoelectronic logic operation via photocarrier diffusion under localized light illumination. By simultaneously harnessing temporal (pulse width), spatial (light positions), amplitude (light intensity), and bias, our polarity-tunable devices deterministically realize the four fundamental Boolean logic gates (AND, NAND, XNOR, XOR), with a responsivity of 1.39 A/W and a specific detectivity of 1.75 × 1010 Jones across the visible to mid-wave infrared spectrum. We further showcased its scalability by constructing a two-layer composite Boolean circuit through the integration of optoelectronic AND and NAND gates. Practical applications in optical encoding/decoding transmission and differential perception highlight its broad functional adaptability. This work establishes a paradigm for broadband polarity devices in low-dimensional nanowires, providing a versatile platform for optoelectronic logic and differential imaging applications.
Zhu et al. (2026) studied this question.