Introduction

Novel polarimetric and ellipsometry applications in the terahertz (THz) frequency range have received significant attention in recent years1,2,3. Several industrial applications have been demonstrated including characterization of materials such as polymer composites4,5, semiconductors6,7,8, and metamaterials9,10. Polarimetric measurements have also provided an accurate way to characterize the properties of thin films11,12, detect fiber orientation13, and map internal strain of polymers14. Additionally, biological samples present rich and complex opportunities in investigating the structure and function of proteins in biomolecule crystals15,16,17. The change in polarization of THz light due to scattering from inhomogeneities in biological tissue provides insights into tissue organization and can help identify cancerous areas in ex vivo samples18,19. Similarly, the internal structures of skin produce characteristic spectroscopic and polarimetric signal contrast mechanisms20,21,22. For instance, the polarimetric effect of the stratum corneum’s stratified structure and its surface grooves on measurement of skin hydration have been quantified using an in vivo THz ellipsometer23.

Some of these polarization-measurement techniques take advantage of the inherent sensitivity of the EO-sampling technique to the polarization direction of the THz waves24,25. Alternatively, multi-contact photoconductive detectors have been developed, which simultaneously measure the orthogonal components of the electric field26,27. Similarly, a network of spatially oriented nanowires have been used to achieve polarimetric measurements in THz frequencies28. Other approaches rely on using external components such as wire grid polarizers29,30,31,32,33,34, optical prisms35,36, or waveplates37. High-sensitivity methods have been developed by continuous rotation of wire-grid polarizers38,39,40 or an EO-crystal41,42 to achieve unprecedented accuracy or measurement speed.

With advancement of THz technology, high-speed and portable scanning systems have been introduced by multiple groups43,44,45,46,47,48,49. We have recently debuted our THz Portable HAndheld Spectral Reflection (PHASR) Scanner as a versatile instrument for high-speed broadband time-domain spectroscopic imaging of 1-inch diameter scenery at up to 2.6 kHz trace acquisition rate in about 6–8 seconds50. We have demonstrated its use in a wide range of applications including in vivo biomedical imaging51,52,53, non-destructive evaluation47, and spectral mapping through diffusive materials54. Despite these advancements, formation of full polarimetric images at high speeds such that it can be suitable for deployment in the field has been an illusive target. In this paper, we present a polarimetric version of our PHASR Scanner that can address these limitations by forming broadband THz images of the full Stokes vector of the light reflected from the target. In order to accurately describe the polarization state before and after the sample, we must account for optical (due to e.g., polarizers and beam splitter) and electronic (e.g., different PCA gain and coupling efficiency) effects that are introduced by the dual-channel system. Therefore, we describe a calibration technique that can determine both the polarization state of the incident light as well as the Jones matrix of the propagation path using only three independent measurements of a well-characterized calibration target, such as a wire grid polarizer, placed at the sample location. Using this technique, we demonstrate that the elements of the Jones matrix of the system and the incident polarization of the THz light both vary significantly over the field of the view of the scanner. Therefore, careful calibration of the imaging instrument, including the beam steering optics, are crucial in accurate imaging of polarization-sensitive targets and in studying heterogeneity of samples. Finally, we validate our approach by mapping the stokes vector of the THz light upon reflection from a birefringent crystal, i.e., sapphire, while the sample is rotated to various angles. Our results show excellent agreement to theoretically predicted response of the rotating crystal.

Methods

Jones matrix description of the instrument

Figure 1 illustrates the schematic and internal components of the polarization-sensitive version of the PHASR Scanner (i.e., version 2.1). The design of the previous versions of this scanner has been discussed elsewhere47,50. In our nomenclature, the major version number of each generation of the PHASR Scanners (e.g., version 1.0, 2.0, etc.) are advanced according to the beam-steering methodology, the motion stage and controllers used internally. For example, PHASR 1.0 utilizes two linear stepper motors to steer the beam, whereas in version 2.0 a stacked combination of a rotation motor and a goniometer is used in a heliostat design. The decimal point numbers are reserved for optical/software advancements, such as acquisition speed, and number of detection channels. The PHASR Scanners are able to operate using either of ASOPS55 or ECOPS56 time-domain sampling techniques. To enable polarimetric capability, we use two photoconductive antenna (PCA) detectors oriented to measure orthogonal polarizations. The two detection PCAs are pumped by the same femtosecond laser, so any drift in the time domain is equally present in both channels. Additional discussion of the timing drift between the two channels can be found in Supplementary Note 1. Furthermore, a wire-grid polarizer is used as a polarizing beam splitter (PBS) to direct orthogonal components of the THz field to each of the PCAs. The path of the THz light as it propagates through the system can be divided into three sections, each of which is described by a Jones matrix: the path from the emitter to the sample, \({\varvec{J}}_{1}\); the response of the sample itself, \({\varvec{J}}_{\text {S}}\); and finally the path from the sample to the detectors where the orthogonal components of the electric field are measured, \({\varvec{J}}_{2}\). In this final matrix, we also include the intrinsic response function of the two PCAs, inclusive of any differences in detector sensitivity, alignment and electronics, as well as potential cross-talk between the channels. Thus, if the emitted THz light is expressed as the Jones vector \({\varvec{E}}_{0}\), then the measured electric field vector \({\varvec{E}}_{\text {M}}\), composed of the two signals detected by the orthogonal PCAs (\(\text {D}_{\text {X}}\) and \(\text {D}_{\text {Y}}\)), is given by,

$$\begin{aligned} {\varvec{E}}_{\text {M}} = {\varvec{J}}_{2}{\varvec{J}}_{S}{\varvec{J}}_{1}{\varvec{E}}_{0}. \end{aligned}$$
(1)

Notably, the beam-steering components, i.e., the gimballed mirror (GM) and the \(f\text {-}\theta \) scanning lens, are part of both the incident and return light paths, and must be accounted for when describing the polarization of the light at the sample and detectors.

Figure 1
figure 1

(a) A diagram of the polarization-sensitive THz PHASR Scanner 2.1. The THz light is generated by a PCA emitter (Em) while two PCA detectors (\(\text {D}_{\text {X}}\) and \(\text {D}_{\text {Y}}\)) simultaneously measure the orthogonal polarization components of the THz field. Each of the PCAs are paired with a TPX lens for collimating/focusing the beam (CL). A silicon beam splitter (BS) directs the emitted THz light towards the motorized gimballed mirror (GM) for telecentric beam steering across an \(f\text {-}\theta \) scanning lens, which focuses the light on the sample (S). The reflected THz light from the sample surface retraces the same optical path as the incident beam passing through the BS, after which its orthogonal polarization components are directed by a polarizing beam splitter (PBS) towards the PCA detectors. Dashed boxes indicate which components are included in \({\varvec{J}}_{1}\) (green) and \({\varvec{J}}_{2}\) (blue) Jones matrices. The gimballed mirror causes a rotation of the polarization of the reflected light which is illustrated by comparing two cases: without mirror deflection (b) and deflected in the azimuthal direction (c). The orientation of the plane of incidence, and therefore s and p components (red arrows), change as the mirror steers the beam. A pair of orthogonal incident polarizations (green and blue) incident on the mirror show the effect at the location of the scanning lens (gray disk).

Spatial variation of incident polarization due to the telecentric beam steering

Figure 1b–c illustrate the incidence polarization change due to telecentric beam steering in our system. The s and p polarization directions, indicated by the red arrows, are defined by the plane of incidence. Figure 1b shows this plane and the polarization directions for an undeflected mirror targeting the center of the field-of-view on the sample. As the mirror is rotated about its azimuthal axis, the plane of incidence rotates with it, and so do the directions of the s and p components of the incident light, \(\hat{{\varvec{s}}}_{i}\) and \(\hat{{\varvec{p}}}_{i}\), as shown in Fig. 1c. Upon reflection from the mirror, the direction of s and p polarized components of the reflected beam, \(\hat{{\varvec{s}}}_{r}\) and \(\hat{{\varvec{p}}}_{r}\), incident on the scanning lens (gray disk) will both depend on the azimuthal angle. In contrast, the rotation of the mirror along the elevation axis (not shown in Fig. 1) will change the direction of \(\hat{{\varvec{p}}}_{r}\), but not \(\hat{{\varvec{s}}}_{r}\). Therefore, the polarization at the \(f\text {-}\theta \) lens, and thus also at the sample location, changes over the field-of-view as the beam is steered57.

On the return path from the sample, the same effect rotates the beam polarization in the opposite direction. For isotropic targets, these rotations cancel out and are not observable in the measured data. However, in case of anisotropic samples, the effect of the variation of incident polarization over the field-of-view of the scanner will be significant. Therefore, both \({\varvec{J}}_{1}\), and \({\varvec{J}}_{2}\) are dependent on the angle of the gimbal and can impact polarimetric measurements. To capture this effect, and any potential spatial differences due to an imperfect alignment, a calibration procedure is performed for each pixel, as described below.

Measurement of the Jones matrices of the system

To understand and calculate the polarimetric response of imaging targets, we must characterize the scanner in order to know: (I) the polarization state of the THz electric field immediately before the sample, and (II) how the polarization changes in the system between the sample and detectors. The field before the sample is calculated by \({\varvec{E}}_{1}={\varvec{J}}_{1}{\varvec{E}}_{0}\), while the changes after the sample are described by \({\varvec{J}}_{2}\). With the substitution of \({\varvec{E}}_{1}\) into Eq. (1), we express the system as,

$$\begin{aligned} {\varvec{E}}_{\text {M}} = \begin{bmatrix} E_{\text {M},x}\\ E_{\text {M},y}\\ \end{bmatrix} = {\varvec{J}}_{2}{\varvec{J}}_{S}{\varvec{E}}_{1} = \begin{bmatrix} s_{xx} &{} s_{xy}\\ s_{yx} &{} s_{yy}\\ \end{bmatrix}{\varvec{J}}_{\text {S}}\begin{bmatrix} E_{1,x}\\ E_{1,y}\\ \end{bmatrix}, \end{aligned}$$
(2)

where the expanded terms show the individual elements of \({\varvec{E}}_{M}\), \({\varvec{J}}_{2}\), and \({\varvec{E}}_{1}\). Each of these elements are complex values that vary over the field-of-view (FOV) and frequency. Following this formulation, separate measurements of both \({\varvec{E}}_{0}\) and \({\varvec{J}}_{1}\) are not necessary as measurement of the the incident polarization on the sample, \({\varvec{E}}_{1}\), is sufficient to fully characterize the system. However, direct mapping of \({\varvec{E}}_{1}\) is impractical. Here, we describe a computational method that can extract the necessary calibration parameters by obtaining specific in situ imaging scans of known polarimetric targets.

To simultaneously measure elements of both \({\varvec{J}}_{2}\) and \({\varvec{E}}_{1}\), we used a mirror at the target location, placed behind a wire-grid polarizer as illustrated in Fig.  2a. The polarizer is placed far enough (e.g., 1 cm) in front of the mirror surface such that the reflections from the polarizer do not overlap in the time-domain with the reflection from the mirror and can be discarded by windowing. These two elements can reasonably be approximated as a perfectly reflecting mirror and an ideal polarizer. Their combination provides a variable but well-described sample which facilitates calibration measurements. The Jones matrix for the combination is constructed from a series of matrices representing, in order, rotation of the coordinate system to align with the polarizer, passage through the polarizer, reflection from the mirror, passage back through the polarizer, and finally rotation into the coordinate system of the outgoing beam, where successive elements are multiplied on the left. It is clear that the choice of the coordinates used before and after reflection will dictate the form of the Jones matrix. Multiple conventions for this choice have been used, and they provide similar, but not identical, results58. Therefore care must be taken to ensure that all matrices are consistent. Furthermore, in cases such as this where the reflection occurs at normal incidence, the distinction between s and p polarizations vanishes because the plane of incidence is not well-defined. Instead, we use the \(\hat{{\varvec{x}}}\) and \(\hat{{\varvec{y}}}\) directions shown in Fig. 1 as the basis vectors used to describe both incident and reflected light. With this choice, the x and y components of the field have parallel orientation relationships and result in \(180^\circ \) phase changes after reflection from the mirror. As a Jones matrix this is expressed as

$$\begin{aligned} {\varvec{J}}_{\text {Mir.}} = \begin{bmatrix} -1 &{} 0\\ 0 &{} -1\\ \end{bmatrix}. \end{aligned}$$
(3)

The choice of coordinates also determines the direction of the coordinate rotations. We define \(\phi =0^\circ \) to be the rotation angle of the polarizer when fully transmitting x-polarized light and to increase with counterclockwise rotation from the scanner’s perspective. Thus, the Jones matrix for the full sample is40,59,

$$\begin{aligned} \begin{aligned} {\varvec{J}}_{\text {S}}(\phi )&= \begin{bmatrix} \cos (-\phi ) &{} \sin (-\phi )\\ -\sin (-\phi ) &{} \cos (-\phi )\\ \end{bmatrix}\begin{bmatrix} 1 &{} 0\\ 0 &{} 0\\ \end{bmatrix}\begin{bmatrix} -1 &{} 0\\ 0 &{} -1\\ \end{bmatrix}\begin{bmatrix} 1 &{} 0\\ 0 &{} 0\\ \end{bmatrix}\begin{bmatrix} \cos (\phi ) &{} \sin (\phi )\\ -\sin (\phi ) &{} \cos (\phi )\\ \end{bmatrix}\\&= \begin{bmatrix} -\cos ^{2}(\phi ) &{} -\cos (\phi )\sin (\phi )\\ -\cos (\phi )\sin (\phi ) &{} -\sin ^{2}(\phi )\\ \end{bmatrix}. \end{aligned} \end{aligned}$$
(4)

Different angles of the polarizer provide distinct sample response matrices. The measured polarization state is given by,

$$\begin{aligned} \begin{aligned} {\varvec{E}}_{M}(\phi ) = {\varvec{J}}_{2}{\varvec{J}}_{S}(\phi ){\varvec{E}}_{1}&= -\begin{bmatrix} s_{xx} &{} s_{xy}\\ s_{yx} &{} s_{yy}\\ \end{bmatrix}\begin{bmatrix} \cos ^{2}(\phi ) &{} \cos (\phi )\sin (\phi )\\ \cos (\phi )\sin (\phi ) &{} \sin ^{2}(\phi )\\ \end{bmatrix}\begin{bmatrix} E_{1,x}\\ E_{1,y}\\ \end{bmatrix}\\&= -\begin{bmatrix} s_{xx} &{} s_{xy}\\ s_{yx} &{} s_{yy}\\ \end{bmatrix}\begin{bmatrix} E_{1,x}\cos ^{2}(\phi ) + E_{1,y}\cos (\phi )\sin (\phi )\\ E_{1,x}\cos (\phi )\sin (\phi ) + E_{1,y}\sin ^{2}(\phi )\\ \end{bmatrix}\\&= -\begin{bmatrix} E_{1,x}(s_{xx}\cos ^{2}(\phi ) + s_{xy}\cos (\phi )\sin (\phi )) + E_{1,y}(s_{xx}\cos (\phi )\sin (\phi ) + s_{xy}\sin ^{2}(\phi ))\\ E_{1,x}(s_{yx}\cos ^{2}(\phi ) + s_{yy}\cos (\phi )\sin (\phi )) + E_{1,y}(s_{yx}\cos (\phi )\sin (\phi ) + s_{yy}\sin ^{2}(\phi ))\\ \end{bmatrix}. \end{aligned} \end{aligned}$$
(5)

It should be noted that there are six unknown elements in Eq. (5), and each calibration measurement represents a series of two equations as a function of frequency (one for each of the x and y components). Thus, a sufficient calibration set consists of at least three measurements of different samples with known \({\varvec{J}}_{\text {S}}\) matrices to provide six independent equations, which can fully define the unknown elements. Here, to obtain such a calibration set, we rotate the polarizer to a few different pre-determined angles. Figure 2b–d illustrate the measured reflection from such a sample in time- and frequency-domains for a \(10\times 1\) mm vertical line of pixels at the center of the scan, where the polarization was not rotated by the gimballed mirror. Supplementary Note 2 provides further information about the signal processing and filtering used here. The THz emitter was positioned at \(45^\circ \) to nominally split \({\varvec{E}}_{0}\) between the two detection orientations. Despite this, the field recorded by the y-component is approximately 2.5 times that of the x-component due to the internal components of the system itself, emphasizing the need for proper calibration. Even when the sample itself is achromatic, e.g., the rotation of an ideal polarizer as in Eq. (4), the effect of the rotation on the measured field \({\varvec{E}}_{M}(\phi )\) is not achromatic because both \({\varvec{E}}_{1}\) and \({\varvec{J}}_{2}\) have frequency-dependent elements. The product of \({\varvec{E}}_{1}\) and \({\varvec{J}}_{S}(\phi )\) on the second line of Eq. (5) shows how the frequency-dependence of \(E_{1,x}\) and \(E_{1,y}\) are coupled to the rotation of the sample. A similar coupling of elements of the detection Jones matrix, \({\varvec{J}}_{2}\), can be seen in Eq. (5). A description of the system for the case of a frequency-dependent imperfect polarizer is provided in Supplementary Note 3.

Figure 2
figure 2

(a) Illustration of the mirror and polarizer sample used for calibration. The polarizer can be rotated to specified angles, \(\phi \), to provide a set of well-described reflections from the mirror (M). When \(\phi =0^\circ \), the polarizer is aligned to fully transmit x polarized light. The black dashed box indicates the elements that constitute the sample Jones matrix, \({\varvec{J}}_{\text {S}}\). (b) Terahertz time-domain trace measurements (vertically offset), and (c and d) the corresponding amplitude spectra are shown for the x and y channels, respectively, at different polarizer angles. Shaded areas in each plot represent the full range of values measured along a \(10\times 1\) mm vertical line (ROI) through the center of the scanning area.

However, even for this well-characterized sample, Eq. (5) is not readily solvable for the six unknown values. This can be seen in the full expansion of Eq. (5), since the elements of \({\varvec{E}}_{1}\) and \({\varvec{J}}_{2}\) are not separable in a standard matrix factorization form. Here, we present an equivalent version that allows for matrix decomposition into a system of linear equations such that a vector composed of all of the independent (unknown) variables are multiplied by a matrix of known coefficients. We start by factoring the value of \(s_{xx}\) in Eq. (2) out of \({\varvec{J}}_{2}\) and into a new vector, \({\varvec{E}}'_{1}\), using the relationships,

$$\begin{aligned} {\varvec{E}}_{1}' = \begin{bmatrix} E'_{1,x}\\ E'_{1,y}\\ \end{bmatrix} = s_{xx}{\varvec{E}}_{1} = s_{xx}\begin{bmatrix} E_{1,x}\\ E_{1,y}\\ \end{bmatrix} \quad \text {and} \quad {\varvec{J}}'_{2} = \frac{{\varvec{J}}_{2}}{s_{xx}} = \begin{bmatrix} 1 &{} s_{1}\\ s_{2} &{} s_{3}\\ \end{bmatrix} \end{aligned}$$

such that

$$\begin{aligned} {\varvec{E}}_{\text {M}} = \begin{bmatrix} 1 &{} s_{1}\\ s_{2} &{} s_{3}\\ \end{bmatrix}{\varvec{J}}_{\text {S}}\begin{bmatrix} E'_{1,x}\\ E'_{1,y}\\ \end{bmatrix}. \end{aligned}$$
(6)

This form reduces the polarimetric effects of the system to the five complex values \(E'_{1,x}\), \(E'_{1,y}\), \(s_{1}\), \(s_{2}\), and \(s_{3}\). Despite this reduction in the number of variables, the new form has no impact on either of \({\varvec{J}}_{S}\) or \({\varvec{E}}_{M}\). Therefore, the calibration using the five elements in Eq. (6) is equivalent to using the six elements in Eq. (2). The five unknown elements from \({\varvec{E}}'_{1}\) and \({\varvec{J}}'_{2}\) in Eq. (6) are still not independent from each other. However, by applying Eq. (6) to the mirror-polarizer calibration sample described by Eq. (4) and fully expanding, we can express the measured polarization, \({\varvec{E}}_{\text {M}}(\phi )\), using a more tractable refactored form,

$$\begin{aligned} \begin{aligned} {\varvec{E}}_{M}(\phi )&= {\varvec{J}}'_{2}{\varvec{J}}_{S}(\phi ){\varvec{E}}'_{1}\\ \begin{bmatrix} E_{\text {M},x}(\phi )\\ E_{\text {M},y}(\phi )\\ \end{bmatrix}&= -\begin{bmatrix} 1 &{} s_{1}\\ s_{2} &{} s_{3}\\ \end{bmatrix}\begin{bmatrix} \cos ^{2}(\phi ) &{} \cos (\phi )\sin (\phi )\\ \cos (\phi )\sin (\phi ) &{} \sin ^{2}(\phi )\\ \end{bmatrix}\begin{bmatrix} E'_{1,x}\\ E'_{1,y}\\ \end{bmatrix}\\&= -\begin{bmatrix} 1 &{} s_{1}\\ s_{2} &{} s_{3}\\ \end{bmatrix}\begin{bmatrix} E'_{1,x}\cos ^{2}(\phi ) + E'_{1,y}\cos (\phi )\sin (\phi )\\ E'_{1,x}\cos (\phi )\sin (\phi ) + E'_{1,y}\sin ^{2}(\phi )\\ \end{bmatrix}\\&= -\begin{bmatrix} E'_{1,x}\cos ^{2}(\phi ) + E'_{1,y}\cos (\phi )\sin (\phi ) + s_{1}E'_{1,x}\cos (\phi )\sin (\phi ) + s_{1}E'_{1,y}\sin ^{2}(\phi )\\ s_{2}E'_{1,x}\cos ^{2}(\phi ) + s_{2}E'_{1,y}\cos (\phi )\sin (\phi ) + s_{3}E'_{1,x}\cos (\phi )\sin (\phi ) + s_{3}E'_{1,y}\sin ^{2}(\phi )\\ \end{bmatrix}\\&= -\begin{bmatrix} E'_{1,x}\cos ^{2}(\phi ) + (E'_{1,y} + s_{1}E'_{1,x})\cos (\phi )\sin (\phi ) + s_{1}E'_{1,y}\sin ^{2}(\phi )\\ s_{2}E'_{1,x}\cos ^{2}(\phi ) + (s_{2}E'_{1,y} + s_{3}E'_{1,x})\cos (\phi )\sin (\phi ) + s_{3}E'_{1,y}\sin ^{2}(\phi )\\ \end{bmatrix}\\ \begin{bmatrix} E_{\text {M},x}(\phi )\\ E_{\text {M},y}(\phi )\\ \end{bmatrix}&= -\begin{bmatrix} \cos ^{2}(\phi ) &{} \cos (\phi )\sin (\phi ) &{} \sin ^{2}(\phi ) &{} 0 &{} 0 &{} 0\\ 0 &{} 0 &{} 0 &{} \cos ^{2}(\phi ) &{} \cos (\phi )\sin (\phi ) &{} \sin ^{2}(\phi )\\ \end{bmatrix}\begin{bmatrix} E'_{1,x}\\ E'_{1,y} + s_{1}E'_{1,x}\\ s_{1}E'_{1,y}\\ s_{2}E'_{1,x}\\ s_{2}E'_{1,y} + s_{3}E'_{1,x}\\ s_{3}E'_{1,y}\\ \end{bmatrix}. \end{aligned} \end{aligned}$$
(7)

In Eq. (7), \({\varvec{E}}_{\text {M}}\) is given by a linear system, where a \(2\times 6\) matrix composed of the known properties of the polarizer is multiplied by a \(6\times 1\) vector composed of the unknown calibration elements. We will call this six-element vector the auxiliary vector, and identify the individual elements as A through F given by,

$$\begin{aligned} \begin{bmatrix} A\\ B\\ C\\ D\\ E\\ F\\ \end{bmatrix} = \begin{bmatrix} E'_{1,x}\\ E'_{1,y} + s_{1}E'_{1,x}\\ s_{1}E'_{1,y}\\ s_{2}E'_{1,x}\\ s_{2}E'_{1,y} + s_{3}E'_{1,x}\\ s_{3}E'_{1,y}\\ \end{bmatrix}. \end{aligned}$$
(8)

The values of the auxiliary vector can be found using standard linear algebra techniques after measuring the signal at three or more polarizer angles. The five unknown calibration elements can be then determined based on the relationships between elements of the auxiliary vector as shown in Table 1. Notably, while \(E'_{1,x} = A\) and \(s_{2} = D/A\) are uniquely determined by simple relationships, \(s_{1}\) is given by the roots of a quadratic equation and is then used for the calculation of the values of \(s_{3}\) and \(E'_{1,y}\). The result is two sets of possible values for \(s_{1}\), \(s_{3}\), and \(E'_{1,y}\). Therefore, in order to determine which root is the correct solution to the system of equations, the previously unused fifth element of the auxiliary vector, E, is compared to \(s_{2}E'_{1,y} + s_{3}E'_{1,x}\) for both sets of solutions.

Table 1 Relationships for extracting the five system calibration elements from the auxiliary vector.

Since the elements of \({\varvec{E}}'_{1}\) and \({\varvec{J}}'_{2}\) are functions of both space and frequency, our calibration procedure therefore consists of acquiring spectroscopic images of the target at a sequence of polarizer angles over the entire field of view. We then calculate the auxiliary vector and determine \({\varvec{E}}'_{1}\) and \({\varvec{J}}'_{2}\) for each pixel. As we will describe in the next section, the resulting maps of the five complex parameters provide complete insight into the scanner behavior and enable investigation of polarimetric samples.

Results

Spatial mapping of the calibration matrix

Figure 3a–c maps the spatial dependence of the elements of the calibration matrix, \({\varvec{J}}'_{2}\), over the FOV of the scanner. Here, for simplicity, we show the magnitude of these complex quantities. The parameters \(|s_{1}|\) and \(|s_{2}|\) in Fig. 3a and b show symmetrically increasing values as the beam is steered away from the center in the horizontal direction using the azimuthal axis of the gimballed mirror. A more subtle dependence on the elevation axis is best indicated by the the narrowing width of the blue region in the center of \(s_{2}\) along the vertical axis. In comparison to the other two elements, the variation of \(|s_{3}|\) in Fig. 3c is small, consisting of a slight horizontal dependence. Figure 3d–f show the frequency dependence of these three elements averaged over a \(10\times 1\) mm vertical line of pixels at the center of the image, where the polarization is not rotated by the beam steering. The normalization of \({\varvec{J}}_{2}\) by \(s_{xx}\) in Eq. (6) means that any common spectroscopic or polarization-insensitive features between \(E_{M,x}\) and \(E_{M,y}\) are no longer captured by \({\varvec{J}}'_{2}\), but instead included in \({\varvec{E}}'_{1}\). For example, the attenuation due to absorption by water vapor or optical components does not appear in these plots. The near-zero values of the off-diagonal terms, \(s_{1}\) and \(s_{2}\), at the central area of the scan indicate that the system is successful in limiting cross-talk between the two detection channels. However, this performance metric is frequency dependent and degrades at higher frequencies, where the extinction ratio of the wire-grid polarizing beam splitter is lower60. In contrast to the low values of the off-diagonal terms, \(|s_{3}|\) is greater than 1 over all frequencies and the full field of view, which indicates that the system is more sensitive to the y-polarized THz signals.

Figure 3
figure 3

Calibration parameters describing \({\varvec{J}}'_{2}\), the return path through the system. (a–c) Spatial variation of the magnitude of \(s_{1}\), \(s_{2}\), and \(s_{3}\), respectively, demonstrating the dependence on the beam steering position. Images show the average value over 0.25–0.5 THz, corresponding to the peak of the THz amplitude spectra. (d–f) Frequency dependence of the three parameters over a \(10\times 1\) mm vertical line of pixels centered at the origin. The shaded regions show one standard deviation from the mean.

In part, this can be attributed to the different Fresnel transmission coefficients between s and p polarized light passing through the silicon beam splitter. This element is a 5-mm thick wafer of high-resistivity float zone silicon mounted at a \(45^\circ \) angle. The wafer is oriented such that the s and p components of incident light correspond to the x and y detection channels, respectively. Silicon has a nearly constant index of refraction over the frequency range of our system61,62. Therefore, the beam splitter alone does not explain the frequency dependence seen in Fig. 3d–f. Furthermore, the refractive index of our wafer was measured to be \(n = 3.416\), corresponding to a transmission coefficient ratio of 1.46, which does not fully account for the values of \(|s_{3}|\) seen in Fig. 3c and f. Other possible contributing factors include a difference in the sensitivity of the two PCA detectors and associated electronics (i.e., transimpedance amplifiers) as well as any potential misalignment in the optical paths. Nevertheless, since this calibration is an empirical method, these effects are captured by the calibration matrix.

The remaining two calibration elements describe the Jones vector of the light incident on the sample, \({\varvec{E}}'_{1}\). The amplitude and phase of the two orthogonal THz field components determine the shape of the polarization ellipses at the sample location, as shown in Figure 4a. Over the field of view, the polarization is right-handed, with a consistent magnitude and elliptical profile, though the orientation of the ellipses rotates as the beam is scanned in the horizontal direction. This rotation is summarized by the polarization angle, \(\psi \), defined as the angle between the major axis of the polarization ellipse and the x axis and mapped in Figure 4b. From left to right in the FOV, \(\psi \) changes approximately linearly from \(30^\circ \) to \(70^\circ \).

Figure 4
figure 4

Polarization state of THz light incident on the target. The effect of the beam steering using the gimballed mirror can be observed by the change in the angle of the polarization ellipses (a) and is numerically represented by the polarization angle \(\psi \) in (b). Values represent average from 0.25 to 0.5 THz and ellipses have been averaged over \(2\times 2\)-pixel areas for readability.

An alternative description of the polarization state of \({\varvec{E}}'_{1}\) can be provided by mapping the Stokes vector of the incident light beam, as shown in Fig. 5a–d. The four stokes parameters can be calculated using the relationship,

$$\begin{aligned} \begin{bmatrix} I\\ Q\\ U\\ V \end{bmatrix} = \begin{bmatrix} |E'_{1,x}|^{2} + |E'_{1,y}|^{2}\\ |E'_{1,x}|^{2} - |E'_{1,y}|^{2}\\ 2\Re (E'_{1,x}E'^{*}_{1,y})\\ -2\Im (E'_{1,x}E'^{*}_{1,y}) \end{bmatrix}. \end{aligned}$$
(9)

Figure 5a shows a map of the first of the four elements, I, which describes the total intensity of the light. The consistent magnitude across the field of view indicates how the incident power on the sample remains approximately constant despite the changing polarization state. The other three parameters, Q, U, and V, indicate the intensity in the horizontal (vertical), \(+45^\circ (\)-\(45^\circ )\), and right-handed (left-handed) polarizations for positive (negative) values, respectively. Normalizing Q, U, and V, by I then provides the degree to which the light is polarized in those components. The spatial distribution of the normalized Stokes parameters are shown in Fig. 5b-d and provide a different interpretation to the ellipses in Fig. 4. The horizontal trend of the two linear components Q/I and U/I show that the polarization is primarily aligned with \(+45^\circ \) but transitions from a more horizontally polarized direction at the left of the FOV to a more vertically polarized direction at the right. At the same time, there is a right-handed circular polarization component with little variation across the field of view. Figure 5e shows the mean and standard deviation of I for a \(10\times 1\) mm vertical line of pixels. Using our calibration procedure, the factor of \(s_{xx}\) from \({\varvec{J}}_{2}\) is included in \({\varvec{E}}'_{1}\). This factor includes polarization-insensitive features (such as absorption lines, which were absent in Fig. 3) as well as the spectral sensitivity of the x-channel (including PCA detector, transimpedance amplifier, etc.). As a result, these factors are present in \({\varvec{E}}'_{1}\) and thus also in the Stokes vector. However, it can be seen from Eq. (9) that since \(s_{xx}\) is present in both \(E'_{1,x}\) and \(E'_{1,y}\), it acts as a real scaling factor, \(|s_{xx}|^{2}\), for the four Stokes parameters. Thus, when Q, U, and V are normalized, any additional features from the detection path are eliminated. Ultimately, the frequency dependence of the normalized Stokes parameters are shown in Fig. 5f–h for a \(10\times 1\) mm vertical line of pixels at the center of FOV. As the frequency increases, the vertically polarized component of the light becomes more prominent (Q/I approaches -1), while the \(45^\circ \) and right-handed components both decrease. Thus, calibrating the scanning system is vital even for point measurements or images over a small FOV, where the spatial variation can be ignored, since this frequency dependence will still be present.

Figure 5
figure 5

Stokes parameters describing the field at the surface of the sample. (a–d) Spatial dependencies and (e–h) frequency dependence of the Stokes parameters of \({\varvec{E}}'_1\). The Q, U, and V values have each been normalized by the corresponding I value. Images in (a–d) show the average value from 0.25 to 0.5 THz corresponding to the peak of the THz amplitude and the plots show the average of a \(10\times 1\) mm vertical line of pixels centered at the origin.

Validation of calibration measurements

In order to validate our technique, we compare measurements from a birefringent sample to those predicted theoretically using our calibration data. The crystal used here is a polished 0.52-mm-thick sapphire (\(\text {Al}_2\text {O}_3\)) cut orthogonal to the a-axis such that the c-axis is in the plane of the crystal face. Sapphire is chosen because it is highly birefringent and well described in the THz region63,64,65. Due to this birefringence, the Fresnel reflection coefficients for the ordinary and extraordinary rays, \(r_{o}\) and \(r_{e}\), respectively, will differ even at normal incidence. For a sample crystal rotated to \(\phi \), defined similarly as in Eq. (4) for the polarizer and illustrated in Fig. 2a, the sample Jones matrix representing the first surface reflection is given by66,

$$\begin{aligned} {\varvec{J}}_{\text {S}}(\phi ) = \begin{bmatrix} \cos (-\phi ) &{} \sin (-\phi )\\ -\sin (-\phi ) &{} \cos (-\phi )\\ \end{bmatrix}\begin{bmatrix} r_{e} &{} 0\\ 0 &{} r_{o}\\ \end{bmatrix}\begin{bmatrix} \cos (\phi ) &{} \sin (\phi )\\ -\sin (\phi ) &{} \cos (\phi )\\ \end{bmatrix}. \end{aligned}$$
(10)

Using the known refractive indices of sapphire to calculate the Fresnel coefficients, we can simulate the measurement of such a crystal by substituting Eq. (10) into Eq. (6). That is, the simulated measurement \({\varvec{E}}_{\text {calc}}(\phi )\) is given by,

$$\begin{aligned} {\varvec{E}}_{\text {calc}}(\phi ) = {\varvec{J}}'_{2}{\varvec{J}}_{\text {S}}(\phi ){\varvec{E}}'_{1}. \end{aligned}$$
(11)

Figure 6 shows the strong agreement between calculated \({\varvec{E}}_{\text {calc}}(\phi )\) and the measured field \({\varvec{E}}_{\text {M}}(\phi )\), expressed in terms of their normalized Stokes parameters, for a \(3\times 4\) mm region at the center of the crystal. Figure 6a shows how the intensity of the reflection, I, oscillates as the crystal is rotated at a fixed frequency (0.5 THz). A similar oscillation is also present in Q, U, and V in Figure 6b–d such that they appear constant when normalized by I. On the other hand, the same measured Stokes parameters change drastically with frequency in Figure 6e–h. Nevertheless, there is an excellent spectral agreement between the measured Stokes parameters and the theoretical simulation across the full bandwidth of the scanner.

Figure 6
figure 6

Comparison of the measured Stokes vectors after reflection from the sapphire to the theoretically calculated values. (a–d) the normalized stokes parameters are shown over a range of crystal rotation angles at 0.5 THz, while (e–h) show the frequency dependence at \(0^{\circ }\) rotation. The shaded ranges shown represent the variation over a \(3\times 4\) mm region of pixels at the center of the crystal.The range of the calculated Stokes vectors shown are results of the variation in the calibration parameters \({\varvec{J}}'_{2}\) and \({\varvec{E}}'_{1}\), used in Eq. (11).

Discussion

The calibration parameters described earlier are inherent to the system and robust over multiple acquisition sessions. Potential day-to-day differences in the time of arrival between the two channels can be present due to e.g., small optical miss-alignments, different ASOPS or ECOPS acquisition ranges and laser setting parameters. These shifts are compensated for by acquiring a single image of a flat mirror without the polarizer. Our initial alignment of the mirror and polarizer sample includes ensuring that the mirror is normal to the incident THz light. To do this, we find the alignment of the mirror, where the time of arrival (TOA) of the THz pulse across the field of view is constant for each channel. Although, it should be noted that the TOA values are not necessarily the same for the two detection channels. The equivalency of normal incidence angle and constant time of arrival is provided by our telecentric \(f\text {-}\theta \) scanning design67. For subsequent scanning sessions, measurements of the mirror at normal incidence are described by the Jones matrix equation,

$$\begin{aligned} \begin{bmatrix} E_{\text {M},x}\\ E_{\text {M},y}\\ \end{bmatrix} =\begin{bmatrix} e^{i\theta _{x}} &{} 0\\ 0 &{} e^{i\theta _{y}}\\ \end{bmatrix}{\varvec{J}}'_{2}\begin{bmatrix} -1 &{} 0\\ 0 &{} -1\\ \end{bmatrix}{\varvec{E}}'_{1}, \end{aligned}$$
(12)

where we have assumed the sample is perfectly reflecting, and thus its Jones matrix is a negative identity matrix as in Eq. (3). The phase-shift values of \(\theta _{x}\) and \(\theta _{y}\) can simply be calculated by comparing the measured phase of each channel to the expected value from the previously acquired calibration set. Measurements within the new session can then be directly compared to previous measurements by including this additional phase adjustment as necessary. Typically, the correction represents a simple time-domain shift of the form \(\theta _{x/y} = 2\pi f \Delta t_{x/y}\), where \(\Delta t_{x/y}\) is the difference in time of arrival between the x/y measurements on different days68. As such, this measurement also accounts for the phase offset caused by session-to-session differences in reference mirror position. Because this phase contribution is the same for the two orthogonal components of the field, it also has no impact on the Stokes parameters. This phase correction step is also useful to account for any variation in reference mirror placement between different measurement days. While this extra adjustment can account for session-to-session differences in reference position, it does not correct for the general ambiguity in phase due to placement of subsequent samples. In that case, the phase shift due to displacement is considered part of the unknown \({\varvec{J}}_{\text {S}}\) for that sample. Nevertheless, as with the mirror reference, this sort of phase shift does not impact the measured Stokes parameters.

As stated in the Methods section, this calibration procedure requires the measurements of a minimum of three independent polarizer angles in order to solve for the elements of the auxiliary vector, and subsequently calculate \({\varvec{E}}'_{1}\) and \({\varvec{J}}'_{2}\). However, the choices of which angles to use can impact the reliability of the calibration. The periodicity of the \(6\times 2\) matrix in Eq. (8) with respect to \(\phi \) reflects the fact that the effect of the polarizer is the same under \(180^\circ \) rotation, effectively limiting \(\phi \) to the range \([-90^\circ , 90^\circ ]\). A naive choice might include the angles \(\phi = 0^\circ \), and \(90^\circ \). Inspection of Eq. (7) shows that, for instance, at \(\phi = 0^\circ \) the measured fields are given by \(E_{\text {M},x} = -A = - E'_{1,x}\) and \(E_{\text {M},y} = -D = -s_{2}E'_{1,x}\). At the center of the scan, where the polarization is not rotated by the system, the \(E_{\text {M},y}\) component is dominated by the measurement noise, since the detection cross-talk is low. This noise is passed into the calculation of \(s_{2}\). Likewise, measurements at \(\phi = 90^\circ \) associate \(s_{1}\) with noise. These polarizer angles therefore should be avoided when selecting which angles to use. The number of angles to use also influences the calibration. If just three angles are included, the resulting auxiliary vector will provide an exact solution to Eq. (7) for the measured data. However, if more than three polarizer angles are used, the system of equations becomes over-determined and solutions for the auxiliary vector will represent a best fit to the measured data. Importantly, it should be noted that even for an exact solution (i.e., when only three angles are used), the auxiliary element E and the calculated value of \(s_{2}E'_{1,y} + s_{3}E'_{1,x}\) are not ensured to be identical, as expected from Eq. (8), because solving the linear system of equations for the auxiliary vector makes no explicit mathematical assumptions of the relationships between the auxiliary vector elements described by Table 1. Additionally, imperfect extinction by the rotating polarizer or any scan-to-scan variation in \({\varvec{E}}'_{1}\), including measurement noise, are not accounted for in Eq. (7). The calibration presented here is the result of measurements obtained at eight polarizer angles equally distributed between \(-70^\circ \) and \(70^\circ \). The auxiliary vector then was calculated to be the least-squares error solution to the measured \({\varvec{E}}_{M}(\theta )\) using the standard matrix equation solver in MATLAB. It should be noted that regardless of how many polarizer angles are used for calibration measurements, the degrees of freedom in the fitting calculation is limited to the six parameters of the auxiliary vector. In other words, use of more measurement angles does not lead to overfitting. As a final comment, we have recently used this polarimetric version of the PHASR Scanner to map the speckles patterns induced by rough-surface samples using the Stokes parameters over the Poincaré sphere69. In application such as this one, in which the objective is to investigate sample randomness or speckle patterns (in contrast to precise measurement of birefringence or other sample properties), simpler calibration procedures based on a priori information on scanner design may be sufficient.

Conclusion

We have presented the polarimetric version of the THz PHASR Scanner for clinical and non-destructive testing applications. We have shown the accuracy of the scanner in measuring the full spectral response of the birefringence crystal sapphire as it was rotated to various degrees. In order to accurately describes the polarization state of the light incident on the sample location and as it propagates through the scanner, we described an in situ calibration method consisting of at least three independent measurements of a known calibration target. Our procedure is based on decomposition of the complete Jones matrix of the system and mapping the spatial and spectral dependence of its member elements over the entire FOV (1 inch) of the scanner. We showed that the telecentric beam steering approach used in this scanner can rotate the polarization angle of the incident light on the sample as a function of spatial dimensions. Finally, we showed that our approach can accurately account for the variation in the sensitivity, alignment and any potential cross-talk between the two PCA detectors used in the system. In the future, this scanner can be used to spatially map the Stokes vector of the THz light and characterize the sample response matrix in various field deployable scenarios.