1. INTRODUCTION
With the rapid development of nanophotonic technologies, light has been widely used as the information carrier. Despite the higher data transmission speed of light, terminals such as mobile phones and computers, still use electrons for computing or/and storage. In all these devices, photodetectors (PDs) are used only to convert the optical signal into electricity, but seldom to perform logic operations. Photoelectric logic gates (PELGs) that can realize both signal conversion and logical operation/processing are highly desired in many applications, because they are more conducive and have the advantages of a more compact device integration, lower power consumption, and higher computing speed, as compared with electronic ones. Therefore, PELGs have recently attracted extensive attention in photoelectric devices [1–5].
The PELGs reported thus far can be generally categorized into three types. In the first type, PDs are usually connected in series or parallel to achieve a certain logical function. For example, Bie et al. realized the AND function with an on–off ratio of by connecting a ZnO/GaN junction ultraviolet (UV) PD with a CdSe nanowire PD in series [6]. Wang et al. connected two Schottky-typed UV GaN nanowire PDs in series (parallel) to realize the AND (OR) function [7]. Kim et al. constructed a phototransistor based on quantum dots and ZnO bilayer film, and realized the NOT, NOR, and NAND functions with an on–off ratio of 60 dB through series or parallel connections [8]. In the second type, logic functions are realized by the linear superposition of the photocurrents of the PD under different irradiations. For example, Li et al. constructed a heterojunction PD and realized the OR function by the linear superposition of photocurrents under UV and visible light irradiations [9]. In the third type, positive and negative photoconductance effects are combined to realize different logical functions. For example, Ding et al. connected a -based positive photoconductance detector with a -based negative photoconductance detector through different architectures, realizing AND, OR, and NOT functions [10]. However, these PELGs are still confronted with many challenges. For example, the logic functions that can be realized by a single photoelectric device are usually incomplete, or more specifically, most previous designs can realize only one or two logic functions. The realization of an all-in-one device equipped with all five logic operations (i.e., AND, OR, NOT, NAND, and NOR) remains elusive. Furthermore, the on–off ratio is generally low, which cannot be applied to scenarios requiring ultrahigh precision.
Here, we study the so-called all-in-one PELG composed of a single light source and a single PD, which can realize all five basic logic functions simultaneously. The proposed device makes use of the ambipolar self-driving polarized PD (ASPPD) driven by the Dember effect. In this ASPPD, current ambipolarity is realized through precise manipulation of the photonic responses, i.e., by exciting whispering-gallery mode (WGM) and localized surface plasmon (LSP) resonances, which exhibit reverse spatial distributions; the switching between different logic functions is implemented by configuring the optical system of such PELGs. We also demonstrate that the designed PELG shows a strong robustness against a variety of structure and light source configurations. This study provides a possibility to implement all five basic logic gates based on only one light source and one PD.
Sign up for Photonics Research TOC Get the latest issue of Advanced Photonics delivered right to you!Sign up now
2. RESULTS AND DISCUSSION
To realize a full-functional PELG based on one light source and one PD, we construct a self-driving polarized PD with ambipolar current response as shown in Fig. 1. The nested grating is composed of a silver (Ag) square nanowire, perovskite () layer, and indium tin oxide (ITO) cladding. A linearly polarized plane wave light is irradiated vertically onto the grating. The angle between the electric field vector () and nanowire axis is defined as the polarization angle with and 90° for transverse electric (TE) and magnetic (TM) incidences, respectively. The core idea to achieve the ambipolar photocurrent is as follows. On one hand, benefiting from advanced photonic manipulation, the optical field and photogenerated carriers can be controlled to be distributed mainly on the outer (inner) side of the layer under TE (TM) incidence. This can realize the spatially inversed carrier concentrations under two different polarizations. On the other hand, the Dember effect is taken as the underlying photoelectric response mechanism by which the current direction is determined by the carrier concentration profiles due to the difference in electron and hole mobilities [11]. Such a combination is expected to make the photocurrents of the polarized PD have the so-called ambipolar responses under TE and TM incidences.

Figure 1.Scheme diagram of the ASPPD, where , , , , and are the thicknesses of ITO and layers, side length of Ag, period of the grating, and polarization angle, respectively.
We then numerically evaluate the device performance through an accurate optoelectronic simulation. Based on the finite-element method (FEM), the distributions of optical fields and electromagnetic losses within the devices are obtained by solving Maxwell’s equations; the distribution, transport, recombination, and collection of carriers are modeled by employing semiconductor continuity and Poisson’s equations. Details of the simulation methods [12–16] and parameters of the materials [17–23] are found in our previous publications. It should be noted that we define the positive current as the direction from ITO to . Because the nanowire length is much longer than its lateral sizes, a 2D simulation with only one unit of the grating is used.
Figures 2(a) and 2(b) show the dependences of the photocurrent densities () on and , where the wavelength and incident power . Here, the bias voltage , , and are fixed at 0 V, 80 nm, and 750 nm, respectively, unless otherwise specified. It can be seen that the values within the considered ranges, i.e., and , are almost negative for TE incidence, but positive for TM, displaying an obvious ambipolarity character within a wide range of system configurations. Taking the polarity of the response current rather than the commonly used amplitude as the detection parameter is very beneficial to judge logically “true” or “false.” Moreover, the strong robustness in device size facilitates the fabrication of the device.

Figure 2.(a), (b) of the photodetector versus and under TE and TM incidences with , , and . (c) Spectral responses of the device with and for TE, TM, and unpolarized incidences. Insets (I–VI): distributions of for of 350, 500, and 570 nm. (d), (e) Distributions of and the vectorial current density (red arrows) in the layer under TE and TM incidences with . Note that the lengths of the red arrows are taken as logarithm for the convenience of observation.
Further, we explore the ambipolar mechanisms from the microscopy perspective. Here, we choose the system with and , with which under TE (TM) incidence with an anisotropy ratio of current density . Unless otherwise specified, this configuration is employed in the following sections of this study. Figure 2(c) shows the spectra of the device under TE, TM, and unpolarized incidences. It can be seen that the ambipolar photocurrents under TE and TM incidences can be well maintained in the waveband of , indicating strong robustness versus wavelength. Here, we give a brief discussion on the response mechanisms responsible for the photocurrent ambipolarity. Taking as an example, the electric field () distributions are illustrated by insets III and IV of Fig. 2(c), which indicate that TE incidence leads to spatially localized around the outer side of the layer due to the excitation of WGM resonance. WGM resonance is formed by light propagation along the boundary of an annular cavity or quasi-annular cavity (such as triangle, quadrangle, hexagon), and the resonance peaks are mainly distributed at the cavity boundary [13,24–29]. TM incidence excites LSP resonance, leading to confined at the inner side of the layer. According to the LSP resonance theory, when the size of the Ag nanostructure is much smaller than the wavelength of incident visible light, the LSP resonance is easily excited, so that the light field is localized at the interface between the metal nanostructure and the medium, which has been reported widely [30–33].
Accordingly, Figs. 2(d) and 2(e) illustrate the spatial distributions of the carrier generation rates () in the layer under TE and TM incidences, where the red arrows represent the vectorial current densities. It is found that the distributions of are consistent with that of , which is reasonable. Under TE incidence, electrons and holes driven by the concentration gradient diffuse to the inner side of the layer. According to the Dember effect, since electron mobility () is much larger than that of the hole () for material, an outward photocurrent is formed, as shown by the vectorial current densities. Similarly, under TM incidence, the inward photocurrent is eventually formed.
Obviously, the excitations of the WGM and LSP resonances can be readily modulated by spectral means. For TM incidence with a short (e.g., 350 nm), the LSP resonance is absent, and light is mostly absorbed by the outer part of the layer [see inset I in Fig. 2(c)], leading to a net negative . Increasing from 500 to 570 nm, the LSP resonance is excited and strengthened gradually (see insets III and V), resulting in net positive and increased values. For TE incidence, when is close to 570 nm, WGM resonance is weakened, and there is an obvious enhancement of the optical field in the inner side of the layer, leading to positive when . Thus, the ambipolarity modulated by light polarization shows a good spectrum selectivity. In addition, is negative (positive) when under unpolarized incidence, indicating that ambipolarity can also be achieved by modulating the spectrum. The ambipolarity modulated by the spectrum is also expected to be used to achieve multi-functional logic gates; however, two light sources with modulated powers are required. When the incident power fluctuates, the polarity of the output current may change, resulting in the failure of the logic function. Here, we prefer to achieve these functionalities utilizing the ambipolarity modulated by polarization.
The unpolarized spectral response shown in Fig. 2(c) demonstrates that the value tends to be zero when . Figure 3(a) compares the responses under TM and unpolarized incidences. It can be seen that the values under TM incidence are three orders of magnitude higher than in the unpolarized case, revealing that the polarized PDs proposed here can refrain from the interference of background light (which is always unpolarized) when they are used for logical operation. versus the polarization angle is shown in Fig. 3(b), where a cosine relationship with a period of can be clearly seen, yielding a peaked positive (negative) at TM (TE) incidence. Such ease of modulation via light polarization provides a great opportunity to regulate the logical operations. In addition, the temporal response that determines the operation bandwidth is then investigated as shown in Fig. 3(c). The response time of the Dember PD is contributed from three parts, i.e., diffusion time, resistance–capacitance (RC) time, and response time caused by carrier lifetime (), in which the dominant factor of the whole response time is determined by as shown in our previous paper [13]. Figure 3(c) shows that of such a device is 131 ns, which is much shorter than previous reports [3,5–9], indicating a high operation bandwidth of the polarized PD.

Figure 3.(a) and versus under TM and unpolarized incidences. (b) versus polarization angle and (c) temporal response of the device, where both TE and TM incidences are included.
Finally, we utilize the ASPPD to construct a full-functional PELG as shown in Fig. 4(a). The working principle is explained as follows. The laser emits a beam of linearly polarized light with , which passes through the first polarization beam splitter () to lock the polarization direction. The polarization direction of the parallel vibration component locked by is regulated through the half-wave plate (HWP). The beam is then decomposed into a parallel vibration component (i.e., TM wave) and vertical component (i.e., TE wave) by . The two beams are decomposed into four beams by two 50%:50% beam splitters ( and ), which are, respectively, defined as , , , and . Each beam passes through an aperture to control the on–off status. After that, one beam is synthesized through a combiner to illuminate the ASPPD. The photocurrent of the PD is shown by the ammeter. In general, one or two of the four beams are taken as logically optical inputs, and the on-state of the aperture is defined as logically “true” (1) and the off-state as logically “false” (0). The response current of the PD is taken as logically electrical output, and the positive (negative) current is judged as 1 (0). The following is a description of implementing various logic functions based on a single PD without reconfiguring the PD circuit. AND. To implement the AND function, the HWP is regulated with the intensity ratio () between TE and TM components of linearly polarized light of 3:4. In this case, the intensity ratio () of the four beams is 3:3:4:4. Then, and are set as modulation ports, the corresponding apertures are opened, and and are set as two logically optical input ports. When the input logic is 00, 01, or 10, which means at most one logically optical input port is opened, the output logic is 0 since the current produced by the TM component of the light irradiated onto the ASPPD is always smaller than the TE component; when the input logic is 11, the output logic is 1, as shown in the truth table in Fig. 4(b). The corresponding output current in Fig. 4(c) also confirms the AND truth table, indicating that the AND function is implemented successfully. It should be noted that is just an example for demonstration. It is applicable as long as , considering the photocurrent anisotropy ratio is . This implies that the HWP modulation is robust.OR. On the basis of the AND gate configuration, the aperture controlling is closed, and and are still regarded as two logically optical inputs to perform the OR function. In this case, the response current is negative (that is, the output logic is 0) only when the input logic is 00, as shown in Figs. 4(b) and 4(c), demonstrating that the OR function is realized.NAND. To perform the NAND function, the HWP is regulated, and is fixed at 4:3. Here, 4:3 is again only a case for demonstration (it is valid as long as . Then, the apertures controlling and as modulation ports are opened, and and are set as two logically optical inputs. The output logic is 0 only when the input logic is 11, as shown in the mutually verified truth table and output current in Figs. 4(d) and 4(e), indicating that the NAND function is implemented.NOR. Based on the NAND gate configuration, the aperture controlling is closed, and and are still regarded as two logically optical inputs to perform the NOR function. In this case, the response current is positive only when the input logic is 00, as shown in Fig. 4(e), indicating the NOR function is realized.NOT. On the basis of the NOR gate configuration, is also set as a modulation port with a closed aperture, and only is regarded as one logically optical input to perform the NOT function. The red dotted box in Fig. 4(d) displays the truth table of the NOT gate. In this case, the logical value of the electrical output is opposite to that of the optical input, as shown in the red dotted box in Fig. 4(e), demonstrating that the NOT function is implemented.
So far, all five basic logic functions have been realized based on a single ASPPD. As we know, the NOR gate has functional completeness, so more comprehensive logic functions can be further achieved based on the device. The proposed PELG is based on the split polarized beams of a single light source, so the power disturbance of the light source will not affect the logic operation, and the whole PELG can operate at lower power consumption. As shown in Fig. 3(a), can be maintained in a wide range of incident powers. More generally, if at other structure sizes and/or wavelengths, various logic functions can still be achieved by modulating HWP only if is from to when performing AND and OR logic, and from to for NAND, NOR, and NOT logic. In general, the proposed PELG shows strong robustness against structure size, incident wavelength, light power, and HWP modulation. It should be noted that the optical system here is only a demonstration, and multiple optical logic elements can be further integrated on a chip for future practical applications [34,35]. In addition, if the material quality is poor in practical preparation, the photoelectric response performance of the device will deteriorate. For example, a smaller difference of electron and hole mobilities will lead to a smaller response current and responsivity, and a larger recombination rate will also lead to a smaller response current and responsivity [36,37]. These factors will eventually lead to poor robustness of the PELG.

Figure 4.(a) Full-functional PELG system. (b), (d) Truth tables of different logic functions. (c), (e) Corresponding electrical output responses for different logic configurations. Note that the red dotted boxes in patterns (d) and (e) display, respectively, the truth table and electrical output of the NOT gate.
3. CONCLUSIONS
In summary, we proposed an ASPPD based on a nested grating to realize an all-in one PELG. By controlling the optical field distribution in the nanostructure-based Dember device utilizing optical resonance modes (i.e., WGM and LSP), the PD at zero bias achieves ambipolar photocurrents under TE and TM incidences. Further, a full-functional PELG composed of one light source and one PD only is proposed utilizing the current ambipolarity modulated by light polarization. A linearly polarized beam is decomposed into two TM beams and two TE beams. Taking two or one of the four beams as logically optical inputs and the response current of the ASPPD as logically electrical output, all five basic logic functions (i.e., AND, OR, NOT, NAND, and NOR) are realized without reconfiguring the PD circuit. It is also found that the PELG shows a strong robustness against structure size ( and ), wavelength (), light power (), and HWP modulation. The ultra-short response time (131 ns) of the PD indicates that the logic gate has a high bandwidth. Therefore, the all-in-one scheme promotes the development of PELGs towards high integration, high precision, low power consumption, high bandwidth, and multi-functionalities.
Acknowledgment
Acknowledgment. We acknowledge Prof. Jingpei Hu of Shanghai Institute of Optics and Fine Mechanics, Chinese Academy of Sciences, for guidance in polarization detection. We acknowledge Prof. Zhihao Bian of Jiangnan University for guidance in the optical system.