INTRODUCTION

Interest in structures with a periodically changing refractive index originates from the works of Yablonovich [1] and John [2], in which it was first shown that these structures can be used to effectively control the propagation of light, similar to how semiconductors change the properties of electrons in solid state physics. Photonic crystals (PCs) are solid-state structures in which the refractive index is spatially modulated with a period on the order of a wavelength. Such an arrangement of the PC structure leads to the appearance of photonic band gaps (PBGs), frequency regions in which light propagation inside the PC is forbidden. The presence of the PBG makes it possible for some interesting optical effects to arise, such as the enhancement of Raman scattering [3], the Purcell effect [4], generation of the second and third optical harmonics [5, 6], and others. PCs possess exceptional flexibility in their ability to control the flow of light, achieved by using a wide number of design degrees of freedom of these structures. This flexibility makes it possible to implement compact and high-performance logic devices based on photonic structures, which is critical for the further development of photonic and optoelectronic technologies. In this case, the problem of reverse engineering of a PC with given optical characteristics arises, which was solved in various ways, from mathematical optimization methods to the use of self-learning algorithms.

EXISTING METHODS OF PC REVERSE ENGINEERING

In [7], gradient optimization is used, which is probably the most popular reverse engineering technique for photonic structures [8, 9]. The optimization problem is to find the extrema of the objective function in some region of a finite-dimensional vector space. In this case, the arguments of such a function are refractive indices and layer thicknesses, which are the adjustable parameters of the photonic device. Within each iteration, the gradient of the objective function is calculated over adjustable parameters, and then these parameters are changed along the direction of the gradient to improve the performance of the photonic device. The authors of [7] used the gradient optimization method to improve the quality factor of a small volume photonic crystal resonator by more than two orders of magnitude. The gradient optimization method can also be used for reverse engineering of optical [10] and acoustic [11] metamaterials. Such optimization methods as, for example, optimization based on mathematical inversion [12] or the so-called convex optimization [13], which was used in [14] to create a compact optical demultiplexer, are used for PC reverse engineering.

Most of the existing researches in the field of solving the problem of photonic structure reverse engineering of in a varying degree include the use of machine learning, neural networks (NN), and other similar algorithms [1518]. In [19], a method is described that combines classical optimization algorithms and NN for PC reverse engineering. With the ability of learning features from the training dataset, neural networks can perform both forward prediction and reverse engineering of various photonic structures. Combining traditional reverse engineering and optimization techniques with NN allows to further increase the efficiency, flexibility and power of models. Apart from NNs, machine learning algorithms are currently gaining popularity in various fields of science and industry. Their main difference from NNs is that they require human intervention in the process of their learning, as well as the fact that they are aimed at simpler tasks and can only work with a structured data set. The works [2023] show the successful application of machine learning algorithms for the reverse engineering of various photonic structures. It is also worth noting the possibility of using genetic algorithms [24] for the reverse engineering of the PC.

However, the above methods are not regular, in each particular case the existence and uniqueness of the solution are not obvious.

In this paper, we propose a method for solving the inverse problem of reconstructing the structures of one-dimensional photonic crystals from the reflection spectrum. The method under consideration makes it possible to obtain a PC structure with an arbitrary given reflection spectrum, which opens up a huge scope for possible applications. Numerical calculations were made for several PC structures for various given reflection spectra, and prototypes of one-dimensional PCs were fabricated.

DIRECT PROBLEM: CALCULATION OF THE REFLECTION COEFFICIENT SPECTRUM

First, we indicate the solution we used for the direct problem of constructing the spectrum of a PC from a known structure. For this, the method of propagation matrices is used [25]. We use the recursive method, which is a reformulated matrix method and has a faster computational speed in practice. The method is based on the classical way of summing multiple reflected rays. The recurrent method used by us makes it possible to calculate the reflection and tra-nsmission coefficients of a structure consisting of \(m + 1\) layers, if these coefficients are known for the m layers [26]. Let a layered structure, the refractive indices and thicknesses of which for each mth layer are equal, respectively, \({{n}_{m}}\) and \({{d}_{m}}\), be subjected to a monochromatic wave at the incident angle θ of the form:

$$E({\mathbf{r}},t) = E({\mathbf{r}}){{e}^{{i\omega t}}}.$$
(1)

Further, we consider only the spatial propagation of the wave along the normal direction x to the surfaces of the layers, \(E({\mathbf{r}}) = E(x)\). Then the field in the layer m can be represented as:

$${{E}_{m}}(x) = {{A}_{m}}{{e}^{{i{{k}_{0}}{{\sigma }_{m}}x}}} + {{B}_{m}}{{e}^{{ - i{{k}_{0}}{{\sigma }_{m}}x}}}.$$
(2)

Here the coefficient \({{\sigma }_{m}} = (n_{m}^{2} - {{\sin }^{2}}{{\theta }_{m}}{{)}^{{1/2}}}\), \({{k}_{0}} = 2\pi {\text{/}}\lambda \) is the wave vector of the incident wave, and \({{\theta }_{m}}\) is the angle of propagation of the refracted wave to the axis. Waves with amplitudes \({{A}_{m}}\) and \({{B}_{m}}\) propagate, respectively, along and opposite to the axis. These amplitudes can be obtained from the boundary conditions for the electric and magnetic fields and from the Fresnel formulas. The reflection coefficients from the mth and \((m + 1)\)th layers, \({{r}_{{m + 1}}} = \frac{{{{B}_{m}}}}{{{{A}_{m}}}}\) and \({{r}_{{m + 1}}} = \frac{{{{B}_{{m + 1}}}}}{{{{A}_{{m + 1}}}}}\) are related by the recursive Parret relation:

$${{r}_{m}} = \frac{{{{r}_{{m + 1}}} + {{W}_{m}}}}{{1 + {{r}_{{m + 1}}}{{W}_{m}}}}{{e}^{{2i{{k}_{0}}{{\sigma }_{m}}{{d}_{m}}}}}.$$
(3)

This expression was obtained taking into account the continuity of the x-components of the wave vectors at the interface between the mth and \((m + 1)\)th layers, as well as the boundary conditions for s and p light po-larizations. Here is the notation:

$${{W}_{m}} = \frac{{{{\sigma }_{m}} - {{\sigma }_{{m + 1}}}{{P}_{m}}}}{{{{\sigma }_{m}} + {{\sigma }_{{m + 1}}}{{P}_{m}}}},$$
(4)

where \({{P}_{m}}\) is the polarization factor, which equals \({{P}_{m}} = 1\) for S-polarization and \({{P}_{m}} = {{\left( {\frac{{{{n}_{m}}}}{{{{n}_{{m + 1}}}}}} \right)}^{2}}\) for \(P\)-polarization. The calculation by the recurrent Parret formula starts from the last layer, for which \({{r}_{{m + 1}}} = 0\). The reflection coefficient for the entire system is equal in intensity to \(R = r_{0}^{2}\).

INVERSE PROBLEM: A METHOD FOR CONSTRUCTING THE PC STRUCTURE

Consider a one-dimensional PC with a total optical thickness L, whose refractive index is modulated as follows:

$$n(x) = A\sin ({{k}_{0}}x + \phi ) + B,$$
(5)

where x is the optical path, \({{k}_{0}} = \frac{{4\pi }}{{{{\lambda }_{0}}}}\) is the wavenumber, and ϕ is the initial phase. We choose A and B such that \(n(x)\) varies within fixed limits from \({{n}_{1}}\) to \({{n}_{2}} > {{n}_{1}}\): \(A = ({{n}_{2}} - {{n}_{1}})\), \(B = {{n}_{1}}\). In this example, the value of ϕ will not affect the result, so we will choose \(\phi = 0\). We get:

$$n(x) = ({{n}_{2}} - {{n}_{1}})\sin ({{k}_{0}}x) + {{n}_{1}}.$$
(6)

A PC with such modulation of the refractive index has a very narrow PBG at the wavelength \({{\lambda }_{0}}\). To calculate the reflection coefficient spectrum of this structure, we approximate the continuous dependence (6) as a piecewise constant one; i.e., we divide the crystal into layers with optical thickness \(\delta l \ll {{\lambda }_{0}}\). Coordinate of the boundary of each \(m\)th layer is \({{x}_{m}} = m{\kern 1pt} \delta l\), its refractive index \({{n}_{m}} = n({{x}_{m}})\). The physical thickness of the layers is defined as \({{d}_{m}} = \delta l{\text{/}}{{n}_{m}}\). The acceptability of approximating a continuous function \(n(x)\) to a piecewise constant one is discussed in [27]. The calculation result is shown in Fig. 1. The inset shows the piecewise constant dependence of the refractive index on the crystal thickness used in the calculation. The spectrum does indeed contain a narrow PBG at a given wavelength.

Fig. 1.
figure 1

(Color online) Theoretically calculated reflection spectrum of a PC with refractive index modulation (6) for \(s\)-polarization. The result is obtained for \(L = 40\) µm, optical path of each layer \(\delta l\) = 20 nm, \({{n}_{1}} = 1.14\), \({{n}_{2}} = 1.22\), \({{\lambda }_{0}} = 500{\kern 1pt} \) nm. Inset: dependence of the refractive index on the depth of the photonic crystal, the area from 20.0 to 20.8 µm is shown.

This leads us to the idea of reverse engineering one-dimensional PCs by approximating any given reflection spectrum with these narrow band gaps. The natural restriction imposed on the specified spectrum is that it should not have too narrow spectral features: the spectral width of the feature should not be less than the minimum band gap.

Let \(A(\lambda )\) be the reflection spectrum for which we want to choose the appropriate structure of a one-dimensional PC. Let’s make this function discrete: let this spectrum consist of N points \({{a}_{i}}({{\lambda }_{i}})\), \(i \in [1,N]\). Let the crystal have M layers, the thickness of the mth layer is \({{d}_{m}}\), the optical path on each \(m\)th layer is \({{l}_{m}} = {{n}_{m}}{{d}_{m}}\), \({{x}_{m}} = \sum\nolimits_{k = 1}^m {{{n}_{m}}} {{d}_{m}}\) is the optical path from the PC surface to the beginning of the (\(m + 1\))th layer, \(m \in [1,M]\). The refractive index varies from \({{n}_{1}}\) to \({{n}_{2}}\). Then, in accordance with equation (6), we obtain an expression for the refractive index of the \(m\)th layer:

$$n({{x}_{m}}) = \Delta n\left[ {{{C}_{1}}\sum\limits_{i = 1}^N {{a}_{i}}({{\lambda }_{i}})\sin \left( {\frac{{4\pi }}{{{{\lambda }_{i}}}}{{x}_{m}} + {{\phi }_{i}}} \right) + {{C}_{2}}} \right] + {{n}_{1}}.$$
(7)

Here, \({{C}_{1}}\), \({{C}_{2}}\) are the normalization coefficients, which are chosen so that the expression in square brackets falls into the interval \([0,1]\). \(\Delta n = {{n}_{2}} - {{n}_{1}}\). So, for example, let for each optical distance \({{x}_{m}}\) the sum of N harmonic functions is equal to:

$${{S}_{m}} = \sum\limits_{i = 1}^N {{a}_{i}}({{\lambda }_{i}})\sin \left( {\frac{{4\pi }}{{{{\lambda }_{i}}}}{{x}_{m}} + {{\phi }_{i}}} \right),$$
(8)

and \(S_{m}^{{\max }}\), \(S_{m}^{{\min }}\) are the maximum and minimum values of \({{S}_{m}}\) throughout the entire crystal, respectively, then \({{C}_{1}} = \frac{1}{{S_{m}^{{\max }} - S_{m}^{{\min }}}}\), \({{C}_{2}} = \frac{{S_{m}^{{\min }}}}{{S_{m}^{{\max }} - S_{m}^{{\min }}}}\). The question of phase \({{\phi }_{i}}\) selection remains. For each ith harmonic function, the phase is chosen as follows: \({{\phi }_{i}} = 2\pi \frac{i}{N}\frac{L}{{{{\lambda }_{m}}}}\), where \({{\lambda }_{m}}\) is the average wavelength of the spectral range in which the inverse problem is solved. This dependence was chosen in order to evenly distribute the beats arising between close harmonics over the crystal thickness.

EXAMPLES OF SOLVING THE INVERSE PROBLEM

To use the method described above, in the case of each given spectrum, it is necessary to choose the total crystal thickness L. Next, the crystal is divided into \(M = L{\text{/}}\delta l\) layers, the thickness of each layer \(\delta l\) is much less than the wavelength of light. In this work, the value of \(\delta l = 20\) nm was chosen.

As the first example, the structure of a one-dimensional PC was modeled, the reflection spectrum of which is a triangular function with a width from 470 to 710 nm with a vertex at 590 nm, the value of the function at the vertex is 0.9; this choice is due to the fact that the reflection function cannot exceed 1, and in this case, a unit value of the reflection coefficient of a photonic crystal can be obtained too easily and trivially. Total optical path \(L = 50{\kern 1pt} {\kern 1pt} 000\) nm, number of layers \(M = 2500\), number of harmonic functions \(N = 256\). \({{n}_{1}} = 1.14\) and \({{n}_{2}} = 1.22\) were chosen as the limiting values of the refractive indices of the layers. Comparison of the specified reflection spectrum and the reflection spectrum calculated by the recursive method for a given PC structure is shown in Fig. 2a, and the view of this structure is shown in Fig. 2b. The spectrum is quite close to the desired one; there are spurious oscillations caused by Fabry–Perot interference at the boundaries of the structure.

Fig. 2.
figure 2

(Color online) Theoretical calculations for a photonic crystal with a reflection spectrum in the form of a triangle: (a) the specified reflection spectrum and the reflection spectrum calculated using the recurrent method; (b) representation of the structure of a given crystal as a dependence of the refractive index on the optical path inside the crystal; (c) enlarged area from 32 to 34 µm.

To determine the significance of such a parameter as the structure thickness, a series of photonic crystals with a triangular shape of the spectral response was simulated. Within the limits of the series, different restrictions were placed on the total optical thickness of the structure L from 10 to 50 μm. The simulation results are shown in Fig. 3. It is noticeable that with an increase in the thickness of the structure, the amplitude decreases and the frequency of parasitic oscillations increases, the spectrum gradually approaches the desired one. Note that the number of harmonic functions that are used to approximate the spectrum is in all cases constant and equals \(N = 256\), so their number does not affect spurious oscillations. Note that at a wavelength of 300 nm there is an insignificant artifact, the second-order PBG.

Fig. 3.
figure 3

(Color online) Theoretical calculation of a photonic crystal with a triangular reflection spectrum in comparison with the desired spectrum for values of the total optical thickness of the structure L from 10 to 50 μm.

As a second example, a PC was modeled with a reflectance spectrum in the form of a parabola with a width of 580 to 820 nm and a peak at 700 nm. The total optical path is L = 250 000 nm, the limiting values of the refractive index are the same as for a PC with a triangular spectrum. A comparison of the specified and calculated spectra is shown in Fig. 4a, a view of the PC structure is shown in Fig. 4b. The theoretical spectrum approximates the given one quite well.

Fig. 4.
figure 4

(Color online) Theoretical calculations for a photonic crystal with a reflection spectrum in the form of a parabola: (a) the specified reflection spectrum and the reflection spectrum calculated using the recurrent method; (b) representation of the structure of a given crystal as a dependence of the refractive index on the optical path inside the crystal; (c) enlarged area 200–201 µm.

PRODUCTION OF EXPERIMENTAL SAMPLES

For experimental verification of the proposed method, one-dimensional photonic crystal structures were fabricated and their optical spectra were measured. In this work, one-dimensional PCs are fabricated using the electrochemical silicon etching technique described in [28]. It was shown that this technique can be used to produce photonic crystals with thousands of layers, while optical losses are determined mainly by Rayleigh scattering, do not exceed a few percent for the middle of the optical range even for samples 100 μm thick, and rapidly decrease with increasing wavelength.

In this work, the following parameters of the etching process were used: the raw material is crystalline silicon with (100) surface orientation, the specific resistance is 0.005 Ω cm, the minimum and maximum current densities   jmin = 40 mA/cm, jmax = 160 mA/cm, the electrolyte is an aqueous–alcoholic solution of hydrofluoric acid (HF) in a mass concentration of 28%.

On the basis of the obtained calculations, prototypes of one-dimensional PCs were fabricated, their modulation of the refractive index corresponded to those shown in Figs. 2b and 4b. The parameters of the samples (profile \(n(x)\) and thickness L) corresponded to the calculated ones. The optical spectra were measured according to the procedure described in [28]. The reflection spectra of the obtained samples were recorded using an OceanInsight QEPRO laboratory spectrometer at normal incidence. The light source was a halogen lamp with a spectral range of 400–1200 nm. The measured reflectance spectra for both examples are shown in Figs. 5 and 6. As can be seen, the experimental spectra are in good agreement with the initially specified spectra, both in shape and position. Just as in the theoretical graphs, there are undesired oscillations, the amplitude of which does not exceed 10% of the value of the useful signal. For the case of a parabolic spectrum, there are broadenings at the edges of the range associated with the finite minimum band gap of the PC. The experimentally obtained form of the function in the given region corresponds to the given one.

Fig. 5.
figure 5

(Color online) Experimental PC reflectance spectrum compared to the desired triangular spectral response function.

Fig. 6.
figure 6

(Color online) Experimental PC reflectance spectrum compared to the desired parabolic spectral response function.

CONCLUSIONS

A new reverse engineering method for one-dimensional PCs was demonstrated, which makes it possible to construct a PC structure from a given spectral function of the reflection coefficient as a dependence of the refractive index on the depth of the structure. Examples of application of the method on spectral functions of a simple form are shown. The method was confirmed experimentally; PC samples were fabricated by electrochemical etching of silicon. The considered method can be suitable for other fabrication methods in which it is technically possible to set an arbitrary spatial profile \(n(x)\), for example, electrochemical etching of aluminum, titanium and two-photon photopolymerization with a gradient change in the refractive index.