# All-Optical Reversible Logic Gates with Optically Controlled Bacteriorhodopsin Protein-Coated Microresonators

Authors: Sukhdev Roy; Purnima Sethi; Juraj Topolancik; Frank Vollmer
Journal: Advances in Optical Technologies
 (2012)

---

## Abstract

We present designs of all-optical reversible gates, namely, Feynman, Toffoli, Peres, and Feynman double gates, with optically controlled microresonators. To demonstrate the applicability, a bacteriorhodopsin protein-coated silica microcavity in contact between two tapered single-mode fibers has been used as an all-optical switch. Low-power control signals (<200μW) at 532 nm and at 405 nm control the conformational states of the protein to switch a near infrared signal laser beam at 1310 or 1550 nm. This configuration has been used as a template to design four-port tunable resonant coupler logic gates. The proposed designs are general and can be implemented in both fiber-optic and integrated-optic formats and with any other coated photosensitive material. Advantages of directed logic, high Q-factor, tunability, compactness, low-power control signals, high fan-out, and flexibility of cascading switches in 2D/3D architectures to form circuits make the designs promising for practical applications.


---

## Body

## 1. Introduction

There is tremendous research effort to achieve all-optical information processing for ultrafast and ultrahigh bandwidth communication and computing. The natural parallelism of optics along with advances in fabricating micro- and nanostructures has opened up exciting possibilities to generate, manipulate, and detect light and to tailor the optical molecular response for low-power all-optical computing [1–5].A switch is the basic building block of information processing systems and optical logic gates are integral components of higher optical computing circuits. Conventional classical computing is based on Boolean logic that is irreversible, that is, the inputs cannot be inferred from the output, as the number of output bits is less than the inputs. This leads to destruction of information and hence to the dissipation of a large amount of energy [6–9].Conservative and reversible logic circumvents this problem by having equal number of inputs and outputs and opening up the possibility of ultra-low power computing [6–9]. It is also compatible with revolutionary optical and quantum computing paradigms. Quantum arithmetic has to be built from reversible logical components, as unitary operations are reversible and hence quantum networks effecting elementary arithmetic operations such as addition, multiplication, and exponentiation cannot be directly deduced from their classical Boolean counterparts [10].Several reversible logic gates have been proposed that include Fredkin gate (FG), Feynman gate, Toffoli gate (TG), Peres gate, and Feynman double gate [10–12]. A gate is conservative if the Hamming weight of its input equals the Hamming weight of its output. A number of physical implementations for the universal Fredkin gate have been proposed based on nonlinear optical bistable elements [13], interferometers [9, 14, 15], linear optics [16, 17], complementary metal-oxide semiconductor (CMOS), cellular automata [18], silicon-on-insulator (SOI) [19], cavity quantum electrodynamics (QED) [20], spin states [21], recombination enzymes, and DNA membranes [22]. All-optical implementation of Fredkin gate has also been demonstrated experimentally with semiconductor optical amplifiers (SOA) [23] and recently with optical fiber-based nonlinear optical loop mirror (NOLM) [24].However, there have been fewer designs proposed to implement other reversible logic gates. Recently, a photophysical design of a molecular Feynman gate has been proposed using fluorophores as molecular switches [25] and the quantum Tofolli gate with linear optics [26], atom-cavity interaction [27], and trapped ions [28].The major challenge in the practical realization of optical logic has so far been in meeting essential requirements of cascadability, fan-out, logic-level restoration, input-output isolation, absence of critical level biasing, logic level independent of loss and of course low-power operation [3]. To effectively compete with future advancements in electronic implementations, optical logic has to be achieved at ultra-low power levels. However, advancements in fabricating nanostructures (resonators and plasmonics), quantum dots, single molecule, and single photon devices, in even silicon, offer exciting possibilities to achieve this objective [1–5].Application of the extremely sensitive and versatile microresonator structures for switching and computing applications has evoked tremendous interest due to their ultra-highQ-factor, low switching threshold, tunability, and ultra compactness [29–34]. A very wide range of microcavity shapes can be fabricated that include Fabry-Perot cavities, spheres, cylinders, disks, torroids, 1D/2D photonic crystals, and large-scale arrays of ultrahigh-Q coupled nanocavities in photonic crystals [29]. They have also been shown to be feasible for building optical microcavity network on a chip for applications in quantum information processing [35].Silica microcavities have inherent advantages of ultra-highQ-factor (~109), relatively simple fabrication, small mode volume, near lossless fiber coupling, possibility of on-chip integration, and control of the coupling efficiency through taper by the change of the fiber thickness [29, 36, 37]. The recent demonstration of a fiber-taper-coupled ultrahigh-Q microtoroid on a chip enables integration of wafer-based functions with ultralow-loss fiber-coupled quantum devices. The bulk optical loss from silica is also exceptionally low, and record Q factors of 8 × 109 (and finesse of 2.3 × 106) have been reported [29, 36, 37]. Ultrahigh-Q microtoroidal and bottleneck silica resonators represent a distinct class of optical microresonators with Q’s in excess of 108 and a simple and customizable mode structure enabling full tunability [36, 37]. Due to the high Q-factor and the small dimensions, switching at low-power is feasible. In addition to this, coating the microcavity with a photosensitive material can further lead to switching at ultralow powers [38].Silica microsphere optical resonators coated with a conjugated polymer [39] or silicon-nanocrystals [40] have been reported, in which optically induced thermo-optic switching takes place. In the case of conjugated polymer, Q ~1.3 × 108 and a 405 nm pump at 4.9 μW result in a switching on/off time of ~50 ms [39]. On the other hand, silicon-nanocrystal-coated resonator Q ~1.3 × 105 and a 488 nm pump at 3.4 μW results in a switching on-off time of ~25–30 ms [40]. However, it would be better to have a sensitive photochromic material-coated resonator for all-optical switching applications at low powers.The photochromic protein bacteriorhodopsin (BR), which is found in the purple membrane ofHalobacterium halobium, has emerged as an excellent material for biomolecular photonic applications due to its unique advantages [41–43]. It exhibits high quantum efficiency of converting light into a state change, large absorption cross-section and nonlinearities, robustness to degeneration by environmental perturbations, high stability towards photodegradation and temperature, response in the visible spectrum, low production cost, environmental friendliness, capability to form thin films in polymers and gels, and flexibility to tune its kinetic and spectral properties by genetic engineering techniques, for device applications [42–44]. A wide range of applications has been proposed for BR. Its properties of proton pumping and photoelectricity have been used for instance in desalination of seawater, conversion of sunlight to electricity, ultrafast light detection, chemo- and biosensing, artificial retinas, photon counters, and photovoltaic converters. Its photochromic property has resulted in applications that include pattern recognition systems, information recording, associative and 3D memories, holography, second harmonic generation, saturable absorption, wave mixing and phase conjugation, nonlinear optical filtering, optical bistability, mode locking, spatial light modulation, optical image processing, logic gates, neural networks, incoherent to coherent conversion, optical displays, beam deflection, and even for generation of slow and fast light [42–46].The BR molecule initially excited by photons undergoes several structural transformations in a complex photocycleB570→J625→K610→L550→M410→N520→O640→B570 that generates intermediate states spanning the entire visible region of the spectrum where the subscripts denote the peak absorption wavelengths. An important feature of all the intermediates is their ability to be photochemically switched back to the initial B state by shining light at a wavelength that corresponds to the absorption peak of the intermediate in question. Genetic mutations of BR through biotechnological procedures such as variation in the polymer environment including pH, temperature, degree of hydration, and addition of chemicals can alter both the kinetic and spectral properties of BR. Replacement of retinal by analog structures also has a strong influence on the photochemical cycle, and the absorption spectrum can be changed to the desired wavelength regions [42–46].Recently, all-optical switching in the near-infrared with the ultra-sensitive bacteriorhodopsin (BR) protein-coated silica microcavities has been reported [47]. The state of the BR in optical microcavities is controlled by a low-power (<200 μW) continuous green pump laser coupled to the microsphere cavity using a tapered fiber [47, 48]. We have used this basic switch configuration to design higher computing circuits such as half/full adder-subtractors, multiplexer/demultiplexer and arithmetic unit circuits [49]. We have also shown that it can be used to elegantly design the all-optical universal Fredkin logic gate [50].The objective of this paper is to experimentally analyze this switching configuration in more detail, by measuring the variation in the resonant shift of the TE-resonant peak of the 1310 nm IR signal by alternate exposure to green (532 nm) and blue (405 nm) pump laser beams to control the BR conformational states for faster switching, and to present general all-optical designs of various other kinds of important reversible logic gates reported in the literature, namely, Feynman gate, Toffoli gate, Peres gate, and Feynman double gate, with optically controlled microresonators. To achieve this objective, we consider the BR-coated silica microresonator switch as a template. The proposed designs offer advantages of simple configuration, cascadability, large scale-integration, flexibility and low-power operation.


## 2. Experimental Setup of BR-Coated Hybrid Molecular-Photonic Switch

Figure1(a) shows the schematic representation of a resonant coupler that can be used to demonstrate the all-optical switch with BR-coated microcavity. The tip of a single-mode fiber was melted in a butane nitrous oxide flame to form a 300 μm diameter silica microsphere (Q ~ 2 × 106). Alternate electrostatic deposition of cationic poly(dimethyldiallyl) ammonium chloride (PDAC) and anionic BR membranes was used to adsorb three mono-layers of BR mutant D96N (Munich Innovative Biomaterials, Munich, Germany) onto the microsphere surface. A single oriented PDAC/BR monolayer (~55 Å´ thick) was self-assembled onto the microcavity surface, in each cycle [47]. The microcavity Q was slightly degraded to ~5 × 105, by the BR adsorption process and the introduction of scattering impurities during each drying process. The AFM image of BR molecules is shown in Figure 1(b).(a) Schematic of the experimental set-up, (b) AFM image of bacteriorhodopsin molecules.
(a)(b)Two parallel single-mode fibers were tapered by hydrofluoric acid erosion and held 250μm apart in a standard 1 cm acid-resistant polystyrene cuvette. The BR-coated microsphere was then spring loaded between the two tapered fibers in air, after complete removal of the etchant. Resonant modes were excited with a distributed feedback (DFB) laser, operating around 1310 nm, connected to Port 1 via single-mode fiber (SMF-28, Dow-Corning, Midland MI) through a fiber coupler. A green pump beam at 532 nm and a blue pump beam at 405 nm were injected into Port 1 and Port 3 of the switch, respectively. Two InGaAs photodiodes (PD1, PD2; PDA400 from Thorlabs) connected to fiber Ports 2 and 4 were used to monitor and record transmitted intensities of the near infrared probe beam with a LABVIEW program. To determine the resonance wavelength of the microsphere and changes thereof, the current of the DFB laser was swept with a sawtooth-shaped function every ~200 ms, thereby tuning the wavelength by ~0.006 nm/mA. The resonance wavelength was then identified by determining the minimum (maximum) of the Lorentzian-shaped trough (peak) that appears in the transmission spectrum recorded at Port 2 (Port 4) on each wavelength sweep. For switching experiments, the wavelength of the DFB laser was fixed and slightly detuned from the resonance wavelength to allow for a maximum all-optical switching  contrast.


## 3. Results and Discussion

### 3.1. All-Optical Switching in BR-Coated Microcavity

Photo-excitation of BR triggers a complex photocycle that involves isomerization and rotation of the retinal chromophore, and a proton transfer across the lipid membrane [41–44]. During the photocycle, the retinal changes its conformation between the all-trans, 15-antiprotonated Schiff base found in the thermodynamically stable ground state; 13-cis, 15-anti protonated Schiff base prevalent in its metastable M-state. These two states identify a bistable photochromic system used for light modulation. Excitation of the retinal protein around the ground state maximum absorption wavelength of 568 nm drives BR through several intermediaries into the M-state within 50 μs. Conversely, illumination of BR around the M-state absorption peak of 412 nm, directly recovers the ground state within 200 ns (Figure 2(a)). This photoreaction represents the molecular basis for all-optical switching with BR [45, 51].(a) Photo-induced molecular conformational switching between the ground and the M-intermediate states of BR, (b) IR image of 1310-nm probe beam propagation with green pump beam on and blue off, and (c) IR-probe propagation with green pump off and blue on.
(a)(b)(c)In the BR-coated microcavity switch, the switching of the input signal operating at wavelength 1310/1550 nm between the output ports (2 and 4) is photoinduced with a fiber-coupled green pump laser (at 532 nm) which controls the conformational state of the adsorbed BR. Photoinduced isomerization of the retinal alters the optical properties of the BR membrane such as the absorption spectrum, the molecular polarizability, and the hyperpolarizabilities. Hence, the conformational change perturbs the optical modes interacting with BR even when there is little or no spectral overlap between the mode frequency and the BR electronic transition bands. Resonant modes in the optical microcavity significantly enhance this interaction conveying this perturbation as a frequency shift of optical resonances.The molecularly functionalized microcavity thus redirects the flow of near-infrared light beam between two optical fibers. With the pump OFF, the probing light from input Port 1 is detuned from resonance and is directly transmitted into the output Port 2. The pump evanescently excites whispering gallery modes (WGM) propagating around the microsphere’s equator, inducing photoisomerization along their path. A low green cw laser (<200μW at 532 nm) is sufficient for this purpose, as its effective absorption is resonantly enhanced. Isomerization reduces the retinal polarizability, tuning the resonance wavelength of the microsphere to match the wavelength of the infrared probe which is then rerouted from input Port 1 into the output Port 4. The transmission spectra exhibited an extinction of −9.4 dB in Port 2 and a 9.8 dB increase in transmission in Port 4 [47–49]. Figure 2(b) shows the IR image of 1310 nm probe beam propagation with pump green beam on and blue turned off with light getting switched to Port 4 whereas Figure 2(c) with blue off and green on, it is transmitted to Port 2.In this experiment, green (532 nm) and blue (405 nm) pump lasers, connected to Port 1 and 3, respectively, were used to control the conformation state of the retinal. Turning the green pump on and the blue off (13-cis isomer) routes the probe into output Port 4. When the green pump is off and the blue is on (all-trans isomer), the near-IR probe (1310/1550 nm telecom laser) is switched from Port 4 to output Port 2. The blue light beam (405 nm) helps in truncating the photocycle of the BR molecules at the M-intermediate state, which is near to its peak absorption wavelength of 412 nm, which results in a faster switch-off. Figure 3 shows the variation in the resonant wavelength shift (Δλ) of a transverse-electric- (TE-) polarized resonant mode on excitation with the modulating green and blue pump signals. It is evident that the alternating excitation with green and blue laser beams, results in the periodic shift in the resonant wavelength of about 1.2 pm. The inset shows the temporal response of a microsphere to a fast 10 kHz modulation, when green and blue pump beams (~200 μW, cw) were modulated with step functions at ~0.1 ms intervals and the transmitted intensity of the probe beam was measured at Port 2. The IR-probe modulation was recorded with a fast scanning oscilloscope. The switch ON/OFF time ~μs. Figure 4(a) depicts the dynamics of the ground-to-M state transformation observed by tracking wavelength shifts of TE- and TM-polarized microcavity modes on alternate exposure to green pump beam, and Figure 4(b) shows the slow thermal M to ground state relaxation turning into a fast photoinduced transition when the blue pump is applied at t≈ 19.5 s.Figure 3
Variation in the resonant shift of the TE-resonant peak of the 1310 nm IR signal by alternate exposure to green (532 nm) and blue (405 nm) pump beams. Inset shows the corresponding temporal switching response of a microsphere to a fast 10 kHz modulation, when green and blue pump beams (~200 μW, cw) were modulated with step functions at ~0.1 ms intervals.(a) Dynamics of the ground-to-M state transformation observed by tracking wavelength shifts of TE- and TM-polarized microcavity modes on alternate exposure to green pump beam, (b) the slow thermal M-to-ground state relaxation turning into a fast photoreaction on exposure to the green pump along with the blue beam.
(a)(b)For the low-pump intensities used in our measurements, the maximum modulation frequency was limited to ~10 kHz, where considering the switching contrast to be defined here as the ratio of the signal change and the noise level, reduced to ~2. Enhanced switching contrast at higher modulation rates can be achieved with mode-locked green and blue pumps and higher optical densities. The switching speed of BR-based devices is limited by the timescale of the ground to M-state transition (τ568≈ 50 μs). D96N–BR is known to exhibit a much longer M-state lifetime as compared to wildtype BR [42–46]. The speed of isomerization of the chromophore is also temperature dependent. It has been shown that the rate constant for M-state decay increases on increase in temperature [42–46]. An increase in temperature would result in faster switching of BR and hence the signal. The switching time can be further reduced by tailoring the BR intermediate lifetimes and/or phototransitions, by exploiting ultrafast photochromic transitions of the early BR intermediate states recently characterized and studied for switching [52, 53], or by coating the microcavity by other organic molecules such as diarylethenes that exhibit ultrafast photochromic transitions.The ultra-high sensitivity of both microresonators and BR protein configuration results in switching at very low powers. At present, all-optical switching in BR-coated microcavity has not been optimized for practical applications. The energy/bit for switching that has been demonstrated corresponds to ~nJ/bit. Both the minimum switching energy/bit and maximum switching speed need to be ascertained by exploiting the ultrafast initial intermediates. The 200μW switching power used in the experiment for the control signal can be further reduced by working with resonantly coupled coherent pump sources. This, however, would add another level of complexity to the control architecture. Working with the polarization states of BR can also add to the complexity or control [48]. The use of linearly polarized input light reduces the transmission at the off resonance frequency and increases the signal-to-noise ratio significantly. Using linearly polarized modes, the resonant wavelength shift ratio for the TE and TM polarizations is observed to be 2.1 ± 0.1, that is, the shift is about twice as large for TE as for the TM mode, which is due to retinal orientation in the BR membrane. Hence, TE modes have higher WGM peaks with higher intensity compared to TM modes.Both green and blue pump beams can also be alternatively injected through a coupler at Port 1. Hence, the silica microcavity in contact between two tapered fibers serves as a four-port tunable resonant coupler as shown in Figure1(a).


### 3.2. Design of All-Optical Reversible Logic Gates

The all-optical BR-coated microcavity switch with a single control signal at 532 nm or in conjunction with a 405 nm can be used as a building block for designing all-optical reversible logic gates, namely, Feynman, Toffoli, Peres, and the Feynman double gates. We consider a combination of three inputs, namely, the IR signal at Port 1 and 3 and the control signal at Port 1, and three outputs, that is, IR signal at Ports 2 and 4 and the control signal at Port 2.


#### 3.2.1. All-Optical Feynman Gate

The Feynman gate is a 2 × 2 reversible gate shown schematically in Figure5(a). It has 2 inputs and 2 outputs, with one input variable which is also the output. It can also be considered as an integration of a YES gate and an XOR gate, and is also known as controlled-NOT gate (CNOT), Figure 5(b). The inputs and outputs are associated as I1 = O1 and O2 = I1 XOR I2, as is also evident from the Truth Table 1.Table 1
Truth table of all-optical Feynman gate.
InputOutputI1 (μW)I2 (mW)NOT (I2) (mW)O1 (μW)O2 (mW)001(1.5)0001(1.5)001(1.5)1(60)01(1.5)1(30)1(1.47)1(60)1(1.5)01(30)0(0.03)All-optical Feynman gate, (a) block diagram, (b) schematic of the logic circuit, and (c) schematic of the design using optically controlled microcavities. The dashed line shows the option of using an inverter circuit.
(a)(b)(c)The design of an all-optical Feynman gate using a BR-coated microcavity switch is as shown in Figure5(c). We consider the inputs to be the control signal and the IR signal at Port 1, designated as inputs I1 and I2, respectively, while the control signal passing through the fiber coupler towards the output and the IR signal emerging at port 2 are considered as the two outputs, O1 and O2, respectively. The state of the device is initially off-resonance and the presence of the control input puts the device on resonance. We further consider the infrared input I2 to be fed into either Port 1 or Port 3 by two laser diodes one at a time, or possibly by a single diode at Port 1 connected to Port 3, through an inverter.Of the four input combinations, when no input is applied, the outputs are zero, due to the absence of any signal. When the control signal I1 is OFF, and the input I2 at Port 1 is ON, it passes out to Port 2 due to the inactivation of the microcavity (O2 = High and O1 = I1 = 0). Since, input at Port 1 is ON, Port 3 is OFF and so there is also no output at Port 4. When, I1 is ON and I2 at Port 1 is OFF, the input NOT(I2) at Port 3 is ON, which is switched by the microcavity to emerge at Port 2 (O2 = High and O1 = I1 = 1). Finally, when both I1 is ON and I2 at Port 1 is also ON, the signal I2 is switched by the control signal to emerge at Port 4, leading to O2 = Low and O1 = I1 = 1). Since, there is no input at Port 3 (it is OFF as Port 1 is ON), hence, it does not affect the outcome at Port 2.We consider the experimental conditions, that is, a 200μW laser operating at 532 nm as the control signal at I1 and a 5 mW DFB laser operating at 1310/1550 nm, which butt couples ~30% light (1.5 mW) as the input signal at Ports 1 or 3. Considering our switching results [47], with ~98% of light (1.47 mW) getting switched or routed from Port 1 to Port 4, or from Port 3 to Port 2, when the microcavity is activated, only ~2% of the light then gets coupled into Port 2 or Port 4, respectively (0.03 mW). Considering 50% power of the control signal coupled to the microcavity through a fiber coupler, the remaining power is considered to be detected at the output port that is, O1 (100 μW). In general, nearly lossless power transfer between optical fibers and high-Q optical resonators has been observed, and by proper selection of the taper diameter, negligible scattering loss takes place [54]. Considering positive logic and an upper limit of low output state to be 0.05 mW and a minimum threshold at 1.3 mW for the high state, for the IR output, and a corresponding upper limit of 5 μW for the low state and a lower limit of 10 μW for the high-state, for the green control beam, Table 1 results in the realization of all-optical Feynman gate. In addition to this, the output at Port 4 results in realization of XNOR logic operation.


#### 3.2.2. All-Optical Toffoli Gate

The Toffoli gate is a universal reversible logic gate, which is also known as the “controlled-controlled-not” gate. It has a 3-bit input and output, and if the first two bits are set, it flips the third bit, as shown in Truth Table2. It can be also described as mapping bits I1, I2, and I3 to I1, I2, and I3 XOR (I1 AND I2), as shown in Figure 6(a).Table 2
Truth table of all-optical Toffoli gate.
InputOutputI1 (μW)I2 (μW)I3 (mW)NOT(I3) (mW)O1 (μW)O2 (μW)O3 (mW)0001(1.5)000001(1.5)0001(1.5)01(60)01(1.5)01(30)001(60)1(1.5)001(30)1(1.5)1(60)001(1.5)1(30)001(60)01(1.5)01(30)01(1.5)1(60)1(60)01(1.5)1(30)1(30)1(1.44)1(60)1(60)1(1.5)01(30)1(30)0(0.03)All-optical Toffoli gate, (a) block diagram, and (b) schematic of the design using optically controlled microcavities.
(a)(b)Considering the BR-coated microcavity switch described earlier, the design of an all-optical Toffoli gate is as shown in Figure6(b), which is realized using two switches. We consider the two inputs as control signals I1 and I2, respectively, while the third input I3 is considered to be the input IR signal at Port P1 or at Port P3 of the first microcavity, by two laser diodes one at a time, or by a single diode at Port P1 connected to Port P3, through an inverter, (to make them out of phase), I3 is also connected directly to Port P3 of the second microcavity. Since two inputs in the Toffoli gate map out to two outputs, we have this implemented with the control signals I1 and I2 mapping out to O1 and O2, respectively. In this case, we consider an IR laser diode of 10 mW to butt couple 30% light of 3 mW to form input I3, which splits equally through the beam splitter to form the two inputs to the two microcavities, M1 and M2. This ensures consistency in the input signal intensities in all reversible logic gate designs and hence setting the same threshold values.Considering the various possible combinations of the three inputs, as mentioned in Truth Table2, for Case (i): When none of the inputs are applied, there are no outputs. Case (ii): When both I1 = I2 = 0 and I3 is applied, from P1, it emerges at P2 of M2, passing through P2 of M1 and P1 of M2. I3 which also inputs at P3 of M2 emerges out at P4 of M2 to O3, as both the microcavities are disabled. Case (iii): When I1 = 0 and I2 = 1 and I3 = 0, O2 = 1 and O3 = 0, as, although M2 is activated, no signal at P3 of M2 leads to P4 when I1 = 0 and I2 = 1 and I3 = 0, P4 of M2 = O3 = 0. Case (iv): When I1 = 0 and I2 = 1 and I3 = 1, O3 is high as the signal is switched by M2 to P4 of M2. Input I3 at P3 of M2 also makes P2 of M2 high, although it is of no consequence in the Toffoli gate logic operation. Case (v): When I1 = 1 and I2 = 0 = I3, M1 is activated and M2 is off, but with no signal I3 at P1 or P3 of M2, the output at O3 = 0. However, NOT(I3) which is high at P3 gets switched by M1 to emerge at P2 of M2. Case (vi): When I1 = 1, I2 = 0 and I3 = 1, M1 switches I3 to P4 and I3 at P3 of M2 passes over to P4 of M2 to result in O3 being high. Case (vii): When I1 = I2 = 1 and I3 = 0, both microcavities are activated, but NOT(I3) is now high at P3, which gets switched by M1 and then M2 to result in a high output at O3. Case (viii): When I1 = I2 = I3 = 1, I3 gets switched by M1 to P4 and by M2 to its P2, to result in a low output at O3. The above combinations result in the circuit in Figure 6(b), which implements Toffoli gate logic as shown in Truth Table 2.


#### 3.2.3. All-Optical Peres Gate

The Peres gate is also a reversible 3 × 3 logic gate, with a schematic diagram shown in Figure7(a). One output is the same as one input (O1) whereas the second output is XOR of the first two inputs (O2) and the third output is XOR of the AND of first two inputs (O3).All-optical Peres gate (a) block diagram, (b) schematic of the design using optically controlled microcavities.
(a)(b)The design of an all-optical Peres gate with optically controlled microcavities is as shown in Figure7(b), with the control signal I1 and the two IR signals I2 and I3 as the three inputs that result in the three outputs O1, O2, and O3, respectively. The control signal I1 activates both microcavities M1 and M2 in succession and maps to output O1.Case (i): Initially, when none of the inputs are applied, only P3 of M2 is high, which passes over to P4 as M2 is not activated, resulting in all output ports being low. Case (ii): When I1 = I2 = 0 and I3 = 1, both M1 and M2 are OFF and hence, O2 is low and I3 passes through to O3 and yields a high output. Case (iii): When I1 = 0, I2 = 1, and I3 = 0, again both microcavities are OFF, I2 passes over to O2 and makes it high and O3 is low. Case (iv): When I1 = 0, I2 = 1, and I3 = 1, O2, and O3 are both high as I2 and I3 get directly transmitted to these ports, without getting switched at M1 or M2. Case (v): When I1 = 1 and I2 = I3 = 0, both M1 and M2 are activated. Since I3 = 0, O3 is also low. NOT(I2) at P3 of M2 is high which gets switched by M2 to make O2 high. Case (vi): When I1 = 1, I2 = 0 and I3 = 1, again O2 is high due to switching of NOT(I2) by M2 to O2, whereas now, I3 gets switched by M1 to emerge at P4, making O3 again low. Case (vii): When I1 = I2 = 1 and I3 = 0, I2 gets switched by M2 to its P4, leading to O2 getting low, while with no I3, O3 also gets low. Case (viii): When I1 = I2 = I3 = 1, I2 and I3 get switched by M2 and M1 respectively to result in O2 and O3 getting low. The various combinations of the inputs results in the desired outputs that satisfy Peres gate logic (Truth Table3). The input I1 in terms of the control signal can also be fed in parallel to activate M1 and M2 through a beam splitter.Table 3
Truth table of all-optical Peres gate.
InputOutputI1 (μW)I2 (mW)NOT(I2) (mW)I3 (mW)O1 (μW)O2 (mW)O3 (mW)001(1.5)0000001(1.5)1(1.5)001(1.5)01(1.5)0001(1.5)001(1.5)01(1.5)01(1.5)1(1.5)1(60)01(1.5)01(15)1(1.47)01(60)01(1.5)1(1.5)1(15)1(1.47)0(0.03)1(60)1(1.5)001(15)0(0.03)01(60)1(1.5)01(1.5)1(15)0(0.03)0(0.03)The various input-output combinations result in the realization of the Peres gate logic, as is evident from the Truth Table3.


#### 3.2.4. All-Optical Feynman Double Gate

The Feynman Double gate is another 3 × 3 reversible gate which maps one input to one output, while the second output is the XOR of the first two inputs and the third output is the XOR of the second and third inputs, as shown in the block diagram in Figure8(a).All-optical Feynman Double gate (a) block diagram, (b) schematic of the design using optically controlled microcavities.
(a)(b)Following the criterion applied earlier, the design based on two optically controlled microcavities is shown in Figure8(b). The input control signal I1 directly maps out to output O1, satisfying the first requirement. The IR input signals I2 and I3 form the other two inputs, with outputs at O2 and O3. We consider the various combinations of the inputs resulting in respective outputs as described in Truth Table 4.Table 4
Truth table of all-optical Feynman Double gate.
InputOutputI1 (μW)I2 (mW)NOT(I2) (mW)I3 (mW)NOT(I3) (mW)O1 (μW)O2 (mW)O3 (mW)001(1.5)01(1.5)000001(1.5)1(1.5)0001(1.5)01(1.5)001(1.5)01(1.5)001(1.5)01(1.5)001(1.5)1(1.5)1(60)01(1.5)01(1.5)1(15)1(1.47)1(1.47)1(60)01(1.5)1(1.5)01(15)1(1.47)0(0.03)1(60)1(1.5)001(1.5)1(15)0(0.03)1(1.47)1(60)1(1.5)01(1.5)01(15)0(0.03)0(0.03)Case (i): When none of the inputs are applied, we get no outputs. Case (ii): When I1 = I2 = 0 and I3 = 1, both M1 and M2 are not activated and hence, I3 passes over to O3 to result in a high output. The NOT(I2) which is high, also does not get switched and passes over to P4 of M1. Case (iii): When I1 = 0, I2 = 1 and I3 = 0, in the absence of any switching by M1 and M2, I2 passes over to O2 to make it high and I3 ensures that O3 is low. Case (iv): When I1 = 0, I2 = I3 = 1, since both M1 and M2 are OFF, again O2 and O3 pass over to make O2 = O3 = 1. Case (v): When I1 = 1, I2 = I3 = 0, M1 and M2 are activated and NOT(12) and NOT(I3) are now high, which get switched at M1 and M2 respectively to make O2 and O3 high. Case (vi): When I1 = 1, I2 = 0 and I3 = 1, NOT(I2) is high which is routed by M1 to O2, while I3 gets switched by M2 to emerge at P4 of M2 to result in a low output at O3. Case (vii): When I1 = I2 = 1 and I3 = 0, I2 gets switched by M1 to make O2 low and NOT(I3) gets switched by M2 to make O3 high. Case (viii): When I1 = I2 = I3 = 1, I2 and I3 get switched by M1 and M2 to result in low outputs at O2 and O3, respectively.The above combinations result in the circuit in Figure8(b) that implements Feynman double gate logic as shown in Truth Table 4. This paper demonstrates the applicability of the concept of optically controlled microcavities coated with a photochromic material for all-optical information processing. The proposed designs of the various all-optical reversible logic gates have been realized considering positive logic and using common threshold values for the high and low-states, as defined in the case of Feynman gate.BR is virtually transparent at near-infrared telecom band (1310/1550 nm) [41–46]. The tunable all-optical resonant coupler using a high Q-silica microcavity coated with ultrathin molecular layers, operates far from the BR molecular absorption bands, which allows it to modulate near-infrared probe beams with a low-intensity visible pump [47–49]. The switching of the near-infrared wavelengths at 1310/1550 nm in single-mode optical fibers ensures that the propagation losses in the connecting fibers over short distances are negligible.The switching contrast can be maximized by suitably choosing the number of BR-monolayers, the photo-isomerization of which shifts the resonance to the midpoint between the original position and that of the nearest neighbor. It also increases with the increase in the polarizability. Switching can be achieved at very low powers (≤μW), assuming the Q-factor of the microsphere does not change when choosing small BR-coated microspheres as switches, since the intensity of the pump is resonantly enhanced by recirculation in the microcavity.An ideal all-optical switch requires low switching power, high speed, and high contrast. In general, highQ-factor results in low switching power whereas smaller cavity lifetime τ (= Q/ω0, where ω0 is the resonant frequency) and low total internal loss Ai (= αbend 2πR), result in high speed and contrast, respectively. In our case, the high Q factor of 5 × 105 and the high sensitivity of BR results in all-optical switching at very low powers (<200 μW for the control beam at 532 nm). As mentioned earlier, the switch in our experiments was not optimized for best performance. In a BR-coated silica microcavity, the switching speed depends on BR isomerization, which in our experiment was ~μs and can be optimized by controlling various factors such as, by tailoring the BR intermediate lifetimes and/or phototransitions, by exploiting ultrafast photochromic transitions of the early BR intermediate states studied for switching [52, 53], or by coating the microcavity by other organic molecules such as diarylethenes that exhibit ultrafast photochromic transitions, in which case, the speed is limited by the cavity photon lifetime.As mentioned earlier, the transmission spectra exhibited an extinction of −9.4 dB in Port 2 and a 9.8 dB increase in transmission in Port 3. In our experimental conditions a 5 mW DFB laser operating at 1310/1550 nm was used to butt couple light into the SMF fiber. Considering ~30% light to couple through (1.5 mW) as the input signal, ~98% of the light (1.47 mW) gets switched from Port 1 to Port 4, or from Port 3 to Port 2, when the microcavity is activated and only ~2% gets coupled into Port 2 or Port 4 respectively. Considering negligible signal loss due to scattering and propagation through the short length of the connecting optical fibers, can result in cascading of a large number of switches. For instance, considering 1.5 mW of coupled light in Port 1 and a terminal signal strength of ~0.2 mW can result in principle, in cascading as many as 65 switches.In general, the BR-coated microcavity switch is operated with outputs coded on two different wavelengths. Cascading these switches in general would require the output at one wavelength from one switch to form the input at the other wavelength for the next switch. This would then require a wavelength converter. However, as shown in the proposed designs for various Boolean arithmetic and logic circuits earlier [49, 50] and in the present designs of all-optical Toffoli, Peres, and Feynman Double gates, which use multiple cascaded switches, using one wavelength as the signal and the other as a control signal, circuits can be suitably designed to circumvent the use of a wavelength converter. Using microcavities as the basic building block also offers the possibility of using arrays and 2D/3D integrated structures to form circuits and networks. The design of the switch can be tailored to meet device specifications by optimizing the microcavity, by changing its shape or size, as well as the BR response, using the powerful capabilities of nano-biotechnological techniques.An ideal photosensitive material should exhibit high sensitivity, high absorption, fast dynamics, high photo and thermal stability, and potential to tailor its properties, as coating the microcavities with a photosensitive material is of critical value. BR protein is a natural photochromic material that exhibits this unique combination of properties for practical realization. Besides its unique properties, BR is a good choice of coating a microsphere as (i) its structure is well known, (ii) it self-assembles easily onto a silica surface, (iii) its molecular configuration can be switched optically between two stable states, and (iv) a pump-probe excitation can be easily implemented. The control of all these features provides tremendous scope for tuning and optimizing the characteristics of the BR-coated microcavity switch to meet device requirements. Microcavities coated with photochromic materials such as BR have advantages in terms of simple geometry, ease of fabrication, high thermal and photostability, high fan-out, cost-effectiveness, and low-power operation.It is extremely important that the photochromic material exhibits high fatigue resistance for practical applications. It is remarkable that BR retains its properties in film form even after being heated to 140°C whereas in liquid solutions it has been shown to be stable upto 80°C [42–46]. It has been reported that BR films do not show any photodegradation even after 106 switching cycles and more than 10 years of use. BR also exhibits photochemical stability over a wide pH range (0–12) [44]. These exceptional properties are attributed to the fact that it survives in extremely harsh conditions, has been optimized over centuries of evolution and it possesses a 2D crystalline structure.Recently, reversible tuning of a photonic crystal cavity resonance has been demonstrated using a thin photochromic film composed of spiropyran and polymethylmethacrylate that serves as a photosensitive cladding layer [55]. This system suffers from photostability and hence repeatability as the cavity can be shifted and reversed roughly only three times before the tunability degrades too much for further significant shifts [55].Recently, Directed Logic (DL) has been demonstrated as an innovative paradigm that minimizes the latency in calculating a complicated logic function by taking advantage of fast and low-loss propagation of light in integrated and waveguided on-chip photonic system [5]. The requirements for an ideal optical switch for DL circuits are small size, fast switching speed, low-power consumption, and capability of large scale integration. The first general designs of reversible logic gates proposed with optically controlled microresonators that can be implemented in both fiber or integrated-optic format can meet the desired specifications.There is tremendous research underway to fabricate high-Q microring resonators in a variety of materials and large-scale arrays of ultrahigh-Q coupled nanocavities [29, 31, 34]. Recently, a compact silicon ring resonator coated with vanadium dioxide (VO2) has been demonstrated by thermally inducing the metal-insulator transition in VO2 and hence the refractive index. The proof-of-principle proposition for THz operation is based on ~3 μm diameter rings with Q ~ 102–103 that requires changing the temperature from room temperature to 80°C, which is severely limited for practical applications [56]. We intend to investigate an all-optical BR-coated microring resonator switch in planar geometry for all-optical device applications that would be presented elsewhere.The proposed designs require optical excitation of BR protein, which in principle requires some energy, which due to its high quantum efficiency, high absorption coefficient, and high sensitivity, is very low. Moreover, as ultra-high-Q microresonator cavities offer the potential for single-molecule detection, the integration of a single BR molecule, or a few BR molecules with an ultra-high-Q microresonator configuration, may possibly lead to an extremely small energy excitation of BR that is enough for activating the microresonator switch and enabling reversible logic operations. Hence, although the proposed designs are important, as they demonstrate the feasibility for low-power all-optical computing, the potential for single-photon implementation could lead to the energy for excitation of BR in the proposed configuration to drop below kTln2, for realizing the much desired zero-energy-dissipation logic.


## 3.1. All-Optical Switching in BR-Coated Microcavity

Photo-excitation of BR triggers a complex photocycle that involves isomerization and rotation of the retinal chromophore, and a proton transfer across the lipid membrane [41–44]. During the photocycle, the retinal changes its conformation between the all-trans, 15-antiprotonated Schiff base found in the thermodynamically stable ground state; 13-cis, 15-anti protonated Schiff base prevalent in its metastable M-state. These two states identify a bistable photochromic system used for light modulation. Excitation of the retinal protein around the ground state maximum absorption wavelength of 568 nm drives BR through several intermediaries into the M-state within 50 μs. Conversely, illumination of BR around the M-state absorption peak of 412 nm, directly recovers the ground state within 200 ns (Figure 2(a)). This photoreaction represents the molecular basis for all-optical switching with BR [45, 51].(a) Photo-induced molecular conformational switching between the ground and the M-intermediate states of BR, (b) IR image of 1310-nm probe beam propagation with green pump beam on and blue off, and (c) IR-probe propagation with green pump off and blue on.
(a)(b)(c)In the BR-coated microcavity switch, the switching of the input signal operating at wavelength 1310/1550 nm between the output ports (2 and 4) is photoinduced with a fiber-coupled green pump laser (at 532 nm) which controls the conformational state of the adsorbed BR. Photoinduced isomerization of the retinal alters the optical properties of the BR membrane such as the absorption spectrum, the molecular polarizability, and the hyperpolarizabilities. Hence, the conformational change perturbs the optical modes interacting with BR even when there is little or no spectral overlap between the mode frequency and the BR electronic transition bands. Resonant modes in the optical microcavity significantly enhance this interaction conveying this perturbation as a frequency shift of optical resonances.The molecularly functionalized microcavity thus redirects the flow of near-infrared light beam between two optical fibers. With the pump OFF, the probing light from input Port 1 is detuned from resonance and is directly transmitted into the output Port 2. The pump evanescently excites whispering gallery modes (WGM) propagating around the microsphere’s equator, inducing photoisomerization along their path. A low green cw laser (<200μW at 532 nm) is sufficient for this purpose, as its effective absorption is resonantly enhanced. Isomerization reduces the retinal polarizability, tuning the resonance wavelength of the microsphere to match the wavelength of the infrared probe which is then rerouted from input Port 1 into the output Port 4. The transmission spectra exhibited an extinction of −9.4 dB in Port 2 and a 9.8 dB increase in transmission in Port 4 [47–49]. Figure 2(b) shows the IR image of 1310 nm probe beam propagation with pump green beam on and blue turned off with light getting switched to Port 4 whereas Figure 2(c) with blue off and green on, it is transmitted to Port 2.In this experiment, green (532 nm) and blue (405 nm) pump lasers, connected to Port 1 and 3, respectively, were used to control the conformation state of the retinal. Turning the green pump on and the blue off (13-cis isomer) routes the probe into output Port 4. When the green pump is off and the blue is on (all-trans isomer), the near-IR probe (1310/1550 nm telecom laser) is switched from Port 4 to output Port 2. The blue light beam (405 nm) helps in truncating the photocycle of the BR molecules at the M-intermediate state, which is near to its peak absorption wavelength of 412 nm, which results in a faster switch-off. Figure 3 shows the variation in the resonant wavelength shift (Δλ) of a transverse-electric- (TE-) polarized resonant mode on excitation with the modulating green and blue pump signals. It is evident that the alternating excitation with green and blue laser beams, results in the periodic shift in the resonant wavelength of about 1.2 pm. The inset shows the temporal response of a microsphere to a fast 10 kHz modulation, when green and blue pump beams (~200 μW, cw) were modulated with step functions at ~0.1 ms intervals and the transmitted intensity of the probe beam was measured at Port 2. The IR-probe modulation was recorded with a fast scanning oscilloscope. The switch ON/OFF time ~μs. Figure 4(a) depicts the dynamics of the ground-to-M state transformation observed by tracking wavelength shifts of TE- and TM-polarized microcavity modes on alternate exposure to green pump beam, and Figure 4(b) shows the slow thermal M to ground state relaxation turning into a fast photoinduced transition when the blue pump is applied at t≈ 19.5 s.Figure 3
Variation in the resonant shift of the TE-resonant peak of the 1310 nm IR signal by alternate exposure to green (532 nm) and blue (405 nm) pump beams. Inset shows the corresponding temporal switching response of a microsphere to a fast 10 kHz modulation, when green and blue pump beams (~200 μW, cw) were modulated with step functions at ~0.1 ms intervals.(a) Dynamics of the ground-to-M state transformation observed by tracking wavelength shifts of TE- and TM-polarized microcavity modes on alternate exposure to green pump beam, (b) the slow thermal M-to-ground state relaxation turning into a fast photoreaction on exposure to the green pump along with the blue beam.
(a)(b)For the low-pump intensities used in our measurements, the maximum modulation frequency was limited to ~10 kHz, where considering the switching contrast to be defined here as the ratio of the signal change and the noise level, reduced to ~2. Enhanced switching contrast at higher modulation rates can be achieved with mode-locked green and blue pumps and higher optical densities. The switching speed of BR-based devices is limited by the timescale of the ground to M-state transition (τ568≈ 50 μs). D96N–BR is known to exhibit a much longer M-state lifetime as compared to wildtype BR [42–46]. The speed of isomerization of the chromophore is also temperature dependent. It has been shown that the rate constant for M-state decay increases on increase in temperature [42–46]. An increase in temperature would result in faster switching of BR and hence the signal. The switching time can be further reduced by tailoring the BR intermediate lifetimes and/or phototransitions, by exploiting ultrafast photochromic transitions of the early BR intermediate states recently characterized and studied for switching [52, 53], or by coating the microcavity by other organic molecules such as diarylethenes that exhibit ultrafast photochromic transitions.The ultra-high sensitivity of both microresonators and BR protein configuration results in switching at very low powers. At present, all-optical switching in BR-coated microcavity has not been optimized for practical applications. The energy/bit for switching that has been demonstrated corresponds to ~nJ/bit. Both the minimum switching energy/bit and maximum switching speed need to be ascertained by exploiting the ultrafast initial intermediates. The 200μW switching power used in the experiment for the control signal can be further reduced by working with resonantly coupled coherent pump sources. This, however, would add another level of complexity to the control architecture. Working with the polarization states of BR can also add to the complexity or control [48]. The use of linearly polarized input light reduces the transmission at the off resonance frequency and increases the signal-to-noise ratio significantly. Using linearly polarized modes, the resonant wavelength shift ratio for the TE and TM polarizations is observed to be 2.1 ± 0.1, that is, the shift is about twice as large for TE as for the TM mode, which is due to retinal orientation in the BR membrane. Hence, TE modes have higher WGM peaks with higher intensity compared to TM modes.Both green and blue pump beams can also be alternatively injected through a coupler at Port 1. Hence, the silica microcavity in contact between two tapered fibers serves as a four-port tunable resonant coupler as shown in Figure1(a).


## 3.2. Design of All-Optical Reversible Logic Gates

The all-optical BR-coated microcavity switch with a single control signal at 532 nm or in conjunction with a 405 nm can be used as a building block for designing all-optical reversible logic gates, namely, Feynman, Toffoli, Peres, and the Feynman double gates. We consider a combination of three inputs, namely, the IR signal at Port 1 and 3 and the control signal at Port 1, and three outputs, that is, IR signal at Ports 2 and 4 and the control signal at Port 2.


### 3.2.1. All-Optical Feynman Gate

The Feynman gate is a 2 × 2 reversible gate shown schematically in Figure5(a). It has 2 inputs and 2 outputs, with one input variable which is also the output. It can also be considered as an integration of a YES gate and an XOR gate, and is also known as controlled-NOT gate (CNOT), Figure 5(b). The inputs and outputs are associated as I1 = O1 and O2 = I1 XOR I2, as is also evident from the Truth Table 1.Table 1
Truth table of all-optical Feynman gate.
InputOutputI1 (μW)I2 (mW)NOT (I2) (mW)O1 (μW)O2 (mW)001(1.5)0001(1.5)001(1.5)1(60)01(1.5)1(30)1(1.47)1(60)1(1.5)01(30)0(0.03)All-optical Feynman gate, (a) block diagram, (b) schematic of the logic circuit, and (c) schematic of the design using optically controlled microcavities. The dashed line shows the option of using an inverter circuit.
(a)(b)(c)The design of an all-optical Feynman gate using a BR-coated microcavity switch is as shown in Figure5(c). We consider the inputs to be the control signal and the IR signal at Port 1, designated as inputs I1 and I2, respectively, while the control signal passing through the fiber coupler towards the output and the IR signal emerging at port 2 are considered as the two outputs, O1 and O2, respectively. The state of the device is initially off-resonance and the presence of the control input puts the device on resonance. We further consider the infrared input I2 to be fed into either Port 1 or Port 3 by two laser diodes one at a time, or possibly by a single diode at Port 1 connected to Port 3, through an inverter.Of the four input combinations, when no input is applied, the outputs are zero, due to the absence of any signal. When the control signal I1 is OFF, and the input I2 at Port 1 is ON, it passes out to Port 2 due to the inactivation of the microcavity (O2 = High and O1 = I1 = 0). Since, input at Port 1 is ON, Port 3 is OFF and so there is also no output at Port 4. When, I1 is ON and I2 at Port 1 is OFF, the input NOT(I2) at Port 3 is ON, which is switched by the microcavity to emerge at Port 2 (O2 = High and O1 = I1 = 1). Finally, when both I1 is ON and I2 at Port 1 is also ON, the signal I2 is switched by the control signal to emerge at Port 4, leading to O2 = Low and O1 = I1 = 1). Since, there is no input at Port 3 (it is OFF as Port 1 is ON), hence, it does not affect the outcome at Port 2.We consider the experimental conditions, that is, a 200μW laser operating at 532 nm as the control signal at I1 and a 5 mW DFB laser operating at 1310/1550 nm, which butt couples ~30% light (1.5 mW) as the input signal at Ports 1 or 3. Considering our switching results [47], with ~98% of light (1.47 mW) getting switched or routed from Port 1 to Port 4, or from Port 3 to Port 2, when the microcavity is activated, only ~2% of the light then gets coupled into Port 2 or Port 4, respectively (0.03 mW). Considering 50% power of the control signal coupled to the microcavity through a fiber coupler, the remaining power is considered to be detected at the output port that is, O1 (100 μW). In general, nearly lossless power transfer between optical fibers and high-Q optical resonators has been observed, and by proper selection of the taper diameter, negligible scattering loss takes place [54]. Considering positive logic and an upper limit of low output state to be 0.05 mW and a minimum threshold at 1.3 mW for the high state, for the IR output, and a corresponding upper limit of 5 μW for the low state and a lower limit of 10 μW for the high-state, for the green control beam, Table 1 results in the realization of all-optical Feynman gate. In addition to this, the output at Port 4 results in realization of XNOR logic operation.


### 3.2.2. All-Optical Toffoli Gate

The Toffoli gate is a universal reversible logic gate, which is also known as the “controlled-controlled-not” gate. It has a 3-bit input and output, and if the first two bits are set, it flips the third bit, as shown in Truth Table2. It can be also described as mapping bits I1, I2, and I3 to I1, I2, and I3 XOR (I1 AND I2), as shown in Figure 6(a).Table 2
Truth table of all-optical Toffoli gate.
InputOutputI1 (μW)I2 (μW)I3 (mW)NOT(I3) (mW)O1 (μW)O2 (μW)O3 (mW)0001(1.5)000001(1.5)0001(1.5)01(60)01(1.5)01(30)001(60)1(1.5)001(30)1(1.5)1(60)001(1.5)1(30)001(60)01(1.5)01(30)01(1.5)1(60)1(60)01(1.5)1(30)1(30)1(1.44)1(60)1(60)1(1.5)01(30)1(30)0(0.03)All-optical Toffoli gate, (a) block diagram, and (b) schematic of the design using optically controlled microcavities.
(a)(b)Considering the BR-coated microcavity switch described earlier, the design of an all-optical Toffoli gate is as shown in Figure6(b), which is realized using two switches. We consider the two inputs as control signals I1 and I2, respectively, while the third input I3 is considered to be the input IR signal at Port P1 or at Port P3 of the first microcavity, by two laser diodes one at a time, or by a single diode at Port P1 connected to Port P3, through an inverter, (to make them out of phase), I3 is also connected directly to Port P3 of the second microcavity. Since two inputs in the Toffoli gate map out to two outputs, we have this implemented with the control signals I1 and I2 mapping out to O1 and O2, respectively. In this case, we consider an IR laser diode of 10 mW to butt couple 30% light of 3 mW to form input I3, which splits equally through the beam splitter to form the two inputs to the two microcavities, M1 and M2. This ensures consistency in the input signal intensities in all reversible logic gate designs and hence setting the same threshold values.Considering the various possible combinations of the three inputs, as mentioned in Truth Table2, for Case (i): When none of the inputs are applied, there are no outputs. Case (ii): When both I1 = I2 = 0 and I3 is applied, from P1, it emerges at P2 of M2, passing through P2 of M1 and P1 of M2. I3 which also inputs at P3 of M2 emerges out at P4 of M2 to O3, as both the microcavities are disabled. Case (iii): When I1 = 0 and I2 = 1 and I3 = 0, O2 = 1 and O3 = 0, as, although M2 is activated, no signal at P3 of M2 leads to P4 when I1 = 0 and I2 = 1 and I3 = 0, P4 of M2 = O3 = 0. Case (iv): When I1 = 0 and I2 = 1 and I3 = 1, O3 is high as the signal is switched by M2 to P4 of M2. Input I3 at P3 of M2 also makes P2 of M2 high, although it is of no consequence in the Toffoli gate logic operation. Case (v): When I1 = 1 and I2 = 0 = I3, M1 is activated and M2 is off, but with no signal I3 at P1 or P3 of M2, the output at O3 = 0. However, NOT(I3) which is high at P3 gets switched by M1 to emerge at P2 of M2. Case (vi): When I1 = 1, I2 = 0 and I3 = 1, M1 switches I3 to P4 and I3 at P3 of M2 passes over to P4 of M2 to result in O3 being high. Case (vii): When I1 = I2 = 1 and I3 = 0, both microcavities are activated, but NOT(I3) is now high at P3, which gets switched by M1 and then M2 to result in a high output at O3. Case (viii): When I1 = I2 = I3 = 1, I3 gets switched by M1 to P4 and by M2 to its P2, to result in a low output at O3. The above combinations result in the circuit in Figure 6(b), which implements Toffoli gate logic as shown in Truth Table 2.


### 3.2.3. All-Optical Peres Gate

The Peres gate is also a reversible 3 × 3 logic gate, with a schematic diagram shown in Figure7(a). One output is the same as one input (O1) whereas the second output is XOR of the first two inputs (O2) and the third output is XOR of the AND of first two inputs (O3).All-optical Peres gate (a) block diagram, (b) schematic of the design using optically controlled microcavities.
(a)(b)The design of an all-optical Peres gate with optically controlled microcavities is as shown in Figure7(b), with the control signal I1 and the two IR signals I2 and I3 as the three inputs that result in the three outputs O1, O2, and O3, respectively. The control signal I1 activates both microcavities M1 and M2 in succession and maps to output O1.Case (i): Initially, when none of the inputs are applied, only P3 of M2 is high, which passes over to P4 as M2 is not activated, resulting in all output ports being low. Case (ii): When I1 = I2 = 0 and I3 = 1, both M1 and M2 are OFF and hence, O2 is low and I3 passes through to O3 and yields a high output. Case (iii): When I1 = 0, I2 = 1, and I3 = 0, again both microcavities are OFF, I2 passes over to O2 and makes it high and O3 is low. Case (iv): When I1 = 0, I2 = 1, and I3 = 1, O2, and O3 are both high as I2 and I3 get directly transmitted to these ports, without getting switched at M1 or M2. Case (v): When I1 = 1 and I2 = I3 = 0, both M1 and M2 are activated. Since I3 = 0, O3 is also low. NOT(I2) at P3 of M2 is high which gets switched by M2 to make O2 high. Case (vi): When I1 = 1, I2 = 0 and I3 = 1, again O2 is high due to switching of NOT(I2) by M2 to O2, whereas now, I3 gets switched by M1 to emerge at P4, making O3 again low. Case (vii): When I1 = I2 = 1 and I3 = 0, I2 gets switched by M2 to its P4, leading to O2 getting low, while with no I3, O3 also gets low. Case (viii): When I1 = I2 = I3 = 1, I2 and I3 get switched by M2 and M1 respectively to result in O2 and O3 getting low. The various combinations of the inputs results in the desired outputs that satisfy Peres gate logic (Truth Table3). The input I1 in terms of the control signal can also be fed in parallel to activate M1 and M2 through a beam splitter.Table 3
Truth table of all-optical Peres gate.
InputOutputI1 (μW)I2 (mW)NOT(I2) (mW)I3 (mW)O1 (μW)O2 (mW)O3 (mW)001(1.5)0000001(1.5)1(1.5)001(1.5)01(1.5)0001(1.5)001(1.5)01(1.5)01(1.5)1(1.5)1(60)01(1.5)01(15)1(1.47)01(60)01(1.5)1(1.5)1(15)1(1.47)0(0.03)1(60)1(1.5)001(15)0(0.03)01(60)1(1.5)01(1.5)1(15)0(0.03)0(0.03)The various input-output combinations result in the realization of the Peres gate logic, as is evident from the Truth Table3.


### 3.2.4. All-Optical Feynman Double Gate

The Feynman Double gate is another 3 × 3 reversible gate which maps one input to one output, while the second output is the XOR of the first two inputs and the third output is the XOR of the second and third inputs, as shown in the block diagram in Figure8(a).All-optical Feynman Double gate (a) block diagram, (b) schematic of the design using optically controlled microcavities.
(a)(b)Following the criterion applied earlier, the design based on two optically controlled microcavities is shown in Figure8(b). The input control signal I1 directly maps out to output O1, satisfying the first requirement. The IR input signals I2 and I3 form the other two inputs, with outputs at O2 and O3. We consider the various combinations of the inputs resulting in respective outputs as described in Truth Table 4.Table 4
Truth table of all-optical Feynman Double gate.
InputOutputI1 (μW)I2 (mW)NOT(I2) (mW)I3 (mW)NOT(I3) (mW)O1 (μW)O2 (mW)O3 (mW)001(1.5)01(1.5)000001(1.5)1(1.5)0001(1.5)01(1.5)001(1.5)01(1.5)001(1.5)01(1.5)001(1.5)1(1.5)1(60)01(1.5)01(1.5)1(15)1(1.47)1(1.47)1(60)01(1.5)1(1.5)01(15)1(1.47)0(0.03)1(60)1(1.5)001(1.5)1(15)0(0.03)1(1.47)1(60)1(1.5)01(1.5)01(15)0(0.03)0(0.03)Case (i): When none of the inputs are applied, we get no outputs. Case (ii): When I1 = I2 = 0 and I3 = 1, both M1 and M2 are not activated and hence, I3 passes over to O3 to result in a high output. The NOT(I2) which is high, also does not get switched and passes over to P4 of M1. Case (iii): When I1 = 0, I2 = 1 and I3 = 0, in the absence of any switching by M1 and M2, I2 passes over to O2 to make it high and I3 ensures that O3 is low. Case (iv): When I1 = 0, I2 = I3 = 1, since both M1 and M2 are OFF, again O2 and O3 pass over to make O2 = O3 = 1. Case (v): When I1 = 1, I2 = I3 = 0, M1 and M2 are activated and NOT(12) and NOT(I3) are now high, which get switched at M1 and M2 respectively to make O2 and O3 high. Case (vi): When I1 = 1, I2 = 0 and I3 = 1, NOT(I2) is high which is routed by M1 to O2, while I3 gets switched by M2 to emerge at P4 of M2 to result in a low output at O3. Case (vii): When I1 = I2 = 1 and I3 = 0, I2 gets switched by M1 to make O2 low and NOT(I3) gets switched by M2 to make O3 high. Case (viii): When I1 = I2 = I3 = 1, I2 and I3 get switched by M1 and M2 to result in low outputs at O2 and O3, respectively.The above combinations result in the circuit in Figure8(b) that implements Feynman double gate logic as shown in Truth Table 4. This paper demonstrates the applicability of the concept of optically controlled microcavities coated with a photochromic material for all-optical information processing. The proposed designs of the various all-optical reversible logic gates have been realized considering positive logic and using common threshold values for the high and low-states, as defined in the case of Feynman gate.BR is virtually transparent at near-infrared telecom band (1310/1550 nm) [41–46]. The tunable all-optical resonant coupler using a high Q-silica microcavity coated with ultrathin molecular layers, operates far from the BR molecular absorption bands, which allows it to modulate near-infrared probe beams with a low-intensity visible pump [47–49]. The switching of the near-infrared wavelengths at 1310/1550 nm in single-mode optical fibers ensures that the propagation losses in the connecting fibers over short distances are negligible.The switching contrast can be maximized by suitably choosing the number of BR-monolayers, the photo-isomerization of which shifts the resonance to the midpoint between the original position and that of the nearest neighbor. It also increases with the increase in the polarizability. Switching can be achieved at very low powers (≤μW), assuming the Q-factor of the microsphere does not change when choosing small BR-coated microspheres as switches, since the intensity of the pump is resonantly enhanced by recirculation in the microcavity.An ideal all-optical switch requires low switching power, high speed, and high contrast. In general, highQ-factor results in low switching power whereas smaller cavity lifetime τ (= Q/ω0, where ω0 is the resonant frequency) and low total internal loss Ai (= αbend 2πR), result in high speed and contrast, respectively. In our case, the high Q factor of 5 × 105 and the high sensitivity of BR results in all-optical switching at very low powers (<200 μW for the control beam at 532 nm). As mentioned earlier, the switch in our experiments was not optimized for best performance. In a BR-coated silica microcavity, the switching speed depends on BR isomerization, which in our experiment was ~μs and can be optimized by controlling various factors such as, by tailoring the BR intermediate lifetimes and/or phototransitions, by exploiting ultrafast photochromic transitions of the early BR intermediate states studied for switching [52, 53], or by coating the microcavity by other organic molecules such as diarylethenes that exhibit ultrafast photochromic transitions, in which case, the speed is limited by the cavity photon lifetime.As mentioned earlier, the transmission spectra exhibited an extinction of −9.4 dB in Port 2 and a 9.8 dB increase in transmission in Port 3. In our experimental conditions a 5 mW DFB laser operating at 1310/1550 nm was used to butt couple light into the SMF fiber. Considering ~30% light to couple through (1.5 mW) as the input signal, ~98% of the light (1.47 mW) gets switched from Port 1 to Port 4, or from Port 3 to Port 2, when the microcavity is activated and only ~2% gets coupled into Port 2 or Port 4 respectively. Considering negligible signal loss due to scattering and propagation through the short length of the connecting optical fibers, can result in cascading of a large number of switches. For instance, considering 1.5 mW of coupled light in Port 1 and a terminal signal strength of ~0.2 mW can result in principle, in cascading as many as 65 switches.In general, the BR-coated microcavity switch is operated with outputs coded on two different wavelengths. Cascading these switches in general would require the output at one wavelength from one switch to form the input at the other wavelength for the next switch. This would then require a wavelength converter. However, as shown in the proposed designs for various Boolean arithmetic and logic circuits earlier [49, 50] and in the present designs of all-optical Toffoli, Peres, and Feynman Double gates, which use multiple cascaded switches, using one wavelength as the signal and the other as a control signal, circuits can be suitably designed to circumvent the use of a wavelength converter. Using microcavities as the basic building block also offers the possibility of using arrays and 2D/3D integrated structures to form circuits and networks. The design of the switch can be tailored to meet device specifications by optimizing the microcavity, by changing its shape or size, as well as the BR response, using the powerful capabilities of nano-biotechnological techniques.An ideal photosensitive material should exhibit high sensitivity, high absorption, fast dynamics, high photo and thermal stability, and potential to tailor its properties, as coating the microcavities with a photosensitive material is of critical value. BR protein is a natural photochromic material that exhibits this unique combination of properties for practical realization. Besides its unique properties, BR is a good choice of coating a microsphere as (i) its structure is well known, (ii) it self-assembles easily onto a silica surface, (iii) its molecular configuration can be switched optically between two stable states, and (iv) a pump-probe excitation can be easily implemented. The control of all these features provides tremendous scope for tuning and optimizing the characteristics of the BR-coated microcavity switch to meet device requirements. Microcavities coated with photochromic materials such as BR have advantages in terms of simple geometry, ease of fabrication, high thermal and photostability, high fan-out, cost-effectiveness, and low-power operation.It is extremely important that the photochromic material exhibits high fatigue resistance for practical applications. It is remarkable that BR retains its properties in film form even after being heated to 140°C whereas in liquid solutions it has been shown to be stable upto 80°C [42–46]. It has been reported that BR films do not show any photodegradation even after 106 switching cycles and more than 10 years of use. BR also exhibits photochemical stability over a wide pH range (0–12) [44]. These exceptional properties are attributed to the fact that it survives in extremely harsh conditions, has been optimized over centuries of evolution and it possesses a 2D crystalline structure.Recently, reversible tuning of a photonic crystal cavity resonance has been demonstrated using a thin photochromic film composed of spiropyran and polymethylmethacrylate that serves as a photosensitive cladding layer [55]. This system suffers from photostability and hence repeatability as the cavity can be shifted and reversed roughly only three times before the tunability degrades too much for further significant shifts [55].Recently, Directed Logic (DL) has been demonstrated as an innovative paradigm that minimizes the latency in calculating a complicated logic function by taking advantage of fast and low-loss propagation of light in integrated and waveguided on-chip photonic system [5]. The requirements for an ideal optical switch for DL circuits are small size, fast switching speed, low-power consumption, and capability of large scale integration. The first general designs of reversible logic gates proposed with optically controlled microresonators that can be implemented in both fiber or integrated-optic format can meet the desired specifications.There is tremendous research underway to fabricate high-Q microring resonators in a variety of materials and large-scale arrays of ultrahigh-Q coupled nanocavities [29, 31, 34]. Recently, a compact silicon ring resonator coated with vanadium dioxide (VO2) has been demonstrated by thermally inducing the metal-insulator transition in VO2 and hence the refractive index. The proof-of-principle proposition for THz operation is based on ~3 μm diameter rings with Q ~ 102–103 that requires changing the temperature from room temperature to 80°C, which is severely limited for practical applications [56]. We intend to investigate an all-optical BR-coated microring resonator switch in planar geometry for all-optical device applications that would be presented elsewhere.The proposed designs require optical excitation of BR protein, which in principle requires some energy, which due to its high quantum efficiency, high absorption coefficient, and high sensitivity, is very low. Moreover, as ultra-high-Q microresonator cavities offer the potential for single-molecule detection, the integration of a single BR molecule, or a few BR molecules with an ultra-high-Q microresonator configuration, may possibly lead to an extremely small energy excitation of BR that is enough for activating the microresonator switch and enabling reversible logic operations. Hence, although the proposed designs are important, as they demonstrate the feasibility for low-power all-optical computing, the potential for single-photon implementation could lead to the energy for excitation of BR in the proposed configuration to drop below kTln2, for realizing the much desired zero-energy-dissipation logic.


## 3.2.1. All-Optical Feynman Gate

The Feynman gate is a 2 × 2 reversible gate shown schematically in Figure5(a). It has 2 inputs and 2 outputs, with one input variable which is also the output. It can also be considered as an integration of a YES gate and an XOR gate, and is also known as controlled-NOT gate (CNOT), Figure 5(b). The inputs and outputs are associated as I1 = O1 and O2 = I1 XOR I2, as is also evident from the Truth Table 1.Table 1
Truth table of all-optical Feynman gate.
InputOutputI1 (μW)I2 (mW)NOT (I2) (mW)O1 (μW)O2 (mW)001(1.5)0001(1.5)001(1.5)1(60)01(1.5)1(30)1(1.47)1(60)1(1.5)01(30)0(0.03)All-optical Feynman gate, (a) block diagram, (b) schematic of the logic circuit, and (c) schematic of the design using optically controlled microcavities. The dashed line shows the option of using an inverter circuit.
(a)(b)(c)The design of an all-optical Feynman gate using a BR-coated microcavity switch is as shown in Figure5(c). We consider the inputs to be the control signal and the IR signal at Port 1, designated as inputs I1 and I2, respectively, while the control signal passing through the fiber coupler towards the output and the IR signal emerging at port 2 are considered as the two outputs, O1 and O2, respectively. The state of the device is initially off-resonance and the presence of the control input puts the device on resonance. We further consider the infrared input I2 to be fed into either Port 1 or Port 3 by two laser diodes one at a time, or possibly by a single diode at Port 1 connected to Port 3, through an inverter.Of the four input combinations, when no input is applied, the outputs are zero, due to the absence of any signal. When the control signal I1 is OFF, and the input I2 at Port 1 is ON, it passes out to Port 2 due to the inactivation of the microcavity (O2 = High and O1 = I1 = 0). Since, input at Port 1 is ON, Port 3 is OFF and so there is also no output at Port 4. When, I1 is ON and I2 at Port 1 is OFF, the input NOT(I2) at Port 3 is ON, which is switched by the microcavity to emerge at Port 2 (O2 = High and O1 = I1 = 1). Finally, when both I1 is ON and I2 at Port 1 is also ON, the signal I2 is switched by the control signal to emerge at Port 4, leading to O2 = Low and O1 = I1 = 1). Since, there is no input at Port 3 (it is OFF as Port 1 is ON), hence, it does not affect the outcome at Port 2.We consider the experimental conditions, that is, a 200μW laser operating at 532 nm as the control signal at I1 and a 5 mW DFB laser operating at 1310/1550 nm, which butt couples ~30% light (1.5 mW) as the input signal at Ports 1 or 3. Considering our switching results [47], with ~98% of light (1.47 mW) getting switched or routed from Port 1 to Port 4, or from Port 3 to Port 2, when the microcavity is activated, only ~2% of the light then gets coupled into Port 2 or Port 4, respectively (0.03 mW). Considering 50% power of the control signal coupled to the microcavity through a fiber coupler, the remaining power is considered to be detected at the output port that is, O1 (100 μW). In general, nearly lossless power transfer between optical fibers and high-Q optical resonators has been observed, and by proper selection of the taper diameter, negligible scattering loss takes place [54]. Considering positive logic and an upper limit of low output state to be 0.05 mW and a minimum threshold at 1.3 mW for the high state, for the IR output, and a corresponding upper limit of 5 μW for the low state and a lower limit of 10 μW for the high-state, for the green control beam, Table 1 results in the realization of all-optical Feynman gate. In addition to this, the output at Port 4 results in realization of XNOR logic operation.


## 3.2.2. All-Optical Toffoli Gate

The Toffoli gate is a universal reversible logic gate, which is also known as the “controlled-controlled-not” gate. It has a 3-bit input and output, and if the first two bits are set, it flips the third bit, as shown in Truth Table2. It can be also described as mapping bits I1, I2, and I3 to I1, I2, and I3 XOR (I1 AND I2), as shown in Figure 6(a).Table 2
Truth table of all-optical Toffoli gate.
InputOutputI1 (μW)I2 (μW)I3 (mW)NOT(I3) (mW)O1 (μW)O2 (μW)O3 (mW)0001(1.5)000001(1.5)0001(1.5)01(60)01(1.5)01(30)001(60)1(1.5)001(30)1(1.5)1(60)001(1.5)1(30)001(60)01(1.5)01(30)01(1.5)1(60)1(60)01(1.5)1(30)1(30)1(1.44)1(60)1(60)1(1.5)01(30)1(30)0(0.03)All-optical Toffoli gate, (a) block diagram, and (b) schematic of the design using optically controlled microcavities.
(a)(b)Considering the BR-coated microcavity switch described earlier, the design of an all-optical Toffoli gate is as shown in Figure6(b), which is realized using two switches. We consider the two inputs as control signals I1 and I2, respectively, while the third input I3 is considered to be the input IR signal at Port P1 or at Port P3 of the first microcavity, by two laser diodes one at a time, or by a single diode at Port P1 connected to Port P3, through an inverter, (to make them out of phase), I3 is also connected directly to Port P3 of the second microcavity. Since two inputs in the Toffoli gate map out to two outputs, we have this implemented with the control signals I1 and I2 mapping out to O1 and O2, respectively. In this case, we consider an IR laser diode of 10 mW to butt couple 30% light of 3 mW to form input I3, which splits equally through the beam splitter to form the two inputs to the two microcavities, M1 and M2. This ensures consistency in the input signal intensities in all reversible logic gate designs and hence setting the same threshold values.Considering the various possible combinations of the three inputs, as mentioned in Truth Table2, for Case (i): When none of the inputs are applied, there are no outputs. Case (ii): When both I1 = I2 = 0 and I3 is applied, from P1, it emerges at P2 of M2, passing through P2 of M1 and P1 of M2. I3 which also inputs at P3 of M2 emerges out at P4 of M2 to O3, as both the microcavities are disabled. Case (iii): When I1 = 0 and I2 = 1 and I3 = 0, O2 = 1 and O3 = 0, as, although M2 is activated, no signal at P3 of M2 leads to P4 when I1 = 0 and I2 = 1 and I3 = 0, P4 of M2 = O3 = 0. Case (iv): When I1 = 0 and I2 = 1 and I3 = 1, O3 is high as the signal is switched by M2 to P4 of M2. Input I3 at P3 of M2 also makes P2 of M2 high, although it is of no consequence in the Toffoli gate logic operation. Case (v): When I1 = 1 and I2 = 0 = I3, M1 is activated and M2 is off, but with no signal I3 at P1 or P3 of M2, the output at O3 = 0. However, NOT(I3) which is high at P3 gets switched by M1 to emerge at P2 of M2. Case (vi): When I1 = 1, I2 = 0 and I3 = 1, M1 switches I3 to P4 and I3 at P3 of M2 passes over to P4 of M2 to result in O3 being high. Case (vii): When I1 = I2 = 1 and I3 = 0, both microcavities are activated, but NOT(I3) is now high at P3, which gets switched by M1 and then M2 to result in a high output at O3. Case (viii): When I1 = I2 = I3 = 1, I3 gets switched by M1 to P4 and by M2 to its P2, to result in a low output at O3. The above combinations result in the circuit in Figure 6(b), which implements Toffoli gate logic as shown in Truth Table 2.


## 3.2.3. All-Optical Peres Gate

The Peres gate is also a reversible 3 × 3 logic gate, with a schematic diagram shown in Figure7(a). One output is the same as one input (O1) whereas the second output is XOR of the first two inputs (O2) and the third output is XOR of the AND of first two inputs (O3).All-optical Peres gate (a) block diagram, (b) schematic of the design using optically controlled microcavities.
(a)(b)The design of an all-optical Peres gate with optically controlled microcavities is as shown in Figure7(b), with the control signal I1 and the two IR signals I2 and I3 as the three inputs that result in the three outputs O1, O2, and O3, respectively. The control signal I1 activates both microcavities M1 and M2 in succession and maps to output O1.Case (i): Initially, when none of the inputs are applied, only P3 of M2 is high, which passes over to P4 as M2 is not activated, resulting in all output ports being low. Case (ii): When I1 = I2 = 0 and I3 = 1, both M1 and M2 are OFF and hence, O2 is low and I3 passes through to O3 and yields a high output. Case (iii): When I1 = 0, I2 = 1, and I3 = 0, again both microcavities are OFF, I2 passes over to O2 and makes it high and O3 is low. Case (iv): When I1 = 0, I2 = 1, and I3 = 1, O2, and O3 are both high as I2 and I3 get directly transmitted to these ports, without getting switched at M1 or M2. Case (v): When I1 = 1 and I2 = I3 = 0, both M1 and M2 are activated. Since I3 = 0, O3 is also low. NOT(I2) at P3 of M2 is high which gets switched by M2 to make O2 high. Case (vi): When I1 = 1, I2 = 0 and I3 = 1, again O2 is high due to switching of NOT(I2) by M2 to O2, whereas now, I3 gets switched by M1 to emerge at P4, making O3 again low. Case (vii): When I1 = I2 = 1 and I3 = 0, I2 gets switched by M2 to its P4, leading to O2 getting low, while with no I3, O3 also gets low. Case (viii): When I1 = I2 = I3 = 1, I2 and I3 get switched by M2 and M1 respectively to result in O2 and O3 getting low. The various combinations of the inputs results in the desired outputs that satisfy Peres gate logic (Truth Table3). The input I1 in terms of the control signal can also be fed in parallel to activate M1 and M2 through a beam splitter.Table 3
Truth table of all-optical Peres gate.
InputOutputI1 (μW)I2 (mW)NOT(I2) (mW)I3 (mW)O1 (μW)O2 (mW)O3 (mW)001(1.5)0000001(1.5)1(1.5)001(1.5)01(1.5)0001(1.5)001(1.5)01(1.5)01(1.5)1(1.5)1(60)01(1.5)01(15)1(1.47)01(60)01(1.5)1(1.5)1(15)1(1.47)0(0.03)1(60)1(1.5)001(15)0(0.03)01(60)1(1.5)01(1.5)1(15)0(0.03)0(0.03)The various input-output combinations result in the realization of the Peres gate logic, as is evident from the Truth Table3.


## 3.2.4. All-Optical Feynman Double Gate

The Feynman Double gate is another 3 × 3 reversible gate which maps one input to one output, while the second output is the XOR of the first two inputs and the third output is the XOR of the second and third inputs, as shown in the block diagram in Figure8(a).All-optical Feynman Double gate (a) block diagram, (b) schematic of the design using optically controlled microcavities.
(a)(b)Following the criterion applied earlier, the design based on two optically controlled microcavities is shown in Figure8(b). The input control signal I1 directly maps out to output O1, satisfying the first requirement. The IR input signals I2 and I3 form the other two inputs, with outputs at O2 and O3. We consider the various combinations of the inputs resulting in respective outputs as described in Truth Table 4.Table 4
Truth table of all-optical Feynman Double gate.
InputOutputI1 (μW)I2 (mW)NOT(I2) (mW)I3 (mW)NOT(I3) (mW)O1 (μW)O2 (mW)O3 (mW)001(1.5)01(1.5)000001(1.5)1(1.5)0001(1.5)01(1.5)001(1.5)01(1.5)001(1.5)01(1.5)001(1.5)1(1.5)1(60)01(1.5)01(1.5)1(15)1(1.47)1(1.47)1(60)01(1.5)1(1.5)01(15)1(1.47)0(0.03)1(60)1(1.5)001(1.5)1(15)0(0.03)1(1.47)1(60)1(1.5)01(1.5)01(15)0(0.03)0(0.03)Case (i): When none of the inputs are applied, we get no outputs. Case (ii): When I1 = I2 = 0 and I3 = 1, both M1 and M2 are not activated and hence, I3 passes over to O3 to result in a high output. The NOT(I2) which is high, also does not get switched and passes over to P4 of M1. Case (iii): When I1 = 0, I2 = 1 and I3 = 0, in the absence of any switching by M1 and M2, I2 passes over to O2 to make it high and I3 ensures that O3 is low. Case (iv): When I1 = 0, I2 = I3 = 1, since both M1 and M2 are OFF, again O2 and O3 pass over to make O2 = O3 = 1. Case (v): When I1 = 1, I2 = I3 = 0, M1 and M2 are activated and NOT(12) and NOT(I3) are now high, which get switched at M1 and M2 respectively to make O2 and O3 high. Case (vi): When I1 = 1, I2 = 0 and I3 = 1, NOT(I2) is high which is routed by M1 to O2, while I3 gets switched by M2 to emerge at P4 of M2 to result in a low output at O3. Case (vii): When I1 = I2 = 1 and I3 = 0, I2 gets switched by M1 to make O2 low and NOT(I3) gets switched by M2 to make O3 high. Case (viii): When I1 = I2 = I3 = 1, I2 and I3 get switched by M1 and M2 to result in low outputs at O2 and O3, respectively.The above combinations result in the circuit in Figure8(b) that implements Feynman double gate logic as shown in Truth Table 4. This paper demonstrates the applicability of the concept of optically controlled microcavities coated with a photochromic material for all-optical information processing. The proposed designs of the various all-optical reversible logic gates have been realized considering positive logic and using common threshold values for the high and low-states, as defined in the case of Feynman gate.BR is virtually transparent at near-infrared telecom band (1310/1550 nm) [41–46]. The tunable all-optical resonant coupler using a high Q-silica microcavity coated with ultrathin molecular layers, operates far from the BR molecular absorption bands, which allows it to modulate near-infrared probe beams with a low-intensity visible pump [47–49]. The switching of the near-infrared wavelengths at 1310/1550 nm in single-mode optical fibers ensures that the propagation losses in the connecting fibers over short distances are negligible.The switching contrast can be maximized by suitably choosing the number of BR-monolayers, the photo-isomerization of which shifts the resonance to the midpoint between the original position and that of the nearest neighbor. It also increases with the increase in the polarizability. Switching can be achieved at very low powers (≤μW), assuming the Q-factor of the microsphere does not change when choosing small BR-coated microspheres as switches, since the intensity of the pump is resonantly enhanced by recirculation in the microcavity.An ideal all-optical switch requires low switching power, high speed, and high contrast. In general, highQ-factor results in low switching power whereas smaller cavity lifetime τ (= Q/ω0, where ω0 is the resonant frequency) and low total internal loss Ai (= αbend 2πR), result in high speed and contrast, respectively. In our case, the high Q factor of 5 × 105 and the high sensitivity of BR results in all-optical switching at very low powers (<200 μW for the control beam at 532 nm). As mentioned earlier, the switch in our experiments was not optimized for best performance. In a BR-coated silica microcavity, the switching speed depends on BR isomerization, which in our experiment was ~μs and can be optimized by controlling various factors such as, by tailoring the BR intermediate lifetimes and/or phototransitions, by exploiting ultrafast photochromic transitions of the early BR intermediate states studied for switching [52, 53], or by coating the microcavity by other organic molecules such as diarylethenes that exhibit ultrafast photochromic transitions, in which case, the speed is limited by the cavity photon lifetime.As mentioned earlier, the transmission spectra exhibited an extinction of −9.4 dB in Port 2 and a 9.8 dB increase in transmission in Port 3. In our experimental conditions a 5 mW DFB laser operating at 1310/1550 nm was used to butt couple light into the SMF fiber. Considering ~30% light to couple through (1.5 mW) as the input signal, ~98% of the light (1.47 mW) gets switched from Port 1 to Port 4, or from Port 3 to Port 2, when the microcavity is activated and only ~2% gets coupled into Port 2 or Port 4 respectively. Considering negligible signal loss due to scattering and propagation through the short length of the connecting optical fibers, can result in cascading of a large number of switches. For instance, considering 1.5 mW of coupled light in Port 1 and a terminal signal strength of ~0.2 mW can result in principle, in cascading as many as 65 switches.In general, the BR-coated microcavity switch is operated with outputs coded on two different wavelengths. Cascading these switches in general would require the output at one wavelength from one switch to form the input at the other wavelength for the next switch. This would then require a wavelength converter. However, as shown in the proposed designs for various Boolean arithmetic and logic circuits earlier [49, 50] and in the present designs of all-optical Toffoli, Peres, and Feynman Double gates, which use multiple cascaded switches, using one wavelength as the signal and the other as a control signal, circuits can be suitably designed to circumvent the use of a wavelength converter. Using microcavities as the basic building block also offers the possibility of using arrays and 2D/3D integrated structures to form circuits and networks. The design of the switch can be tailored to meet device specifications by optimizing the microcavity, by changing its shape or size, as well as the BR response, using the powerful capabilities of nano-biotechnological techniques.An ideal photosensitive material should exhibit high sensitivity, high absorption, fast dynamics, high photo and thermal stability, and potential to tailor its properties, as coating the microcavities with a photosensitive material is of critical value. BR protein is a natural photochromic material that exhibits this unique combination of properties for practical realization. Besides its unique properties, BR is a good choice of coating a microsphere as (i) its structure is well known, (ii) it self-assembles easily onto a silica surface, (iii) its molecular configuration can be switched optically between two stable states, and (iv) a pump-probe excitation can be easily implemented. The control of all these features provides tremendous scope for tuning and optimizing the characteristics of the BR-coated microcavity switch to meet device requirements. Microcavities coated with photochromic materials such as BR have advantages in terms of simple geometry, ease of fabrication, high thermal and photostability, high fan-out, cost-effectiveness, and low-power operation.It is extremely important that the photochromic material exhibits high fatigue resistance for practical applications. It is remarkable that BR retains its properties in film form even after being heated to 140°C whereas in liquid solutions it has been shown to be stable upto 80°C [42–46]. It has been reported that BR films do not show any photodegradation even after 106 switching cycles and more than 10 years of use. BR also exhibits photochemical stability over a wide pH range (0–12) [44]. These exceptional properties are attributed to the fact that it survives in extremely harsh conditions, has been optimized over centuries of evolution and it possesses a 2D crystalline structure.Recently, reversible tuning of a photonic crystal cavity resonance has been demonstrated using a thin photochromic film composed of spiropyran and polymethylmethacrylate that serves as a photosensitive cladding layer [55]. This system suffers from photostability and hence repeatability as the cavity can be shifted and reversed roughly only three times before the tunability degrades too much for further significant shifts [55].Recently, Directed Logic (DL) has been demonstrated as an innovative paradigm that minimizes the latency in calculating a complicated logic function by taking advantage of fast and low-loss propagation of light in integrated and waveguided on-chip photonic system [5]. The requirements for an ideal optical switch for DL circuits are small size, fast switching speed, low-power consumption, and capability of large scale integration. The first general designs of reversible logic gates proposed with optically controlled microresonators that can be implemented in both fiber or integrated-optic format can meet the desired specifications.There is tremendous research underway to fabricate high-Q microring resonators in a variety of materials and large-scale arrays of ultrahigh-Q coupled nanocavities [29, 31, 34]. Recently, a compact silicon ring resonator coated with vanadium dioxide (VO2) has been demonstrated by thermally inducing the metal-insulator transition in VO2 and hence the refractive index. The proof-of-principle proposition for THz operation is based on ~3 μm diameter rings with Q ~ 102–103 that requires changing the temperature from room temperature to 80°C, which is severely limited for practical applications [56]. We intend to investigate an all-optical BR-coated microring resonator switch in planar geometry for all-optical device applications that would be presented elsewhere.The proposed designs require optical excitation of BR protein, which in principle requires some energy, which due to its high quantum efficiency, high absorption coefficient, and high sensitivity, is very low. Moreover, as ultra-high-Q microresonator cavities offer the potential for single-molecule detection, the integration of a single BR molecule, or a few BR molecules with an ultra-high-Q microresonator configuration, may possibly lead to an extremely small energy excitation of BR that is enough for activating the microresonator switch and enabling reversible logic operations. Hence, although the proposed designs are important, as they demonstrate the feasibility for low-power all-optical computing, the potential for single-photon implementation could lead to the energy for excitation of BR in the proposed configuration to drop below kTln2, for realizing the much desired zero-energy-dissipation logic.


## 4. Conclusion

We have presented the designs of various reversible all-optical logic gates with optically controlled microresonators, namely, the Feynman gate, Toffoli gate, Peres gate, and the Feynman double gate. To demonstrate the applicability of the designs, a basic all-optical switch has been demonstrated at telecom wavelengths, controlled with visible light, using the unique BR protein monolayers coated on a silica microresonator, coupled between two tapered single-mode optical fibers. Low-power switching has been shown, which is a consequence of the high-Q factor, small dimensions, and photosensitivity of BR. The proposed designs can be used to implement large computing circuits and networks within an mW power budget. The change in the refractive index in a BR-coated microcavity switch depends on the wavelength of the control beam making the switches tunable. Since the properties of BR protein can be tailored by physical, chemical, and genetic engineering techniques, the performance can be optimized for desired applications.The proposed designs of all-optical reversible logic gates with BR-coated microcavity can be implemented with any other photosensitive material-coated on a microresonator and in any condition in which the resonance and the coupling can be controlled externally. They can also possibly be implemented in planar geometry using integrated-optic photonic crystal micro/nanocavities. The proposed designs are general and demonstrate the applicability of using optically controlled microresonators for reversible computing applications.



---

*Source: 727206-2011-09-11.xml*