All-photonic molecular half-adder.

One molecule acts as both an AND and an XOR Boolean logic gate that share the same two photonic inputs. The molecule comprises a half-adder, adding two binary digits with only light as inputs and outputs, and consists of three covalently linked photochromic moieties, a spiropyran and two quinoline-derived dihydroindolizines. The AND function is based on the absorption properties of the molecule, whereas the XOR function is based on an off-on-off response of the fluorescence to the inputs that results from interchromophore excited-state quenching interactions. The half-adder is simple to operate and can be cycled many times.