Introduction

Signal processing is vital for several science and engineering disciplines. The increasing demand for high-speed and high-efficiency signal processing has inspired scientists to develop faster, integrated and efficient devices that can process signals and images1,2,3. Digital signal processing based on integrated electric circuits can perform complex data processing, but it needs an analog-to-digital converter to discretize the input analog signal into a series of bits. After being processed according to the desired operation, the discrete signals are converted back into analog signals through a digital-to-analog converter. This method suffers from low-speed, large memory requirements and high-power consumption, originating from complicated conversion process4 and hardware bottleneck5,6.

Optical analog processing, with the ability to perform massive parallel processing with high-speed and low-power consumption, has gained significant attention7,8,9. Optical analog processing has been demonstrated both in the spatial and temporal domain10,11,12,13,14 with, e.g., conventional 4 F systems, interferometers and Soleil Babinet compensators. The first-order temporal differentiator was realized by introducing different time delays for two mutually orthogonally polarized components through a Soleil Babinet compensator14. However, the resultant optical systems are bulky, and hence are against high-density optical integration. Conventional optical elements do not offer the opportunity to spatially and continuously vary transmission amplitude and phase at the sub-wavelength scale. Metasurfaces, planar arrays composed of subwavelength artificial meta-atoms, provide opportunities to manipulate light by locally tailoring the amplitude, phase and polarization with much more flexibility. A number of compact optical devices have been developed using metasurfaces, such as lenses15,16,17,18, holography systems19,20,21,22, polarimeters23,24, polarization elements25,26, retroreflectors27,28,29 and optical imaging encoding30,31. Recently, the research interest has shifted towards practical applications of metasurfaces, such as high-quality imaging32,33,34,35 and optical analog computation5,8,9,36,37,38,39,40,41,42,43,44,45,46. A wide range of optical analog computations using metasurfaces, such as spatial imaging differentiation5,8,37,38,39,43,44,45, integration37,41,47, convolution37,42 and equation solving36,40, have been successfully demonstrated. Spatial differentiation has also been realized using photonic crystals48,49, spin Hall effect50,51, and surface plasmon-based devices52. Realizing spatial differentiation requires a transfer function featuring a zero at normal incidence, in order to suppress the average of the input image and enhance its edges. Generally, most strategies rely on resonant mechanisms to generate this transmission dip. As a result, they often work only in a narrow band of frequencies. Recent works have proposed ways to overcome this challenge based on dispersion engineering46. Bragg gratings and microring resonators can also provide a compact method to enable temporal differentiation53,54. The working bandwidth of microring resonators however is intrinsically low, smaller than those based on Bragg gratings and interferometers53,54. The limited operation bandwidth may restrict the capability of exploiting wavelength division multiplexing to enhance data processing speed, which is important for large-scale and high-speed optical analog computation55,56. Spatial and temporal differentiation have been exploited for applications in edge detection, optical processing of microwave signals, analog-digital conversion, pulse shaping, and dark-soliton detection5,8,12,13,38,39,43,44,50,51,52,53.

Fourier optics provides a powerful approach to optical processing, by filtering the frequency components of the angular spectrum of the input image. In a conventional 4 F system, the image to be processed is decomposed into its spatial Fourier components by a first optical lens. Various components to filter the spatial frequencies, made by bulky diffractive optical elements, including pinholes, opaque dots, masks and phase plate shifters57, can then be exploited for angular spectrum filtering of the incoming waves, leading to imaging applications, such as dark-field58,59, schlieren60,61, and phase-contrast imaging62. However, imparting mathematical operations on the angular spectrum has not been explored to the best of our knowledge. In this paper, we demonstrate metasurfaces that perform mathematical operations on the angular spectrum of an image - “angular spectrum analog meta-processors”—that can be used to perform optical analog processing of the Fourier spectrum—such as differentiation, integration, convolution, and other linear operations as light propagates through them. Depending on the optical operations of interest for angular spectrum processing, we retrieve the required amplitude and phase modulation on the incoming light. We demonstrate differentiation of the angular spectrum based on dielectric metasurfaces across the whole visible frequencies, and we apply it to demonstrate novel applications in the angular spectrum domain, i.e., enhancement of desired angular spectrum features. It should be noted that the angular spectrum differentiation could be also realized by using a lens to extract the angular spectrum, followed by a spatial differentiator to complete angular spectrum differentiation. However, this approach would result in a bulky device. In contrast, here we propose a compact approach to realize angular spectrum differentiation by using a single metasurface. The application potential of enhancing desired portions of the angular spectrum of an image has not been previously exploited in the field of optical analog processing.

Results

Design principles and simulation results

The angular spectrum Ap(kx, ky) of an incoming wavefront can be retrieved by performing the Fourier transform of the in-plane electric field distribution Ep(x, y)

$${A}_{p}({k}_{x},{k}_{y})=F[{E}_{p}(x,y)]={\iint }_{-\infty }^{+\infty }{E}_{p}(x,y)\exp (-{{{{{\rm{i}}}}}}{k}_{x}x-{{{{{\rm{i}}}}}}{k}_{y}y){{{{{\rm{dxdy}}}}}}$$
(1)

where i is the imaginary unit, F indicates the Fourier transform, p = x (y) labels the x- (y-) component, and kx, ky are 2D Fourier domain variables along x and y directions, respectively. Ap(kx, ky) and Ep(x, y) represent the complex amplitudes of the electric field in the Fourier and spatial domain, respectively. After passing through an optical diffractive element, the angular spectrum is transformed to ĤAp(kx, ky), where Ĥ is the angular spectrum operation exerted by the optical diffractive element, modulating the amplitude and phase of Ap(kx, ky) of the incoming wavefront. If an arbitrary order differentiation Ĥ=\(\mathop{\sum }\nolimits_{j\,=\,1}^{l}[{C}_{j}\frac{{\partial }^{{m}_{j}+{n}_{j}}}{{(\partial {k}_{x})}^{{m}_{j}}{(\partial {k}_{y})}^{{n}_{j}}}]\) is exerted on the Fourier transform Ap(kx, ky), we have

$$ \mathop{\sum }\limits_{j\,=\,1}^{l}\left[{C}_{j}\frac{{\partial }^{{m}_{j}+{n}_{j}}}{{({\partial }{{k}_{x}})}^{{m}_{j}}{({\partial k}_{y})}^{{n}_{j}}}\right]{A}_{p}({k}_{x},{k}_{y}) \\= {\iint }_{-\infty }^{+\infty }\mathop{\sum }\limits_{j\,=\,1}^{l}[{C}_{j}{(-{{{{{\rm{i}}}}}}x)}^{{m}_{j}}{(-{{{{{\rm{i}}}}}}y)}^{{n}_{j}}]{E}_{p}(x,\, y)\exp (-{{{\rm{i}}}}{k}_{x}x-{{{\rm{i}}}}{k}_{y}y){{{{\rm{d}}}}x{{{\rm{d}}}}y}$$
(2)

where j indicates the differentiation type, and l denotes the maximum number of differentiation type (l is a positive integer, and j [1, l ]). mj and nj are natural numbers labeling the order of the partial derivative with respect to kx and ky, respectively, and Cj is a complex coefficient (associated with the j-th differentiation type), affecting the efficiency and phase delay for the output angular spectrum. Such differential operation in the Fourier domain can be realized by a real-space transfer function t(x, y) = \(\mathop{\sum }\nolimits_{j=1}^{l}\left[{C}_{j}{\left(-{{\mbox{i}}}x\right)}^{{m}_{j}}{\left(-{{\mbox{i}}}y\right)}^{{n}_{j}}\right]\), which is related to Ĥ via Eq. (2). In other words, we assume that the input image, described by the spatial domain electric field Ep(x, y), is filtered by a spatially varying mask with transmission amplitude and phase. We first discuss the general properties of the required mask, and then we show how this real-space transfer function can be achieved with a metasurface. For example, if l = 1, there is only one term in Eq. (2), associated with (mj, nj) = (m1, n1) and C1. If (m1, n1) is chosen as (1, 1), then Ĥ is equal to \({C}_{1}\frac{{\partial }^{2}}{\partial {k}_{x}\partial {k}_{y}}\), associated with t(x, y) = −C1xy. The input angular spectrum Ĥ will contain second-order partial derivatives with respect to kx and ky, respectively. If (m1, n1) = (1, 0), Ĥ=\({C}_{1}\frac{{\partial }}{\partial {k}_{x}}\) with t(x, y) = −iC1x, the input angular spectrum will merely consist of the first-order partial derivative with respect to kx. If l = 2, there are two types of differentiation, associated with (mj, nj) = (m1, n1) and (m2, n2), and C1, C2. By choosing (m1, n1) = (1, 0), (m2, n2) = (0, 1) and C1 = C2, Ĥ=\({C}_{1}\frac{\partial }{\partial {k}_{x}}+{C}_{1}\frac{\partial }{\partial {k}_{y}}\) with t(x, y) = −iC1(x + y), a sum over the two first-order partial derivatives with respect to kx and ky, will be applied on the input angular spectrum. The values of l, Cj and (mj, nj) used for the three types of differentiation can be found in Supplementary Table S1 of Supplementary Note 1. The real-space transfer function t(x, y) provided by the optical diffractive elements should be proportional to xy, x and x + y, respectively, to realize these three types of differentiation. It should be emphasized that, in principle, we can also realize linear combinations of higher-order partial derivatives by flexibly choosing l, Cj, and (mj, nj). For example, we can achieve Ĥ=\({C}_{1}\frac{{\partial }^{3}}{\partial {k}_{x}^{3}}+{C}_{1}\frac{{\partial }^{3}}{\partial {k}_{y}^{3}}\) with t(x, y) = iC1(x3 + y3), associated with l = 2, (m1, n1) = (3, 0), (m2, n2) = (0, 3) and C1 = C2, and Ĥ=\({C}_{1}\frac{{\partial }^{3}}{\partial {k}_{x}^{3}}-{i}{C}_{1}\frac{{\partial }^{2}}{\partial {k}_{y}^{2}}+2{C}_{1}\frac{\partial }{\partial {k}_{x}}\) with t(x, y) = iC1(x3 + y2 − 2x), associated with l = 3, (m1, n1) = (3, 0), (m2, n2) = (0, 2), (m3, n3) = (1, 0) and C1 = iC2 = 0.5C3.

In the following, we demonstrate metasurfaces tailored to realize these operations. Figure 1a–c schematically show the analog meta-processors that perform the three types of differentiation in the angular spectrum domain. We denote the two opposing edges of the silicon nanopillar cross-section as Wu, Wv (Wu ≥ Wv), namely the long and short sides along u and v directions, respectively. The orientation angle θ represents the angle between the x axis of laboratory coordinate and u axis (Fig. 1d). The local transmission coefficient for y-polarized transmitted light under x-polarized incidence is63 (see Supplementary Note 2 for the derivation)

$$\sigma (x,y)=\frac{({t}_{u}-{t}_{v})}{2}\sin 2\theta (x,y)$$
(3)

where tu and tv are the complex transmission coefficients along u and v directions, respectively. Thus, to implement any of the operations discussed above, σ(x, y) needs to match the corresponding real-space transfer function t(x, y). The cross sections of the basic building blocks of each nanopillar can be tailored to control tu and tv in Eq. (3), regardless of the operating wavelength. In general, tu and tv are wavelength-dependent, due to the material dispersion and resonant effects within the metasurface unit cells. In general, tu and tv could be chosen to be also position-dependent, in order to increase the flexibility of σ(x, y). Here, to keep the design simple, we have chosen to employ silicon nanopillars with a fixed cross section, so that tu and tv are wavelength-dependent only. Remarkably, we show that modulating only θ is sufficient to achieve σ(x, y) = t(x, y) for all angular spectrum differential operations considered. Since the required t(x, y) is nonzero at almost every spatial position, the cross section of the silicon nanopillar is chosen to be rectangular, i.e., Wu > Wv. For a meta-differentiator composed of a square metasurface with a side length a (x [−a/2, a/2], y [−a/2, a/2]), we show how to define θ to achieve the aforementioned three types of differentiation. For the first type t(x, y) = −C1xy, θ should satisfy \(\sin 2\theta \,=\,-\frac{2{C}_{1}}{{t}_{u}-{t}_{v}}{xy}\) with x [−a/2, a/2] and y [−a/2, a/2]. \(\left|{C}_{1}\right|\le \left|-\frac{2\left({t}_{u}-{t}_{v}\right)}{{a}^{2}}\right|\) holds with (x, y) = ( ± a/2, ±a/2) since |sin2θ | ≤ 1. It can be inferred that C1 should be chosen as \(\pm \frac{2\left({t}_{u}-{t}_{v}\right)}{{a}^{2}}\) for the purpose of maximizing the efficiency of the output angular spectrum, corresponding to θ = ±arcsin(4xy/a2) / 2. Using a similar method as for the first meta-differentiator, we can also retrieve θ = ±arcsin(2x / a) / 2 and θ = ±arcsin[(x + y) / a] / 2 for the other two types of meta-differentiators, associated with t(x, y) = −iC1x and t(x, y) = −iC1(x + y), respectively. The detailed derivation process can be found in Supplementary Note 2. It should be noted that, although the three types of differentiator can work over a wide spectral band, the amplitude and phase shift of the transmissive angular spectrum are wavelength-dependent, as C1 is dependent on the light wavelength. It should also be noted that the actual meta-differentiator has a limited size, and thus it can only process a certain range of angular spectrum. Considering an input beam with a Gaussian profile, the waist radius w allowed has an upper limit, which depends on the size of the meta-differentiator. The detailed analysis regarding the image resolution in the Fourier domain can be found in Supplementary Note 3.

Fig. 1: Angular spectrum meta-differentiator.
figure 1

ac Angular spectrum analog meta-processors for optical analog differentiation processing in the angular spectrum domain, as light propagates through them. The corresponding angular spectrum operation, Ĥ, and complex real-space transfer function, t(x, y), provided by the silicon metasurfaces are, respectively, \(\propto \frac{{\partial }^{2}}{\partial {k}_{x}\partial {k}_{y}}\) and xy (a), \(\propto \frac{\partial }{\partial {k}_{x}}\) and x (b), and \(\propto \frac{\partial }{\partial {k}_{x}}+\frac{\partial }{\partial {k}_{y}}\) and x + y (c). It is assumed that C1 is equal to C2 in (c). d Schematic of the rotated silicon nanopillar on a silica substrate with Wu = 200 nm, Wv = 100 nm, h = 220 nm, and P = 280 nm. e, f Amplitude (e) and phase (f) of σ versus orientation angle θ. The refractive index and extinction coefficient of silicon were measured by an ellipsometer (see Supplementary Fig. S1 of Supplementary Note 2), and the refractive index of silica is extracted from Ref. 66. gl Schematics of the top view presenting the distribution of the orientation angles (gi) and distributions of the real parts of the required σ(x, y)/|σ(x, y)|max of the three meta-differentiators (jl) with \(\frac{{\partial }^{2}}{\partial {k}_{x}\partial {k}_{y}}\) (g, j), \(\frac{\partial }{\partial {k}_{x}}\) (h, k) and \(\frac{\partial }{\partial {k}_{x}}+\frac{\partial }{\partial {k}_{y}}\) (i, l), respectively.

The amplitude of the transmissive angular spectrum is proportional to the amplitude difference between tu and tv. Here, the cross-sectional geometry of the silicon nanopillar is optimized to obtain a large amplitude difference between tu and tv at 450, 532 and 685.5 nm. The silicon layer forming the metasurfaces is deposited by magnetron sputtering in the following experiment, and its refractive index and extinction coefficient is measured by an ellipsometer. The optimization of cross-sectional geometry can be found in Supplementary Fig. S1 of Supplementary Note 2. The simulated amplitude and phase of σ(x, y) versus θ at four wavelengths are shown in Fig. 1e, f, based on finite difference time domain (FDTD) with the commercial software Lumerical FDTD Solutions. It can be seen that the amplitude of σ(x, y) can be changed from zero to a maximum value as θ is varied from −0.5 π to 0.5 π, and the phase suffers from a π shift as θ changes from a negative value to a positive value. We are able to achieve the aforementioned three types of differentiation by arranging θ so as to fulfill the required distributions of σ(x, y) in a square metasurface. By setting θ equal to arcsin(4xy / a2) / 2, arcsin(2x / a) / 2, and arcsin[(x + y) / a] / 2, respectively, the metasurface distributions and the real parts of σ(x, y)/|σ(x, y)|max required for the three meta-differentiators are shown in Fig. 1g-i, and Fig. 1j-l, respectively.

To verify the angular spectrum differentiation, we use an x-polarized Gaussian beam as the input source to illuminate the meta-differentiators (Fig. 2a), where the associated angular spectrum is shown in Fig. 2b. The corresponding angular spectrum of the filtered beam, given by \({| {\hat{H}} {A}_{x}|}^{2}/{| {\hat{H}} {A}_{x}|}_{\max }^{2}\), is theoretically calculated for three types of angular spectrum differentiation (Fig. 2c). Three meta-differentiators with 16.8 μm × 16.8 μm in size (e.g., 60 × 60 nanopillars) are used to validate the differentiation functionality. We can first obtain the y-component field intensity distributions after the Gaussian beam passes through the meta-differentiators by FDTD simulations, and then extract their corresponding angular spectrum distributions \({|{A}_{y}|}^{2}/{|{A}_{y}|}_{\max }^{2}\) by performing the Fourier transform (Fig. 2d). It should be emphasized that the spot waist radius (w = 3.5 μm) is lower than the upper limit of 6 μm. The simulated results are perfectly consistent with the theoretical results, which suggests the image resolution defined in Supplementary Note 3 is rather conservative. \({\hat{H}}={C}_{1}\frac{{\partial }^{2}}{\partial {k}_{x}\partial {k}_{y}}\) results in zero intensity along ky and kx axes, and the maximum intensity is located on the two lines kx + ky and kxky (Fig. 2c, d).\(\, {\hat{H}}={C}_{1}\frac{\partial }{\partial {k}_{x}}\) results in zero intensity along ky axis and the maximum intensity is located on kx axis only. \({\hat{H}}={C}_{1}(\frac{\partial }{\partial {k}_{x}}+\frac{\partial }{\partial {k}_{y}})=2{C}_{1}\frac{\partial }{\partial ({k}_{x}+{k}_{y})}\) leads to zero intensity along the line kx − ky and the maximum intensity appears on the line kx + ky. The theoretical and simulated results at discrete wavelengths within 450 nm and 1000 nm show similar field intensity distributions at 685.5 nm, suggesting the proposed meta-differentiators works with an extremely broad bandwidth (see Supplementary Note 4). Although the design method can be extended to arbitrary order angular spectrum meta-differentiators in principle, it poses bandwidth limitations for practically realizing higher order meta-differentiators. The field intensity offered by the meta-differentiators, especially for high order differentiation, is not always consistent with that predicted by theory, e. g., the output field is not symmetric in the long wavelength range, and the field intensity by the meta-differentiators is not so close to zero in the short wavelength range. The detailed study on bandwidth limitation for higher order angular spectrum meta-differentiators can be found in Supplementary Note 5.

Fig. 2: Angular spectrum intensity distributions for three types of differentiations.
figure 2

a, b Field intensity \({\left|{E}_{x}\right|}^{2}/{\left|{E}_{x}\right|}_{\max }^{2}\) (a) and angular spectrum intensity \({\left|{A}_{x}\right|}^{2}/{\left|{A}_{x}\right|}_{\max }^{2}\) (b) of the input x-polarized Gaussian beam with a waist radius of w = 3.5 μm at 685.5 nm. c, d Output angular spectrum intensity distributions for the three types of differentiations: theory (c) and simulation (d). k0 is the wavenumber in the air.

Experimental demonstration

We have fabricated three meta-differentiators of 300 μm × 300 μm in size (i.e., 1072 × 1072 nanopillars) on a 500 μm-thick silica substrate to verify the three types of angular spectrum differentiation. Figure 3a–c show scanning electron microscope (SEM) images taken at the lower right corner of each meta-differentiator. The experimental setup (Fig. 3d) is used to check if t(x, y) exerted by the meta-differentiators is consistent with the theoretical values predicted by Eq. (2). The polarization directions of two polarizers are mutually orthogonal to extract the cross-polarized transmission field. The distance between objective 1 and the meta-differentiator is adjusted to ensure that the light beam is slightly smaller than the meta-differentiator when reaching the left side of it. Under the illumination of red, green, and blue Gaussian light, the cross-polarized transmission field is recorded by the CCD camera (Fig. 3e–g). The output field intensity distributions are consistent with the theoretical results, as shown in Supplementary Note 6. The field intensity along lines x or y, y and x − y, is zero, and is maximum along lines x + y or x − y, x and x + y, corresponding to the three meta-differentiators with \(\frac{{\partial }^{2}}{\partial {k}_{x}\partial {k}_{y}}\), \(\frac{\partial }{\partial {k}_{x}}\), and \(\frac{\partial }{\partial {k}_{x}}+\frac{\partial }{\partial {k}_{y}}\), respectively.

Fig. 3: Measured transmission field for three types of differentiations.
figure 3

ac SEM images of partial samples for angular spectrum differentiation with \(\frac{{\partial }^{2}}{\partial {k}_{x}\partial {k}_{y}}\) (a) \(\frac{\partial }{\partial {k}_{x}}\) (b) and \(\frac{\partial }{\partial {k}_{x}}+\frac{\partial }{\partial {k}_{y}}\) (c). The scale bars are 1 μm. d Experimental setup for measurement. The meta-differentiator and the CCD camera are on the object and the image planes of objective 2, respectively. eg Transmission field intensity distributions recorded by CCD with red light (685.5 nm) (e), green light (532 nm) (f) and blue light (450 nm) (g). The scale bars are 100 μm.

The meta-differentiator can implement differentiation operation on the angular spectrum of nontrivial objects. The test object is placed between the light source and the first polarizer (Fig. 4a). The distance between the object and objective 1 is first adjusted in order to image the object onto the meta-differentiator. The imaging area is slightly smaller than the meta-differentiator. Then objective 2 is moved to ensure the back focal plane of objective 1 is imaged onto the CCD camera via objective 2. In this scenario, the image recorded by the CCD camera corresponds to the differentiation of the object angular spectrum. The detailed explanation on how to use the experimental setup to retrieve the differentiation of the object angular spectrum can be found in Supplementary Note 7.

Fig. 4: Measured angular spectrum differentiations of three parallel rectangular holes.
figure 4

a Experimental setup for performing angular spectrum operation of an object. The object and the meta-differentiator are on the object and the image planes of objective 1, respectively. The back focal plane of objective 1 is also the object plane of objective 2 and the CCD camera is on the image plane of the objective 2. b Theoretical (the first panel) and experimental (the second to fourth panels) intensity distributions of three parallel rectangular holes drilled in a stainless steel plate (1 mm thick). The geometrical parameters of the holes are set at Wx = 200 μm and Wy = 1 mm. c, d Angular spectrum intensity distributions (c) and normalized intensity profiles along lines A-B in (c) (d). ej Angular spectrum intensity distributions with \(\frac{{\partial }^{2}}{\partial {k}_{x}\partial {k}_{y}}\) (e), \(\frac{\partial }{\partial {k}_{x}}\) (g), and \(\frac{\partial }{\partial {k}_{x}}+\frac{\partial }{\partial {k}_{y}}\) (i), and their normalized intensity profiles along lines A-B (f, h, j).

In our experiment, the object consists of a stainless steel plate drilled by three parallel rectangular holes and a single circular hole, which has a high transmission contrast between opaque and transparent regions. For the three parallel rectangular holes, the transmitted electric field can be written as

$${E}_{x} (x,y)=\left\{\begin{array}{ll} {1} & ({|x|},| {x} \pm 2{W}_{x} | \le 0.5{W}_{x},| \, y| \le 0.5{W}_{y}) \\ 0 & {{{\rm{otherwise}}}} \hfill \end{array}\right.$$
(4)

The associated angular spectrum and differentiation with the three operations \(\frac{{\partial }^{2}}{\partial {k}_{x}\partial {k}_{y}}\), \(\frac{\partial }{\partial {k}_{x}}\) and \(\frac{\partial }{\partial {k}_{x}}+\frac{\partial }{\partial {k}_{y}}\) can be found in Supplementary Note 8. The transmitted electric field after the object is plotted in the first panel of Fig. 4b. The associated normalized angular spectrum |Ax(kx, ky)|2 is plotted in the first panel of Fig. 4c, with the intensity profile being shown in the first panel of Fig. 4d. The theoretical angular spectrum differentiations for \(\frac{{\partial }^{2}}{\partial {k}_{x}\partial {k}_{y}}\), \(\frac{\partial }{\partial {k}_{x}}\) and \(\frac{\partial }{\partial {k}_{x}}+\frac{\partial }{\partial {k}_{y}}\) are shown in the first panel of Fig. 4e, g, i, respectively, where the associated intensity profiles along lines A-B are plotted in the first panel of Fig. 4f, h, j, respectively. The angular spectrum at 685.5, 532 and 450 nm are experimentally extracted and recorded by the CCD camera, as shown in the second to the fourth panels in Fig. 4b-j. The experiment is well consistent with the above theoretical results. It can be seen that, under the angular spectrum differentiation of \(\frac{{\partial }^{2}}{\partial {k}_{x}\partial {k}_{y}}\), a single row containing three main spots (Fig. 4c) is transformed into two rows, in which each row contains six main spots (Fig. 4e, f). Instead, when the operation \(\frac{\partial }{\partial {k}_{x}}\) is considered, the three main spots in one row are only transformed into one row of six main spots (Fig. 4g, h). The angular spectrum experiences a first-order differentiation along kx + ky direction with \(\frac{\partial }{\partial {k}_{x}}+\frac{\partial }{\partial {k}_{y}}\), as \(\frac{\partial }{\partial {k}_{x}}+\frac{\partial }{\partial {k}_{y}}\) is equivalent to \(\frac{2\partial }{\partial ({k}_{x}+{k}_{y})}\). As a result, under this operation each spot in one row is transformed into two spots along kx + ky direction (Fig. 4i, j). It is worth discussing the antisymmetric profile for the angular spectrum intensity distributions at 450 nm. The polarizer has low extinction ratio of optical powers of perpendicular polarizations at shorter wavelengths, as opposed to longer wavelengths. The y-polarized light beam after polarizer 1 remains and reaches the CCD, which has an intensity comparable to the light beam contributing to angular spectrum differentiation. As the object is a single circular hole, the angular spectrum differentiation operation results are presented in Supplementary Note 9.

Derivative spectroscopy is a technique used to isolate weak spectral features from other unwanted strong features, and it can also be used to strengthen the contrast of a weak band to a strong overlapped signal in the spectral domain. It is widely used for trace analysis, purity test, and stability test64,65. While existing techniques operate in real space, our meta-differentiators can be used for isolating features in the angular spectrum domain of an object. If the object angular spectrum, At(kx, ky), is much weaker than the additional background angular spectrum, Ab(kx, ky), it is not possible to directly distinguish At(kx, ky) and Ab(kx, ky), i.e., one cannot detect the object angular spectrum for trace analysis. However, the object angular spectrum can be detected if the differentiation operation is applied on the object and background angular spectra, and the former differentiation value is much larger than the latter one. The corresponding experimental setup is established as shown in Fig. 5a, where one beam of light illuminates the object (path 1), and then is mixed with another beam of light (path 2), which mimics a strong background. In this case, At(kx, ky) is associated with the angular spectrum of the three parallel rectangular holes, and Ab(kx, ky) corresponds to the wide angular spectrum generated by a Gaussian-like source. At(kx, ky) can be made much smaller than Ab(kx, ky) by tuning a neutral density filter. In this situation, the mixed angular spectrum without the meta-differentiator around kx = 0 is shown in Fig. 5b, d. It can be seen that the three spots are almost completely invisible (Fig. 5b, d). On the contrary, the six spots that define the angular spectrum decomposition of the target can be instead clearly observed around kx = 0 after the mixed angular spectrum is processed by the meta-differentiator with \(\frac{\partial }{\partial {k}_{x}}\) (Fig. 5c, e). This is because At(kx, ky) features a maximum around kx = 0, and the associated differentiation with respect to kx is close to zero, smaller than the differentiation of Ab(kx, ky).

Fig. 5: Angular spectrum isolation experiment.
figure 5

a Experimental setup for performing angular spectrum isolation at 685.5 nm. be Angular spectrum intensity distributions of the mixed light without (b) and with (c) the meta-differentiator with \(\frac{\partial }{\partial {k}_{x}}\). Their normalized angular spectrum intensity profiles along the lines A-B are shown in (d) and (e), respectively.

It should be emphasized that our angular spectrum analog meta-processor is also applicable to higher order differentiation, as has been shown in Supplementary Note 5. Moreover, while here we have focused on differential operations, the meta-processor may be extended to develop many other optical analog processing functionalities in the angular spectrum domain, such as differentiation, integration, convolution and equation solving. Spatial light modulators are also capable of providing spatially varying amplitude and phase distributions, and they are promising for achieving analogous angular spectrum operation functionalities. However, a pixel pitch of spatial light modulators is at least several wavelengths in size, and the resultant angular spectrum processors based on spatial light modulators may generate additional side lobes arising from high order diffraction. In addition to angular spectrum differentiation operation, the meta-differentiators may be explored to realize spatial differentiation operation, when combined with a 4 F system. Based on this functionality, we present high-contrast edge enhancement of resolution test charts and frog egg cells across the whole visible spectrum in Supplementary Note 10. By using nanopillars of varied cross-sections to provide full 0–2 π phase coverage, it is possible to realize other types of angular spectrum differentiation operation, such as \(\frac{\partial }{\partial {k}_{x}}+{{\mbox{i}}}\frac{\partial }{\partial {k}_{y}}\).

It should be emphasized that, while the mathematical operations demonstrated here operate on the complex amplitude of the angular spectrum of the electric field, the CCD camera used for our experiment can only record the field intensity information. Consequently, the phase information cannot be directly retrieved in our experiment. It is also worth discussing how the fabrication error affects the device performance. The silicon film has a surface roughness of 10 nm, and the fabrication uncertainty on the cross section of the silicon nanopillar can be controlled within 10 nm. Our analysis and simulation indicate that the fabrication error hardly influences the spatial resolution and the intensity of the output image. Finally, when assessing the performance of a passive computational metasurface, it is crucial to quantify the throughput efficiency, that is, how the intensity of the output image compares to the intensity of the input image. Different metrics can be used to quantify the efficiency. The “peak efficiency” ηpeak = max[Iout(x, y)] / max[Iin(x, y)], is defined as the ratio of the peak intensities in the output and input images, where Iout(x, y) [Iin(x, y)] is the output (input) intensity map45,46. Another metric can be defined by considering the integrated intensities, i.e. \({\eta }_{{{{{\mathrm{int}}}}}}={\iint }_{-\infty }^{+\infty }{I}_{{out}}\left(x,y\right){{{\mbox{d}}}}{{{x}}}{{{\mbox{d}}}}{{{y}}}/{\iint }_{-\infty }^{+\infty }{I}_{{in}}\left(x,y\right){\mbox{d}}x{\mbox{d}}y\). We calculated both metrics for the measurements in Fig. 4. For both metrics, we obtained values in the order of 10−5 ~ 10−3, depending on the wavelength and the specific operation considered. The relatively low efficiencies are mainly attributed to the cross-polarized configuration of our setup, which leads to a rejection of a large fraction of the input power. The transmission efficiencies can be increased by using high-aspect-ratio dielectric metasurfaces made by low-loss materials, such as crystalline silicon and TiO2. Detailed discussion regarding the transmission efficiency can be found in Supplementary Note 11.

Discussion

In conclusion, we have demonstrated ‘angular spectrum analog meta-processors’ that can perform differentiation of the angular spectrum of an object. The optical transfer function can be flexibly designed to target the desired angular spectrum processing functionalities. We have constructed three types of angular spectrum operations based on silicon metasurfaces, and demonstrated their capability of implementing angular spectrum differentiation on practical objects across the entire visible spectrum. We have also presented the use of a meta-differentiator to analyze target objects in the angular spectrum domain. Our results provide a novel approach to image processing in the angular spectrum domain, in contrast to previous strategies in the spatial domain. Such a design not only has broad application prospect for optical analog data processing and biological imaging, but also potentially enables new emerging optical detection techniques.

Methods

Fabrication

The sample fabrication process starts with the deposition of 220 nm-thick silicon film on a 500 μm silica substrate by using magnetron sputtering. A photoresist layer was spin-coated onto the silicon film and baked in an oven. Afterward, the desired patterns were defined on the photoresist layer by electron-beam lithography (EBL). After development of the photoresist, the pattern is transferred onto the silicon layer by inductively coupled plasma (ICP) etching. The targets with the three parallel rectangle holes and the single circular hole were drilled in the stainless steel plate by etching.

Measurements

The setup to measure the metasurface transmission functions is shown in Fig. 3d. The light from a laser (red: DL-690-010-RS, green: MSL-FN-532-50 mW, blue: DL-450-010-RS) is collected by objective 1 (Olympus UPlanFL N, 10 × /0.30) and the distance between objective 1 and the meta-differentiators is adjusted to ensure that the light beam is slightly smaller than the meta-differentiators when reaching the left side of them. The light field on the meta-differentiators is photographed by objective 2 (Olympus UPlanFL N, 10 × /0.30) and the CCD camera (LBAS-U350-35C). The polarization directions of two polarizers are mutually orthogonal to extract the cross-polarized transmission field.

The setup to measure the angular spectrum differentiation is shown in Fig. 4a. The incident light passes through the object and the object is imaged on the meta-differentiator by objective 1. The object distance and the image distance are adjusted to ensure the image is smaller than the meta-differentiator. Then, the field on the back focal plane of the objective 1 is recorded by objective 2 and the CCD camera. The polarization directions of two polarizers are mutually orthogonal to extract the cross-polarized transmission field.

The setup to measure the angular spectrum isolation is shown in Fig. 5a. The incident light is split into two beams (paths 1 and 2) by the beam splitter 1. The light along path 1 illuminates the object (i.e., the three parallel rectangle holes), and it is then imaged onto the meta-differentiator by objective 1. At the same time, the size of the spot from path 2 is adjusted by a lens (Thorlabs LB1471-A) and the spot is slightly larger than Wx. The intensity of the beam from path 1 is attenuated by the neutral density filter to make the corresponding angular spectrum almost completely covered by the wide angular spectrum from path 2. With the same method for measuring the angular spectrum mentioned in Fig. 4, the mixed angular spectrum without and with the meta-differentiators angular spectrum differentiation can be extracted.