Introduction

Virtually every optical system relies on control over light propagation by modifying the phase or intensity across a beam of light. Lenses, prisms, gratings and transformation optics devices1 such as optical cloaks2, 3, 4 all redirect light by engineering the spatial distribution of optical constants in two (2D) or three dimensions (3D). Recently, several groups5, 6, 7, 8, 9, 10, 11, 12, 13 demonstrated that the propagation direction of light can also be controlled by phase-gradient metasurfaces, where spatially varying resonators on an interface scatter with different phases. Although this approach offers a powerful solution for static wavefront control, it does not offer dynamic control over light propagation. Established solutions for dynamic wavefront control use either electro-optical spatial light modulators based on liquid crystals or digital micromirror devices14, 15, 16, or all-optical methods based on holographic operations in nonlinear photorefractive media14, 17, 18.

Here we report a fundamentally different approach to dynamic control of the wavefront of light with light. It is based on coherent light-matter interaction19, 20, 21, 22, 23 on a static metasurface and offers radical advantages. We exploit that manifestations of optical phenomena in traveling and standing waves are different: a thin film or metasurface may be placed at an electric field node or antinode of the standing wave formed by counter-propagating coherent light beams, resulting in suppression or enhancement of the electric light-matter interaction, respectively (Figure 1). This approach has been shown to allow modulation of intensity24, propagation direction25 and polarization26 of light with high contrast, terahertz (THz) bandwidth27, 28 and arbitrarily-low intensity levels down to single photons29. The only competitive all-optical solution for dynamic wavefront control is photorefraction30, 31, 32, which relies on microsecond- to second-scale nonlinear interaction of light (which may be incoherent) and matter in a volume medium, making it very different from the femtosecond-scale linear interaction of two coherent light beams and a planar medium reported here.

Figure 1
figure 1

Two-dimensional control of absorption of light with light. Images A and B projected by coherent light onto an absorbing metasurface result in deletion (shown) or enhancement of common image features, depending on the phase difference between the interacting beams.

In fact what we are presenting here is an elementary version of an ‘optical computer’ that has the main characteristics of a Turing machine. It takes data (signal image) from one optical input and processes it using instructions (rules) taken from the second optical input (control image). The metasurface acts as the ‘processor’ that performs elementary logical functions. Our optical data processor operates in an analog, rather than a discrete, ‘digital’ fashion. Moreover, our computer operates in the parallel regime handling the entire image at once.

Materials and methods

Metasurface nanofabrication

2D coherent control of absorption of light with light is demonstrated using a metamaterial nanostructure fabricated starting with a 50-nm-thick low-stress silicon nitride membrane, which was 500 × 500 μm2 in size and supported by a silicon frame. A 60-nm-thick gold layer was thermally evaporated onto the membrane and then the silicon nitride layer was removed by reactive ion etching (Plasmalab 80 Plus by Oxford Instruments) leaving a gold membrane. The free-standing gold film was structured by milling an array of split-ring apertures (Figure 2c) that has a 350 × 350 nm2 unit cell using a focused ion beam system (Helios 600 NanoLab by FEI). The overall size of the metamaterial array is 100 × 100 μm2.

Figure 2
figure 2

Two-dimensional all-optical control of light. (a) Schematic of the experimental setup where two-dimensional spatial modulation across coherent beams A and B is provided by masks and temporal modulation is provided by a phase modulator. A CCD camera monitors the system output. (b) Reflection, transmission and absorption spectra of the free-standing gold metasurface (MS) for illumination of its front (solid) and back (dashed). (c) Scanning electron microscopy image of a fragment of the MS. (d) Intensity mask designs imaged onto the MS to demonstrate coherent logical operations.

Experimental characterization

Coherent control of metasurface excitation with spatial resolution is achieved by projecting images onto the front and back of the free-standing gold metasurface using coherent light. The experimental setup is shown in Figure 2 and we provide relevant additional information here. Incident light was linearly polarized with the electric field parallel to the symmetry axis of the split-ring pattern throughout all experiments. The metasurface’s transmission, reflection and absorption characteristics shown in Figure 2b were measured using a microspectrophotometer (by CRAIC Technologies) equipped with an incoherent halogen light source. All other experiments were conducted with coherent light from a 785-nm continuous wave diode laser. The intensity masks that provide the spatial intensity modulation shown in Figure 3a and 3b were made by milling a 1.5 mm hole through an aluminum plate, whereas the intensity masks for the International Year of Light logo shown in Figure 4 were made by photolithography from a chromium layer supported by a glass substrate. The intensity masks were then imaged by a lens with 400 mm focal length and a 50 × objective onto either side of the metasurface with 100-fold demagnification. One side of the metasurface was imaged onto a charge-coupled device (CCD) camera (Evolve 512 by Photometrics) using a beam splitter and a 200-mm focal length lens.

Figure 3
figure 3

Two-dimensional coherent logical operations. Images of the metasurface illuminated by (a) beam A only, (b) beam B only and (ce) both beams A and B. Different relative phases of beams A and B correspond to different logical operations: (c) A AND B, (d) A XOR B and (e) A OR B. Graphs show the intensity cross-section along the corresponding dashed blue line. Intensity levels are shown on the same grayscale for all images and on the same vertical scale for all graphs.

Figure 4
figure 4

Coherent image processing. Images of the metasurface illuminated by (a) the International Year of Light logo (beam A) and (b) its central sun (beam B). Coherent (c) selection and (d) deletion of the sun within the logo for different relative phases of beams A and B.

Results and discussion

We demonstrate all-optical wavefront control by projecting images onto opposite sides of the free-standing gold metasurface using coherent light. By modulating the relative phase of the two beams, we control the absorption of light, and hence the wavefront, with high spatial resolution. This is illustrated by performing 2D all-optical Boolean logical operations as well as image processing, see Figure 1.

Destructive interference of coherent counter-propagating electromagnetic waves of equal intensity will cancel the electric field interacting with a metasurface placed at a node of the standing wave. In contrast, constructive interference doubles the electric field interacting with a metasurface placed at an antinode in comparison to illumination with a single beam. Although absorption in metasurfaces illuminated by a single wave is limited to 50%, the interaction of two coherent waves allows absorption to be controlled continuously from 0 to 100% by changing the position of the metasurface relative to the standing wave24.

Following Fang et al33, such a linear metasurface with two counter-propagating incident beams EA(x, y) and EB(x, y) and two output beams EC(x, y) and ED(x, y) of the same linear polarization (i.e., the same polarization eigenstate of the metasurface) may be described by:

As metasurfaces scatter fields equally in the forward and backward directions, the structure is described by a single wavelength-dependent complex amplitude scattering parameter s=s(λ) for the illuminating polarization eigenstate. Equation (1) describes each output beam (say EC) as the linear superposition of transmission and reflection of the beams illuminating the opposite (EA) and same (EB) side of the metasurface, respectively. Here, reflection of a single incident wave (say EA) corresponds to the scattered field (sEA), and transmission corresponds to the superposition of scattered and incident fields ((s+1) EA).

The linearity of this system implies that equal scaling of all input intensities will result in scaling of all output intensities by the same factor. However, linearity does not imply a linear relationship between the output intensities and phase or intensity changes of only one of the input beams. Such changes are, in general, nonlinear and it has been shown theoretically that this enables the effectively nonlinear functions of all-optical transistors, summators and invertors33.

Coherent perfect absorption and perfect transparency, as described above, will be achieved for incident waves of equal intensity, EA=e and EB=1, illuminating a metasurface that absorbs 50% of a single illuminating beam described by s=-0.5, where θ=θ(t) is the time-dependent phase difference of the incident beams at the metasurface. Both output beams vanish for θ=0 (perfect absorption, EC=ED=0), whereas θ=π corresponds to perfect transparency (EC=EA and ED=EB) and intermediate phases θ=±π/3 lead to |EC|=|ED|=0.5. The latter is the same as for illumination of the metasurface by only one beam, i.e., each output beam has 25% of the intensity (defined as I=|E|2) of one illuminating beam.

Consequently, the output intensities depend on whether beams A and B are switched on or off, for a given phase θ, which enables all-optical Boolean logical operations. For θ=π, this corresponds to the truth table of the logical operation A AND B, with an intensity threshold between 0.25 and 1:

Similarly, θ=0 corresponds to the truth table of A XOR B (or NOT A if IB=1 is fixed) with an intensity threshold between 0 and 0.25:

And finally, θ=±π/3 corresponds to A OR B with an intensity threshold between 0 and 0.25:

Ideal performance requires a thin film or metasurface of deeply sub-wavelength thickness that absorbs 50% of a single beam illuminating the structure. Exploiting that the nanostructure of metasurfaces can be carefully engineered to achieve suitable optical properties and, guided by numerical modeling, we fabricated a 60-nm-thick free-standing gold metasurface with a split ring aperture unit cell and an absorption resonance near our experimental wavelength of 785 nm, see Materials and Methods section as well as Figure 2. The free-standing gold nanostructure has almost identical optical properties for illumination of its front and back, where a small asymmetry results from different surface roughness on opposite sides, and it absorbs about 33% of a single illuminating beam (Figure 2b). To coherently control the metasurface excitation, we split the output of a 785-nm continuous-wave laser along two paths of matched lengths, A and B, that illuminate opposite sides of the nanostructure. Intensity masks are placed in both paths and imaged onto the metasurface to control the spatial intensity distribution on the metasurface (Figure 2a). In order to introduce temporal control, a liquid–crystal phase modulator is used to control the relative phase of the illuminating beams, which shifts the standing wave relative to the metasurface. This way, any part of the structure can be illuminated by a single beam (A or B) or by both coherent waves, where the phase modulator allows tuning from constructive to destructive interference at the metasurface position; that is from enhanced to negligible light-matter interaction. We detect the resulting coherent effects by imaging the metasurface onto a CCD camera, detecting output beam C that is formed by transmission of beam A and reflection of beam B. We note that less-than-ideal absorption in our sample reduces the achievable level of coherent absorption and results in a difference between intensity levels in the output beams26. The small difference between experimental transmission and reflection levels is compensated for by adjusting the input intensities.

Figure 3 illustrates 2D control of light with light on the free-standing gold metasurface for the simplest possible case of two partially overlapping illuminating beams, A and B (panels (a) and (b)), realized by imaging the intensity profiles imposed by two metallic masks with slightly misaligned circular holes onto opposite sides of the metasurface. In areas of overlapping illuminating beams, the detected intensity depends dramatically on the relative phase difference between the incident waves. Noting that the intensities of incoherent beams would simply add up, we find that illumination with a second coherent beam leads to a range of output intensities from fourfold increase to almost complete suppression. The coherently enhanced output intensity (panel (c)) corresponds to a reduced light-matter interaction and thus reduced absorption near the standing wave’s electric node. On the other hand, changing the phase of one illuminating beam by π translates the standing wave, placing the metasurface near an electric antinode, where almost complete suppression of the detected output intensity occurs as a result of enhanced light-matter interaction and therefore enhanced absorption (panel (d)). Intermediate phases lead to the full range of intermediate intensities (panel (e)).

As discussed above, the coherently controlled interaction of the partially overlapping beams A and B on the metasurface corresponds to logical operations A AND B, A XOR B and A OR B, and the detected images strongly resemble the associated Venn diagrams of set theory, see Figure 3. Thus, coherent control provides an all-optical way of performing logical operations, which may be applied to arbitrary combinations of images. This is illustrated by Figure 4 for the logo of the International Year of Light (beam A, panel (a)) and the sun that forms its center (beam B, panel (b)). In this case, reduced absorption near an electric field node of the standing wave results in fourfold enhancement or selection (recognition) of the logo’s central sun, which both images have in common (panel (c)). On the other hand, a π phase shift of one illuminating beam shifts the standing wave, placing the metasurface near an electric antinode, where the sun is strongly absorbed and therefore deleted from the logo, leaving just the flags that are present in only one image (panel (d)). In this way, 2D coherent control of light with light provides an all-optical method for image processing.

Conclusions

In the demonstrations described above, we exploited the interaction of coherent waves with spatially modulated wavefronts to control the light-matter interaction on a lossy metasurface in order to perform elementary all-optical computations. Constructive interference at the metasurface led to enhanced light-matter interaction and therefore absorption, whereas destructive interference suppressed the interaction of light with absorbing matter. 2D coherent control provides a practical solution for dynamic control over the expression of many properties of metasurfaces and thin films of sub-wavelength thickness, e.g., to control intensity, propagation direction25 and polarization26 of electromagnetic waves throughout the electromagnetic spectrum.

The spatial resolution of 2D coherent control of light with light is limited by the size of the meta-molecules, and the diffraction limit of the imaging system used to illuminate the metasurface. The meta-molecules of non-diffracting metasurfaces are of sub-wavelength size and the diffraction limit is about one wavelength, therefore the achievable spatial resolution corresponds approximately to the wavelength of the illuminating wave. The temporal resolution is determined by the bandwidth of the metasurface’s absorption resonance, leading to femtosecond-scale response times suitable for THz modulation frequencies in case of plasmonic resonances that have a typical quality factor on the order of 10, see Fang et al27. Recently, 100 THz coherent optical switching has been demonstrated with plane waves28. Non-resonant and highly absorbing metallic thin films have been reported as a broadband alternative to metasurfaces at microwave frequencies34 and predicted to yield even higher bandwidth at optical frequencies35. The all-optical nature of the technique means it needs only a static metasurface (or thin film) and makes it applicable to many metasurface designs, including spatially varying ones5, 6, 7, 8, 9, 10, 11, 12, 13, 25. Furthermore, coherent control offers high contrast and it is compatible with arbitrarily low intensities down to the single-photon quantum regime29.

With femtosecond-scale response times, wavelength-scale spatial resolution, large optical contrast and quantum-level energy requirements, 2D control of light with light has potential applications ranging from tuneable, reconfigurable and adaptive optical devices, as well as coherent image and video processing to massively parallel modulation and processing of optical data and all-optical computing33. Our approach also allows selective amplification or deletion of modes from multimode signals and thus promises solutions for mode selection in spatial-mode multiplexing for higher bandwidth optical telecommunications.