1 Introduction

While conventional photodetectors can only measure light intensity, the light field contains much richer information, including but not limited to phase, polarization, and spectrum. The measurement of multi-dimensional light field information can find its application in various fields. For instance, polarization measurements can reveal the material composition [1, 2] and surface textures [3] of objects, whereas spectral analysis can be instrumental for chemical study [4] and wavelength-division-based telecommunication [5].

However, conventional polarimeters and spectrometers are often bulky [6, 7], which hinders their applications in miniaturized platforms. Division-of-amplitude polarimeters and spectrometers utilize polarization beam splitters and dispersive elements, such as prisms and gratings, to spatially separate and distinguish light with different polarization and wavelength, as schematically shown in Fig. 1a. Alternatively, division-of-time polarimeters and spectrometers leverage tunable polarization and wavelength filters to sequentially measure the light intensity with different polarization and spectral components, as schematically shown in Fig. 1b. Through the multiplexing of the abovementioned mechanisms for polarization and spectrum detection, composite systems that can simultaneously measure the polarization and spectrum of light, namely spectropolarimeter, have been developed recently. However, the multiplexing inevitably results in a further increased system form factor and complexity [8,9,10].

Fig. 1
figure 1

Comparison between conventional spectropolarimetry and computational spectropolarimetry based on a tunable metasurface. a,b Schematics of conventional division-of-amplitude (a) and -time (b) polarimetry and spectrometry. c Schematics of computational spectropolarimetry with a tunable liquid crystal metasurface. Light with unknown polarization and spectrum normally impinges on the liquid crystal metasurface. Both the polarization and spectrum of the incident light can be computationally reconstructed from the measured intensity of the reflected light

Metasurface is an emerging class of planar diffractive optical elements. Its design flexibility has broken new ground for manipulating the vectorial light field [11,12,13,14,15,16,17]. In recent years, metasurface-based polarimeters and spectrometers have also been developed. Besides conventional approaches based on either division-of-amplitude [18,19,20,21,22,23] or division-of-time [24, 25], computational polarimeters and spectrometers have recently been demonstrated, in which the polarization or spectrum of the incident light can be encoded using a tunable graphene-integrated metasurface [26] or a metasurface array [27,28,29,30], and decoded through computational reconstruction. However, the simultaneous multiplexing and reconstruction of multi-dimensional light field information remain a challenging task. Alternatively, metasurface-based spectropolarimetry has been demonstrated by spatially splitting the incident light with different polarization components and wavelengths [31,32,33]. However, similar to conventional division-of-amplitude polarimeters and spectrometers, such an approach requires a detector array for polarization and spectrum detection at a single spatial location, thus preventing its use for spectropolarimetric imaging.

In this work, we propose and experimentally demonstrate a spectropolarimeter that simultaneously measures the polarization and spectrum of near-infrared light. The core hardware part of the system is an electrically-tunable liquid crystal-embedded silicon metasurface. The metasurface is tailored to support multiple high-quality-factor guided-mode resonances, with rich and anisotropic spectral features that can be widely tuned by applying different bias voltages. Combined with a straightforward computational reconstruction algorithm based on the trust-region method [34], the system can reconstruct the incident light’s full Stokes parameters and spectrum from the reflected light intensity recorded by a single-pixel photodetector. Unlike conventional spectropolarimetry, the proposed method does not perturb the wavefront of the incident light. The fabrication of the liquid crystal metasurface is fully compatible with the mature complementary metal-oxide semiconductor (CMOS) and liquid crystal on silicon (LCoS) manufacturing process, such that the system may be mass produced at a low cost.

2 Results

2.1 Working principle of tunable metasurface-based spectropolarimetry

The working principle of the tunable liquid crystal metasurface-based computational spectropolarimeter is schematically shown in Fig. 1c. We first consider incident light with unknown polarization and spectrum, described by a wavelength-dependent Stokes vector \(S_{{{\text{in}}}} (\lambda ) = \left[ {\begin{array}{*{20}c} {s_{0} (\lambda )} & {s_{1} (\lambda )} & {s_{2} (\lambda )} & {s_{3} (\lambda )} \\ \end{array} } \right]^{{\text{T}}}\). To measure \(S_{{{\text{in}}}} (\lambda )\), the incident light field is designed to pass through and be encoded by a liquid crystal metasurface, a polarizer, and eventually be detected by a photodetector. The polarizer is added between the metasurface and the photodetector to enable the measurement system to detect circularly polarized light. The modulated Stokes vector \(S_{{{\text{out}}}} (\lambda ) = {\mathbf{M}}(\lambda ,V) \cdot S_{{{\text{in}}}} (\lambda )\), where \({\mathbf{M}}(\lambda ,V)\) is a 4 × 4 Mueller matrix of the measurement system, which is a function of the wavelength λ as well as the voltage V applied to the liquid crystal metasurface. \({\mathbf{M}}(\lambda ,V) = {\mathbf{M}}_{{\text{p}}} \cdot {\mathbf{M}}_{{{\text{meta}}}} (\lambda ,V)\), where \({\mathbf{M}}_{{\text{p}}}\) and \({\mathbf{M}}_{{{\text{meta}}}} (\lambda ,V)\) are Mueller matrices of the polarizer and metasurface, respectively.

Since a photodetector can only record the light intensity, which corresponds to the element s0 in \(S_{{{\text{out}}}} (\lambda )\), the detected light intensity can be written as,

$$s_{{{\text{out,0}}}} = M_{{\text{0}}} \cdot S_{{{\text{in}}}}$$
(1)

where \(M_{{0}} = \left[ {\begin{array}{*{20}c} {m_{{{00}}} } & {m_{{{01}}} } & {m_{{{02}}} } & {m_{{{03}}} } \\ \end{array} } \right]\) is the first row of \({\mathbf{M}}(\lambda ,V)\). For broadband incident light, by sequentially altering the voltage applied to the liquid crystal metasurface, its polarization and spectrum are encoded in the measured light intensity as,

$$S_{{{\text{out}},0}}^{V} = \sum\limits_{{i = 1}}^{m} {a_{i} {\mathbf{M}}_{0}^{V} (\lambda _{i} )S_{{{\text{in}}}} (\lambda _{i} )}$$
(2)

where \(S_{{{\text{out}},0}}^{V}\) is an N × 1 vector, corresponding to the intensity measured at N different voltages; m is the number of spectral channels; ai represents the weight of each spectral channel. \({\mathbf{M}}_{0}^{V} (\lambda_{i} )\) is an N × 4 matrix with the form of \(\left[ {\begin{array}{*{20}c} {M_{0} (\lambda_{i} ,V_{1} )} & {M_{0} (\lambda_{i} ,V_{2} )} & \ldots & {M_{0} (\lambda_{i} ,V_{N} )} \\ \end{array} } \right]^{{\text{T}}}\). With a pre-calibrated \({\mathbf{M}}_{0}^{V} (\lambda )\), it is possible to simultaneously reconstruct the polarization and spectrum of the incident light by fitting the measured intensity according to Eq. (2). Depending on the number of unknown parameters, it may be an underdetermined or overdetermined nonlinear least squares problem and can be solved with many well-developed methods, such as the Gauss–Newton method and the trust-region method [34].

2.2 Design of the liquid crystal metasurface

To ensure the fidelity of the polarization and wavelength reconstruction, the measurement matrix \({\mathbf{M}}_{{0}}^{V} (\lambda )\) at different values of λ should have a minimal correlation [27, 28, 35], which demands the metasurface to exhibit rich spectral and polarization features that can be widely tuned by an applied voltage.

The proposed metasurface is a one-dimensional 500-nm-thick silicon grating. The metasurface is embedded in liquid crystal and further covered with a transparent indium-tin-oxide (ITO) electrode for active modulation, as schematically shown in Fig. 2a. The metasurface is designed to be highly anisotropic and supports multiple high-Q guided-mode resonances (Additional file 1: Note S1). While the director of the liquid crystal is along the y-axis in the static case, when an alternating voltage is applied to the liquid crystal cell, the liquid crystal director rotates towards the z-axis, giving rise to a change of the liquid crystal’s refractive index along both the y-axis and z-axis and a spectral shift of the guided-mode resonances. The reflectance and reflection phase of the metasurface vary strongly as a function of the liquid crystal rotation angle (denoted by θLC) for incident light polarized both along the x-axis and y-axis, are shown in Fig. 2b–e, which is also a result of the strong modal overlap between the liquid crystal and the guided-mode resonances, as shown in Fig. 2f,g.

Fig. 2
figure 2

Liquid crystal metasurface design. a Schematics of the liquid crystal metasurface. The grating period P = 950 nm, bar width W = 160 nm, and bar height H1 = 500 nm. The thickness of the liquid crystal layer H2 = 2.5 μm. b,c Simulated reflectance of the metasurface as a function of the liquid crystal rotation angle θLC for incident light polarized along the x-axis (b) and y-axis (c), respectively. d,e Simulated reflection phase of the metasurface as a function of the liquid crystal rotation angle θLC for incident light polarized along the x-axis (d) and y-axis (e), respectively. f Simulated z-component electric field distribution for incident light polarized along the x-axis at the wavelength of 1452 nm with θLC = 0°, corresponding to the black star in panel (b). g Simulated z-component magnetic field distribution for incident light polarized along the y-axis at the wavelength of 1479 nm with θLC = 45°, corresponding to the black triangle in panel (c)

2.3 Numerical simulation

To numerically validate the tunable liquid crystal metasurface for spectropolarimetry, we first calculate the elements in M0 at each λ and θLC from the simulated complex amplitude reflection of the metasurface as,

$$\begin{gathered} m_{{00}} = \frac{1}{2}(|r_{{\text{x}}} |^{2} \cos ^{2} \theta _{{\text{p}}} + |r_{{\text{y}}} |^{2} \sin ^{2} \theta _{{\text{p}}} ) \hfill \\ m_{{01}} = \frac{1}{2}(|r_{{\text{x}}} |^{2} \cos ^{2} \theta _{{\text{p}}} - |r_{{\text{y}}} |^{2} \sin ^{2} \theta _{{\text{p}}} ) \hfill \\ m_{{02}} = \frac{1}{2}|r_{{\text{x}}} ||r_{{\text{y}}} |\sin (2\theta _{{\text{p}}} )\cos (\Delta \varphi ) \hfill \\ m_{{03}} = \frac{1}{2}|r_{{\text{x}}} ||r_{{\text{y}}} |\sin (2\theta _{{\text{p}}} )\sin (\Delta \varphi ) \hfill \\ \end{gathered}$$
(3)

where rx and ry represent the complex amplitude of x- and y-polarized light reflected from the metasurface, respectively. θp is the polarizer’s transmission axis with respect to the x-axis, and \(\Delta \varphi = \arg (r_{{\text{x}}} ) - \arg (r_{{\text{y}}} )\). (Additional file 1: Note S2).

To quantify the diversity of the spectral response of the liquid crystal metasurface, we calculate correlation coefficients of each column of the Mueller matrix at different wavelengths (Additional file 1: Note S3). The calculated correlation coefficients of the Mueller matrix are relatively small for the wavelength range from 1400 to 1500 nm, suggesting superior spectral diversity required for high-fidelity spectral reconstruction.

To numerically verify the effectiveness of the proposed tunable metasurface for polarization and wavelength measurement of the monochromatic incident light, we assume three random incident wavelengths within the range from 1400 to 1500 nm and three representative incident polarization states (linearly polarized, left-elliptically polarized, and right-circularly polarized, respectively). To simulate the inevitable noise sources in experiments, random noise with a maximum signal-to-noise ratio (SNR) of 10 dB, defined as \(SNR = - 10\lg \frac{{I_{n} }}{{I_{s} }}\), where In and Is represent the intensity of noise and signal, respectively, is added to the calculated reflectance. To reconstruct the polarization state and wavelength, we take the Stokes parameters Sin and λ as variables and fit the relationship between the reflectance and θLC to Eq. (1), with the number of measurements Np set to 10. For the computational reconstruction, we choose the trust-region method because of its reasonably low computational cost and superior global convergence properties [34]. The reconstructed polarization and wavelengths of the incident light show excellent agreement with the ground truths, as illustrated in Fig. 3a.

Fig. 3
figure 3

Simulated spectropolarimetric reconstruction. a Comparison of reconstructed wavelengths and polarization states with the ground truth for monochromatic incident light. Dashed and solid lines in insets represent reconstructed polarization states and ground truth, respectively. b Illustration of the Poincaré sphere and the definition of εp. The solid and hollow circle represents the ground truth and reconstructed polarization, respectively. c,d The polarization and wavelength measurement error εp (blue line) and ελ (orange line) as a function of Np (c) and SNR (d), respectively. e Comparison between the reconstructed spectrum (upper panel) and Stokes parameters (lower panel) and the ground truth for a broadband input signal. Dashed and solid lines in the inset of the upper panel represent reconstructed polarization states and the ground truth, respectively. f Reconstructed narrowband spectra with a fixed bandwidth of 2 nm and peak positions of 1430 nm, 1450 nm, and 1470 nm, respectively. Dashed and solid lines in the inset represent reconstructed polarization states and the ground truth, respectively. g Reconstructed peak positions of narrowband spectra ranging from 1400 to 1500 nm with a fixed bandwidth of 2 nm. The solid line is the mean reconstructed peak positions over different reconstruction cycles. The upper and lower boundaries of the shaded region are the corresponding standard deviations of the reconstructed peak position. h Reconstructed bandwidths of spectra with a fixed peak position of 1455 nm and bandwidths ranging from 1 to 10 nm. The blue line is the mean reconstructed bandwidths over different reconstruction cycles, and the black line is the ground truth. The upper and lower boundaries of the shaded region are the corresponding standard deviations of the reconstructed bandwidth

The fidelity of the reconstruction is related to Np and SNR of the measured reflected light intensity. We define the polarization reconstruction error as \(\varepsilon_{{\text{p}}} = \, \arccos (\frac{{S_{1} S_{1}^{^{\prime}} + S_{2} S_{2}^{^{\prime}} + S_{3} S_{3}^{^{\prime}} }}{{S_{0} S_{0}^{^{\prime}} }})\), which corresponds to the angle between the ground truth and the reconstructed point on the Poincaré sphere, as illustrated in Fig. 3b, where \(\left[ {\begin{array}{*{20}c} {S_{0}^{^{\prime}} } & {S_{1}^{^{\prime}} } & {S_{2}^{^{\prime}} } & {S_{3}^{^{\prime}} } \\ \end{array} } \right]^{{\text{T}}}\) is the reconstructed Stokes vector. The wavelength reconstruction error is defined as \(\varepsilon_{\lambda } = \left| {\lambda - \lambda^{^{\prime}} } \right|/\lambda\), where λ is the reconstructed wavelength.

We evaluate εp and ελ by randomly assuming incident polarization states over the full range of the Poincaré sphere and incident wavelengths ranging from 1400 to 1500 nm. εp and ελ as a function of Np at a fixed SNR of 10 dB and as a function of the SNR at a fixed Np of 20 are shown in Fig. 3c,d, respectively. The results indicate that the metasurface-based spectropolarimeter may reconstruct the polarization state and wavelength of monochromatic light with high fidelity (εp < 5° and ελ < 0.5%) at relatively high noise level using no more than 10 measurements.

To further validate the effectiveness of the tunable liquid crystal metasurface for broadband spectropolarimetric measurement, a broadband light source with a spectral range from 1420 to 1480 nm and a sampling interval of 1 nm is assumed as the incident light. Random noise with a maximum SNR of 20 dB is added to the calculated reflectance. The number of measurements Np is set to 90 to make the reconstruction process an overdetermined problem to lessen the influence of the noise. The reconstructed polarization and spectrum are also compared with the ground truth, as shown in Fig. 3e. The spectrum reconstruction error here is calculated by \(\left\| {I_{0} - I_{\tt R} } \right\|_{1} /\left\| {I_{0} } \right\|_{1}\), where I0 and IR are the ground truth and the reconstructed spectrum, respectively. While the polarization reconstruction result agrees very well with the ground truth, the spectrum reconstruction error is higher than that in the monochromatic case.

To test the resolution limit, we performed the reconstruction of a left-circularly polarized narrowband signal with a spectral peak position ranging from 1400 to 1500 nm and with a tunable bandwidth ranging from 1 to 10 nm. A few representative reconstruction results of narrowband spectra with varying peak positions with a bandwidth of 2 nm are shown in Fig. 3f. The reconstructed peak positions agree well with the ground truth across the full wavelength range from 1400 to 1500 nm, as shown in Fig. 3g. Furthermore, with the spectral peak position fixed at 1455 nm, the reconstructed bandwidth matches well with the ground truth with the bandwidth down to about 2 nm, as shown in Fig. 3h.

Here, the spectral resolution is limited by the correlation of the spectral response of the metasurface as well as the noise level. By designing guided-mode resonances with higher Q-factors, one may be able to further reduce the spectral correlation of the measurement matrix, allowing the reconstruction of a narrower spectrum.

2.4 Experimental demonstration

For the experimental demonstration of the liquid crystal metasurface spectropolarimetry, we fabricate the metasurface via the standard electron beam lithography and reactive ion etching process. The liquid crystal cell packaging also follows a procedure routinely used for liquid crystal devices (Additional file 1: Note S4). The photograph and the scanning electron microscopy (SEM) image of the metasurface are shown in Fig. 4a.

Fig. 4
figure 4

Experimental spectropolarimetric reconstruction. a Photograph (upper panel) and SEM image (lower panel) of the fabricated liquid crystal metasurface. b Experimental setup for the Mueller matrix calibration and spectropolarimetric measurements. c Calibrated rx, ry, and Δφ as functions of V in the wavelength range from 1420 to 1470 nm. d Comparison of reconstructed wavelengths (orange dots) of monochromatic incident light (from 1420 to 1470 nm, with 1 nm separation) with the ground truth (blue line). e Comparison of reconstructed polarization states (dashed lines) of monochromatic incident light and the ground truth (solid lines). f Comparison between the experimentally reconstructed spectrum (upper panel) and Stokes parameters (lower panel) and the ground truth for a narrowband input signal. Dashed and solid lines in the inset of the upper panel represent the reconstructed polarization state and the ground truth, respectively. g Experimentally measured switch-on and switch-off time of the liquid crystal metasurface, respectively. Blue and red lines represent the measured reflectance and the voltage applied to the metasurface as a function of time, respectively

Prior to the spectropolarimetric measurement, we calibrated \({\mathbf{M}}_{{0}}^{V} (\lambda )\) of the fabricated metasurface at each wavelength. The experimental setup for both the calibration and measurement processes is shown in Fig. 4b (Additional file 1: Note S5). We first set the incident light to a known polarization, then rotate the polarizer to collect a set of output intensity \(S_{{\text{out,0}}} (\lambda ,V,\theta_{{\text{p}}} )\) at each value of V and λ. By fitting the intensity to Eqs. (1) and (3), rx, ry, and Δφ as functions of V and λ can be obtained, as shown in Fig. 4c. \({\mathbf{M}}_{{0}}^{V} (\lambda )\) can be subsequently obtained from Eq. (3). The wavelength range of the experimental calibration is from 1420 to 1470 nm, beyond which the spectral correlation of the measured Mueller matrix becomes too large. Besides a clear main guided-mode resonance peak, a few other simulated guided-mode resonances were not experimentally observed, which may be due to the inhomogeneous liquid crystal alignment and imperfect fabrication (Additional file 1: Note 6).

To experimentally demonstrate the simultaneous reconstruction of the polarization and wavelength of a monochromatic light using the tunable metasurface, we varied the wavelength of the incident light from 1420 to 1470 nm, with its polarization state prepared as linear or elliptical. In the measurement system, θp was fixed at 45° to minimize the condition number of the system matrix (Additional file 1: Note S7). For each input wavelength and polarization, a set of reflectance was measured by sweeping the voltage applied to the liquid crystal metasurface. By fitting the measured reflectance to Eq. (1) using the trust-region method, the wavelength and polarization of the incident light can be simultaneously reconstructed and are in good agreement with the ground truth, as shown in Fig. 4d, e.

To characterize the spectral resolution of the spectropolarimetric measurement system, we performed reconstruction of a linearly polarized narrowband light source (with a bandwidth of about 9 nm) generated from a supercontinuum laser source coupled to an acousto-optic tunable filter. The experimental reconstruction result, as shown in Fig. 4f, demonstrates that we can reconstruct the spectral peak location, the overall spectral line shape, as well as its polarization state. Based on the experimentally measured Mueller matrix, we also numerically reconstructed an unknown input light source with a dual-peak spectrum (Additional file 1: Supplementary note S8). The lower experimental spectral resolution can be anticipated as a result of the relatively strong spectral correlation of the experimental Mueller matrix. The fidelity of the broadband spectrum reconstruction may be further improved by reducing the system noise, improving the refractive index modulation range, the Q-factor of the guided-mode resonances, as well as its modal overlap with the liquid crystal.

To characterize the operation speed of the proposed spectropolarimetry, we experimentally measured the response time of the tunable liquid crystal metasurface with a 10-V-voltage switched on and off. The response time is defined as the time between 10 and 90% of the reflectance change. As shown in Fig. 4g, the switch-on and switch-off time are 6 ms and 102 ms, respectively. For each spectropolarimetric measurement, the applied voltage is sequentially swept from 0 to 10 V, leading to a total measurement time of 60 ms with 10 measurements. The response time of the liquid crystal may be further shortened by reducing the cell gap [36,37,38,39]. The subsequent computational reconstruction is performed in MATLAB and takes about 300 ms on a desktop computer with an Intel i5-8500 CPU and 32 GB RAM. The speed and accuracy of the spectropolarimetric reconstruction may be further improved through the use of data-driven deep learning-based algorithms [29, 40].

3 Discussion and conclusion

To summarize, we have demonstrated a tunable metasurface-based multi-dimensional light field encoder that allows the simultaneous measurement of the polarization and spectrum of near-infrared light. The metasurface encodes the polarization and spectral information using its anisotropic high-Q guided-mode resonances that can be tuned by a bias voltage. Although the liquid crystal metasurface currently operates in the reflection mode, one can also design a transmissive liquid crystal metasurface [41,42,43,44,45] to enable more compact integration with the photodetector (Additional file 1: Supplementary note S9). Due to its in-plane uniformity, the liquid crystal metasurface does not perturb the wavefront of the incident light. Compared with division-of-amplitude-based spectropolarimetric measurement techniques, the liquid crystal metasurface, when integrated with a proper detector array, may be used for spectropolarimetric imaging without sacrificing spatial resolution (Additional file 1: Supplementary note S10). With the adoption of widely-used liquid crystal material and cell assembly process, the response of the liquid crystal metasurface is repeatable under different operation cycles (Additional file 1: Note S11). The reflectance, and consequently the SNR, of the measurement system may be further increased by taking it into consideration during the design stage of the metasurface. The measurement time may be further reduced by reducing the cell gap and employing more advanced reconstruction algorithms, thus allowing spectropolarimetric imaging with a much higher frame rate. The proposed liquid crystal metasurface may be used in a plethora of applications that require polarization and spectral measurements, such as in biomedical imaging, remote sensing, and optical communication. Such a strategy may also be extended to construct compact systems that can measure additional light field information, such as the depth of a target scene or the wavefront of the incident light.