MXene-based optical gate performs all seven Boolean logic operations


Mar 31, 2026

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

(Nanowerk Spotlight) All-optical logic platforms are regarded as promising candidates for next-generation information processing because they can, in principle, operate with high speed, large bandwidth, and low latency. Encoding information in photons rather than electrons sidesteps the resistive heating and carrier mobility limits that increasingly constrain electronic circuits. Yet many reported all-optical logic gates remain limited by fixed functionality. Different logic operations often require different structures or optical paths, meaning a gate built to perform AND cannot be reconfigured to perform OR or XOR without redesigning the hardware. This stands in sharp contrast to electronic computing, where programmable architectures have allowed the same circuitry to switch between logic functions for decades. The missing piece has been a material whose nonlinear optical properties can be tuned rapidly and reversibly enough to change what a gate does without modifying the optics around it. MXenes, a family of two-dimensional transition metal carbides and nitrides, are particularly interesting in this context because their surfaces carry functional groups that can be electrochemically modified. Previous work has shown that tuning MXene properties through surface terminations can switch the material between metallic and semiconducting behavior, suggesting that a similar strategy might control nonlinear optical responses. A study published in Nature Communications (“All-optical logic processing unit using Kerr nonlinearity of MXene”) demonstrates that this is indeed possible. The researchers built an all-optical logic processing unit around TiVCrMoC₃Tₓ, a high-entropy MXene containing four transition metals in roughly equal proportions. Applying a small external bias modulates the material’s surface terminations, which in turn alters its Kerr-type nonlinear optical response. This voltage-dependent nonlinearity allows the same device to be dynamically reconfigured without changing the physical architecture. Using this approach, one platform implements all seven fundamental Boolean operations: AND, OR, NOT, NAND, NOR, XOR, and XNOR. Assembled into a trainable three-layer optical network, the system classifies handwritten digits with 97.7% accuracy. Schematic of the all-optical logic processing unit based on HE-MXene Schematic of the all-optical logic processing unit based on HE-MXene. (a) Optical configuration of the all-optical logic processing unit. (b) Structure of the all-optical logic gates (AOLGs). (c) Reconfigurable AOLGs dynamically switch among seven Boolean operations (AND, OR, NOT, NOR, NAND, XOR, XNOR) within a single optical configuration. (d) Optical encoding of digits (modes “0” and “1”). (e) AOLGs array integrated with CCD for end-to-end, in-optics processing of MNIST image samples. (f) Output stage performing symbolic logic operations and image classification. (Image: Reproduced from DOI:10.1038/s41467-026-70834-0, CC BY) (click on image to enlarge) The multi-element composition introduces localized lattice strain, diverse surface terminations, and complex electronic interactions absent in conventional single-metal MXenes. These features produce a broadband nonlinear optical response spanning wavelengths from 405 to 800 nm, substantially stronger than that of simpler MXene compositions. Few-layer nanosheets roughly 2 nm thick were exfoliated from a MAX phase precursor and dispersed in an ionic liquid electrolyte inside a transparent electrochemical cell. The logic gates exploit spatial self-phase modulation, a phenomenon in which an intense laser beam passing through a nonlinear medium accumulates a position-dependent phase shift via the optical Kerr effect. Once the accumulated phase difference across the beam’s profile reaches integer multiples of π, concentric diffraction rings appear on a screen behind the sample. The presence of rings defines a logical “1” output; their absence defines “0.” This establishes the readout mechanism for every logic operation. Performing two-input logic requires a second beam, introduced through a related process called spatial cross-phase modulation. Two lasers at different wavelengths converge at a small angle onto the same spot on the MXene sample. The stronger beam modulates the weaker one, enabling ring formation for the signal beam even when its own intensity alone falls below the threshold. Input states are defined by whether the beam intensity sits above or below that threshold. The central innovation is the direct link between surface chemistry and gate function. Applying a positive voltage of up to +0.4 V drives rearrangement of the surface functional groups (-O, -OH, -F) on the nanosheet surfaces, altering the electronic structure and thereby modifying the Kerr nonlinearity that governs the phase modulation process. Specifically, the rearrangement reduces the number of unoccupied electronic states available for absorbing excited electrons. This suppression of excited-state absorption strengthens Pauli blocking, the effect in which electrons occupying available energy states prevent further photon absorption. At +0.4 V, saturable absorption increased by approximately 12%, raising the laser intensity needed to trigger diffraction rings. Combining this voltage-controlled threshold shift with repositioning of the sample relative to the laser’s focal point allowed the same optical setup to execute all seven Boolean operations. The material’s intrinsic optical response operates in the sub-picosecond regime, far faster than electronic transistor switching, though practical device speed is limited by detector readout. To show that these gates can perform real computation, the researchers assembled them into a three-layer optical differentiable logic gate network. Each layer contains an array of independently voltage-programmable gates. A spatial light modulator encodes input images as pixelated light intensity patterns, which pass through successive layers, with outputs propagating via optical diffraction. Each gate’s Boolean function is set by its applied voltage, so the entire array can be reprogrammed without altering optical hardware. Training uses a technique from differentiable programming: the discrete choice of Boolean operation at each gate is relaxed into a continuous variable during optimization, then snapped back to a fixed logic function at inference. The result is a sparse binary circuit requiring no floating-point arithmetic. Because every neuron in the trained network corresponds to an explicit Boolean gate, the internal logic is fully transparent, unlike conventional neural networks whose learned representations are opaque. On the MNIST handwritten digit dataset, the network achieved 97.7% accuracy. On CIFAR-10, a dataset of natural images, accuracy reached 50.7%. This gap reveals the current architecture’s limited representational capacity. With only three layers, visually complex categories such as cats and dogs were difficult to separate, while simpler classes like airplanes performed better. No task-specific optimization was applied, suggesting that deeper implementations could improve performance. Several practical constraints remain. Electrochemical switching operates on a millisecond timescale, orders of magnitude slower than the material’s sub-picosecond optical response, limiting reconfiguration speed. The researchers identify integration onto silicon photonics platforms, extension into telecommunication bands near 1550 nm, and coupling with MEMS-based beam steering as future priorities. Encapsulated devices demonstrated stability beyond two weeks. By combining surface-chemistry regulation with nonlinear photonic design, the work establishes a route toward compact, programmable, and interpretable optical computing hardware.


Michael Berger
By
– Michael is author of four books by the Royal Society of Chemistry:
Nano-Society: Pushing the Boundaries of Technology (2009),
Nanotechnology: The Future is Tiny (2016),
Nanoengineering: The Skills and Tools Making Technology Invisible (2019), and
Waste not! How Nanotechnologies Can Increase Efficiencies Throughout Society (2025)
Copyright ©




Nanowerk LLC

For authors and communications departmentsclick to open

Lay summary


Prefilled posts