1 Introduction

Nowadays, the advances in deposition and crystal growth technologies have caused the periodic, quasiperiodic, aperiodic, and random photonic crystals (PhCs) to attract extensive interest and emerged as a new potential platform for the development of high harmonic generators [1,2,3,4,5], terahertz emitters [6, 7], optical sensors/filters [8,9,10,11] and so on. PhCs with magnetic and nonmagnetic constituents are known as magneto-photonic crystal (MPCs). Physically, destructive interference of scattered waves at the boundary of different layers in PhCs leads to the formation of band gaps that prevent waves with certain frequencies from traveling through the structure. The presence of the nonreciprocal and unidirectional photonic bandgap (PBG) is the most prominent property of MPCs which can be tuned by an external magnetic field [12,13,14,15,16]. The enhancement of magnetooptical effects, such as transmittance and a Faraday rotation, are other important features of MPCs. This enhancement can be attributable to the constructive interferences of light within magnetic layers that cause the light localization and light-matter interaction enhancement. Translational-symmetry breaking in MPCs with quasi-periodic, aperiodic, and random arrangement cause light localization enhancement as well as the emergence of defect mode(s) [17,18,19,20]. Random MPCs are built without specific rules, while quasi-periodic and aperiodic ones are fabricated according to certain substitutional rules and have an intrinsic symmetry of self-similarity, which manifests itself in the structure of their Fourier spectra [21]. However, the Fourier spectra of quasi-periodic structures like Fibonacci consist of isolated Bragg peaks with incommensurate periods, while aperiodic structures such as Thue–Morse and Rudin–Shapiro possess fractal and flat Fourier spectra with a variety of unique technological applications [22]. It has been proven that these structures combine strong magnetooptical effects with PBG properties effectively [23,24,25,26,27].

Fig. 1
figure 1

a Polar geometry of an aperiodic stack composed of magnetized ferrite and isotropic dielectric layers with Kolakoski arrangement at the eighth generation stage (\(\mathcal {N}\)=14). b The polarization ellipse of the outgoing beams under normal electromagnetic wave incidence, with Faraday and ellipticity angles \(\beta\) and \(\eta\), respectively

The Kolakoski self-generating sequence is another kind of aperiodic structure that has attracted significant interest in different branches of science, including fabricating aperiodic MPCs with applications in linear/nonlinear optical devices [28,29,30]. In this work, we study the magnetooptical properties of one-dimensional aperiodic MPCs formed by stacking magnetic and nonmagnetic materials according to the Kolakoski generation scheme. By using the 4\(\times\)4 transfer matrix method (TMM), the transmittance, reflectance, Faraday rotation, and ellipticity are investigated as a function of the frequency, polarization, and angle of incident light for different numbers of layers \(\mathcal {N}\).

2 Theory

I. 4 \(\times\) 4 Transmission matrix formalism

One of the possible configurations of the structure under consideration with \(\mathcal {N}\)=14 layers is schematically depicted in Fig. 1. It is assumed that the letters M denote the magnetic layer of thickness \(d_M\) and N is the nonmagnetic layer of thickness \(d_N\). The plane electromagnetic wave of frequency \(\omega\) propagates in the yz plane with the wavevector \(\mathbf{k}=\{0,k_y,k_z\}\).

At optical frequencies, propagation of electromagnetic waves in a material is determined by the properties of the dielectric permittivity tensors \(\hat{\varepsilon }\) and \(\hat{\mu }\). In a medium uniformly magnetized along the z-axis (polar geometry), the tensors have the following form [31,32,33]:

$$\begin{aligned} \hat{\varepsilon } =\begin{pmatrix} \varepsilon _{xx} &{} \varepsilon _{xy} &{} 0 \\ -\varepsilon _{xy} &{} \varepsilon _{xx} &{} 0 \\ 0 &{} 0 &{} \varepsilon _{zz} \end{pmatrix} \qquad \hat{\mu }=\begin{pmatrix} \mu _{xx} &{} \mu _{xy} &{} 0 \\ -\mu _{xy} &{} \mu _{xx} &{} 0 \\ 0 &{} 0 &{} \mu _{zz} \end{pmatrix}. \end{aligned}$$
(1)

Within the optical wavelength region, \(\hat{\mu }\) differs only slightly from unity (\(\hat{\mu }=\mu \delta _{ij}\), where \(\delta _{ij}\) is Kronecker delta symbol). Furthermore, the non-magnetic crystal with a cubic symmetry is characterized by the diagonal tensors \(\hat{\varepsilon }_N=\varepsilon \delta _{ij}\).

In the following, to study the magnetooptical properties of one-dimensional aperiodic MPCs, we use the 4\(\times\)4 transfer matrix method [34,35,36] which couples the field amplitudes at the structure input and output. According to this formalism, the transfer matrix \(\hat{T}\) has the following form:

$$\begin{aligned} \hat{T}=\hat{A}_{bg}^{-1}\prod _{i=\mathcal {N}}^{1}\hat{A}_{i}\hat{E}_{i}\hat{A}_{i}^{-1}\hat{A}_{bg}, \end{aligned}$$
(2)

where \(\hat{E}_{i}\) is the propagation matrix of the four eigenmodes inside the layer i,

$$\begin{aligned} \hat{E}_{i}=\left( \begin{array}{cccc} e^{ik_{z}^{(1)}z} &{} 0 &{} 0 &{} 0\\ 0 &{} e^{ik_{z}^{(2)}z} &{} 0 &{} 0\\ 0 &{} 0 &{} e^{ik_{z}^{(3)}z} &{} 0\\ 0 &{} 0 &{} 0 &{} e^{ik_{z}^{(4)}z} \end{array}\right) , \end{aligned}$$
(3)

with wavevectors \(k_z^{(j)}\), (j = 1...4 of the normal modes). Depending on the characteristics of each layer in MPC, the electromagnetic field of light that travels inside that is split into different modes with different \(k_z\)s [32]. Matrix \(\hat{A}_{i}\) relates the total electric \(E_{xy}\) and magnetic \(H_{xy}\) fields of the plane electromagnetic waves at the boundary of the layer to the amplitudes of the eigenmodes. \(\hat{A}_{bg}\) is related to the surrounding medium, with i=YIG or GGG. By solving the Maxwell equations we can find the elements of the matrices \(\hat{A}_{i}\). In this case, the electromagnetic wave splits into four modes with wavevectors \(k_z^{(1)}=k_+\), \(k_z^{(2)}=-k_+\), \(k_z^{(3)}=k_-\), and \(k_z^{(4)}=-k_-\) where:

$$\begin{aligned} k_{\pm }=\sqrt{\varepsilon _{xx}\Omega ^2-k_y^2\pm \sqrt{D_p}}, \end{aligned}$$
(4)

\(D_p=-\varepsilon _{xy}^2\Omega ^4+\frac{\varepsilon _{xy}^2}{\varepsilon _{zz}}\Omega ^2k_y^2\), and normalized frequency is \(\Omega =\omega /c\). The explicit form of the matrix \(\hat{A}\) for the polar magnetic layer can be written as

$$\begin{aligned} \hat{A}_{YIG}=\begin{pmatrix} V^+ &{} -V^+ &{} F^- &{} F^-\\ G^+ &{} -G^+ &{} 1 &{} 1 \\ F^+ &{} F^+ &{} -V^- &{} V^-\\ 1 &{} 1 &{} -G^- &{} G^- \end{pmatrix}, \end{aligned}$$
(5)

\(V^{\pm }=\frac{\nu ^{\pm }}{z^{\pm }}\), \(G^{\pm }=\frac{g^{\pm }}{z^{\pm }}\), and \(F^{\pm }=\frac{f^{\pm }}{z^{\pm }}\), where

$$\begin{aligned} z^+&= \varepsilon _{xx}[\varepsilon _{xx}\Omega ^2-k_y^2-k_+^2]k_+, \nonumber \\ \nu ^+&= \varepsilon _{xx}[\varepsilon _{xx}\Omega ^2-k_y^2-k_+^2]\Omega , \nonumber \\ g^+&= i\varepsilon _{xy}[\varepsilon _{xx}\Omega ^2-k_y^2]\Omega , \nonumber \\ f^+&= -i\varepsilon _{xx}\varepsilon _{xy}\Omega ^2 k_+. \end{aligned}$$
(6)

The values \(z^-\), \(\nu ^-\), \(g^-\) and \(f^-\) can be obtained from \(z^+\), \(\nu ^+\), \(g^+\) and \(f^+\) respectively, by the replacement (\(\varepsilon ,k_+ \Longleftrightarrow \mu ,k_-\)) [32]. For the normal incidence, wavevectors becomes \(k_{\pm }=\sqrt{\varepsilon _{xx}\pm i \varepsilon _{xy}}\Omega\), and the matrix \(\hat{A}\) reduces to the form

$$\begin{aligned} \hat{A}_{YIG}=\begin{pmatrix} P_{+} &{} -P_{+} &{} -i &{} -i\\ -iP_{+} &{} iP_{+} &{} 1 &{} 1\\ i &{} i &{} -1/P^{-} &{} 1/P^{-}\\ 1 &{} 1 &{} -i/P^{-} &{} i/P^{-} \end{pmatrix}, \end{aligned}$$
(7)

where \(P_{+}\equiv \sqrt{\frac{\mu _{xx}+i\mu _{xy}}{\varepsilon _{xx}+i\varepsilon _{xy}}}\) and \(P_{-}\equiv \sqrt{\frac{\varepsilon _{xx}-i\varepsilon _{xy}}{\mu _{xx}-i\mu _{xy}}}\).

Beside, the wavevectors in the nonmagnetic cubic medium are

$$\begin{aligned} k_{\pm }^2=n^2\Omega ^2-k_y^2, \end{aligned}$$
(8)

with \(n=\sqrt{\varepsilon }\) and the \(\hat{A}\)-matrix of the layer is

$$\begin{aligned} \hat{A}_{GGG}=\begin{pmatrix} \Omega /k_z &{} -\Omega /k_z &{} 0 &{} 0\\ 0 &{} 0 &{} 1 &{} 1 \\ 0 &{} 0 &{} -\varepsilon \Omega /k_z &{} \varepsilon \Omega /k_z\\ 1 &{} 1 &{} 0 &{} 0 \end{pmatrix}. \end{aligned}$$
(9)

In the case of normal incidence \(k_{\pm }=\pm n\Omega\), and

$$\begin{aligned} \hat{A}_{GGG}=\begin{pmatrix} \frac{1}{n} &{} \frac{-1}{n} &{} 0 &{} 0\\ 0 &{} 0 &{} 1 &{} 1\\ 0 &{} 0 &{} \frac{-\varepsilon }{n} &{} \frac{\varepsilon }{n}\\ 1 &{} 1 &{} 0 &{} 0 \end{pmatrix}. \end{aligned}$$
(10)

Following the theory provided in [32], we can write the transmitted \(t^s\), \(t^p\) and reflected \(r^s\), \(r^p\) light magnitudes in terms of the incident light magnitudes \(a^s\), \(a^p\) using the transmission matrix in Eq. 2 as follows

$$\begin{aligned} \left[ \begin{array}{c} t^{s}\\ 0\\ t^{p}\\ 0 \end{array}\right] =\hat{S}_{f}\hat{T}\hat{S}_{i}^{-1}\left[ \begin{array}{c} a^{s}\\ r^{s}\\ a^{p}\\ r^{p} \end{array}\right] , \end{aligned}$$
(11)

where subscripts p and s correspond to the p-polarized and s-polarized electromagnetic waves, respectively. With the assumption that the 1D MPC is embedded in the isotropic dielectric media i before and f behind that with refractive index \(n_i\) and \(n_f\) respectively, the S matrices read

$$\begin{aligned} \hat{S}_{i,f}\equiv \frac{1}{cos\theta _{i,f}}\left[ \begin{array}{cccc} n_{i,f}^{-1} &{} 0 &{} 0 &{} 0\\ 0 &{} n_{i,f}^{-1} &{} 0 &{} 0\\ 0 &{} 0 &{} 1 &{} 0\\ 0 &{} 0 &{} 0 &{} 1 \end{array}\right] , \end{aligned}$$
(12)

where \(\theta _{i,f}\) is the angle between the wavevector and z-axis in media i and f. Accordingly, intensities of the transmitted and reflected light are given by \(T=\left| t^{p}\right| ^{2}+\left| t^{s}\right| ^{2}\) and \(R=\left| r^{p}\right| ^{2}+\left| r^{s}\right| ^{2}\), and using \(\kappa = t^p/t^s\) and \(\kappa = r^p/r^s\) for transmitted and reflected waves, respectively, the Faraday rotation \(\beta\) and ellipticity \(\eta\) angles are determined by

$$\begin{aligned} \beta = \frac{1}{2}arctg\frac{2Re(\kappa )}{1-|\kappa |^2}, \qquad \eta = \frac{1}{2}arcsin\frac{2Im(\kappa )}{1+|\kappa |^2}, \end{aligned}$$
(13)

which schematically are represented in Fig. 1b. Generally, even with a linearly polarized incident wave, the transmitted and reflected waves are elliptically polarized.

II. Kolakoski sequences generation rule

A Kolakoski self-generating sequence (KSGS) is defined by the property that it equals the sequence of its run lengths, where a run is a maximal subsequence of consecutive identical letters [37,38,39,40,41]. An infinite one-sided Kolakoski sequence

$$\begin{aligned} \zeta =\underbrace{22}_\text {2}\underbrace{11}_\text {2} \underbrace{2}_\text {1} \underbrace{1}_\text {1}\underbrace{22}_\text {2}\underbrace{1}_\text {1}\underbrace{22}_\text {2}\underbrace{...}_\text {...} \end{aligned}$$
(14)

which started from digit “2” is called the K(2, 1) sequence. In addition the sequence

$$\begin{aligned} \zeta ^\prime =1\zeta =122112122122... \end{aligned}$$
(15)

is the other type of the Kolakoski sequence which started from digit “1” and is called K(1, 2).

Classical and generalized Kolakoski sequences can be generated by an algorithm that is similar to those of Fibonacci or Thue-Morse sequences. The rules for the generation scheme of the classical Kolakoski self-generating sequence are briefly: (1) the classical sequence is formed from a pair of one-digit numbers 1 and 2; (2) The sequence consists of blocks of single and double 1 s and 2 s, each block is containing a different digit or a pair of digits compared to the previous block; (3) the j-th block of the sequence has length \(l_j = a_j\) (where \(a_j\) is the j-th element of the sequence); (4) In the sequence, there cannot be more than two neighbors with the same number; (5) every time when we “read” a new number, we alternate between writing 1 and 2. For example, the K(2, 1) sequence can be obtained from Eq. by starting with initiator 2 and iterating two alternating substitutions [37]. The number of generation stages of the Kolakoski sequence is defined as \(\sigma\) and the total number of layers in the structure is \(\mathcal {N}\).

Fig. 2
figure 2

The response to the normal incident linearly polarized light: The transmission coefficient T (blue solid line), Faraday \(\beta\) (red solid line), and ellipticity \(\eta\) (pink dashed-dotted line) vs the normalized frequency for a \(\mathcal {N}\)=60 and b \(\mathcal {N}\)=85

3 Numerical calculation and discussion

For the realization of the main features of the magnetooptical response of Kolakoski-based MPCs, we assume that magnetic M and nonmagnetic N layers are corresponded to digits “1” and “2” in the K(1, 2) sequence, respectively. For numerical calculations, as Ref [42], we consider the magnetic layers M to be Ce doped yttrium iron garnet Ce:YIG, with \(n_{YIG}\)=2.21 and \(\varepsilon _{xy}\)=0.009i at \(\lambda\)=1.55\(\mu\)m and, nonmagnetic layers N gadolinium gallium garnet GGG with \(n_{GGG}\)=1.926. We suppose that MPC is surrounded by the medium with refractive index, averaged over MPC, in order to avoid the effect related to Fresnel reflections at the surface of MPC [32], i.e. n=2.0. The layer thicknesses are chosen to be \(d_M=\lambda /4n_{YIG}\) and \(d_N=\lambda /4n_{GGG}\).

Fig. 3
figure 3

a The response to the normal incident linearly polarized light: The transmission coefficient T (blue-solid line), Faraday \(\beta\) (red solid line), and \(\eta\) ellipticity (pink dashed-dotted line) vs the normalized frequency. ad for \(\mathcal {N}\)=60 and eh for \(\mathcal {N}\)=85. Vertical lines indicate the location of transmission peaks

Fig. 4
figure 4

a The response to the normal incident linearly polarized light: The reflection coefficient R (blue-solid line), Faraday \(\beta\) (red-solid line), and \(\eta\) ellipticity (red dashed-dotted line) vs the normalized frequency for ad \(\mathcal {N}\)=60, and eh \(\mathcal {N}\)=85

Fig. 5
figure 5

The response to the normal incident linearly polarized light: The transmission coefficient T (blue solid line), Faraday \(\beta\) (red solid line), and ellipticity \(\eta\) (pink dashed-dotted line) vs the normalized frequency for a two-defect [42] and b Kolakoski-based MPC with \(\mathcal {N}\)=125

The transmission, Faraday, and ellipticity rotation spectra of Kolakoski-based MPCs are presented in Fig. 2. In order to study the effect of the number of layers on magnetooptical responses, we considered MPCs with the number of layers, \(\mathcal {N}\)=60 and \(\mathcal {N}\)=85. Here \(\omega D/2\pi c\) is the dimensionless frequency and \(D=d_M+d_N\). It is important to note that the transmission spectra of both of MPCs demonstrate symmetrical profiles around certain normalized frequencies, e.g. \(\omega D/2\pi c=0.729\). Moreover, they show bands with high and low levels of transmission, which are referred to as pseudo-stopbands and pseudo-passbands. The interference of the reflected waves from the different boundaries and field localization inside the structures cause oscillations in pseudo-passbands and appearing sharp transmission peaks (localized modes) within the pseudo-stopbands, respectively [29]. The total number of layers in the MPC determines the number of resonances, their spectrum, width, location, and magnitude. Figure 2 illustrates that the boundaries of the bands become sharper with an increase in \(\mathcal {N}\) and that more and more resonant transmission peaks emerge in the center of the pseudo-stopbands. The peaks get narrower and their magnitudes approach 1, Due to the lack of dispersion and loss in the materials. Also, some additional pseudo-stopbands appear in the spectra, which the number of them can be controlled with the parameter \(\mathcal {N}\). Besides, Faraday and ellipticity rotation increase with increasing \(\mathcal {N}\) and frequency of incident light.

Fig. 6
figure 6

Distribution of electric field intensity in the aperiodic MPCs with a \(\mathcal {N}\)=60 and b \(\mathcal {N}\)=85 at the normalized frequency \(\omega D/(2\pi c)=0.798\) and \(\omega D/(2\pi c)=0.801\), respectively. The dashed lines show the border between different layers

Fig. 7
figure 7

Two-dimensional plots of Faraday rotation and transmissivity evolution with the incidence angle \(\theta\) and normalized frequency for TE and TM incidence wave in aperiodic MPC with \(\mathcal {N}\)=60

The exact values of transmission, Faraday, and ellipticity rotations for pseudo-stopbands (1–4) in Fig. 2 are provided in Fig. 3. The displayed values are calculated in transmission peaks. Furthermore, for \(\mathcal {N}\)=60, the structure achieves a flat-top edge-mode with bandwidth of approximately 5THz, as shown with double-ended green arrows in Fig. 3a–d. The flat transmittance of polarized linear waves and the increased Faraday rotation confirm the feasibility of using tunable magnetooptic filters for transmission. Reduction of the bandgaps width and increase of Faraday rotation with increasing number of layers is also evident. Besides, for the additional information about the 1D aperiodic MPCs, we have calculated the features of the reflected wave, as seen in Fig. 4. Areas with constant Faraday rotation and zero ellipticity are highlighted in the middle of the pseudo-stopbands. There is not much change in Faraday rotation of the reflected wave as the number of layers and the frequency of incident light increase. In this study, dispersion and loss in layers were ignored, resulting in R+T=1, however considering them can modify magnetooptical responses and provide interesting results [43, 44].

It is worth noting that as shown in [21], intrinsic symmetry of self-similarity of Kolakoski-based MPCs manifests itself in the structure of its Fourier spectra and the structural correspondence of the Fourier and the transmission spectra is significant. This indicates the Fourier transformation of this aperiodic MPC reveals important information about the transmission and reflection spectra, e.g. the position of pseudo-bandgaps and pseudo-stopbands in the spectra, which can be addressed in the next studies.

Comparing the magnetooptical responses of Kolakoski-based MPCs with different arrangements of defective, aperiodic, and quasiperiodic can yield very interesting results. Here, since for numerical calculations, we used the parameters provided in the Ref. [42], we compare responses of the Kolakoski and two-defects MPCs with the same number of layers, \(\mathcal {N}\)=125. As shown in Fig. 5a, the transmission of the second defect mode in the defective MPC decreased significantly, which makes it practically useless. However, in the Kolakoski-based MPC similar to previous cases in Fig. 2, not only edge modes’ transmittance at higher frequencies has not decreased, but the Faraday rotation of these modes has increased, which makes them an excellent candidate for fabricating multicolor filters.

In order to better understand the physical mechanisms for the transmission properties and enhancement of the Faraday rotation, we calculate the distribution of intensities of the electric field \(|E|^2\) in aperiodic MPCs with \(\mathcal {N}\)=60 and \(\mathcal {N}\)=85 at the frequency of the tunneling modes \(\omega D/(2\pi c)=0.798\) and \(\omega D/(2\pi c)=0.801\), respectively. As shown in Fig. 6, strongly localized electric fields of the tunneling modes are formed inside the structures. This enhancement originates basically from the fact that the strong scattering of light waves due to the high inhomogeneity of the Kolakoski multilayer leads to the formation of resonant cavities. Therefore, the local field will be intensively enhanced and localized in the magnetic optical layers, which can realize high transmission and a large Faraday rotation angle of the designed frequency simultaneously.

At last, since new magnetooptical properties appear when light is incident on the MPCs at an oblique angle, we study the influence of incident angle \(\theta\) on the magnetoptical response of designed aperiodic MPCs. The dependence of the transmission and Faraday rotation on the incident angle and normalized frequency for different polarization of incident light is shown in Fig. 7. By taking advantage of the oblique geometry, polarization degeneracy between TE and TM which exists at normal incidence is removed. Besides, as the incident angle increases, all the resonant features as edges of the bandgaps and resonant peaks experience a significant “blue” shift. This blue shift shows the possibility of using Kolakoski-based MPCs as tunable magnetooptical devices such as filters, polarizers, and shutters. For TM polarization, the bandgaps (1–4) in Fig. 2 become slightly wider when the angle increases, but are drastically reduced to zero for TE polarization. Practically speaking, this effect is significant.

4 Conclusion

In conclusion, in this paper, we have studied the magnetooptical properties of the novel type of one-dimensional aperiodic multilayered structures formed according to the generalized Kolakoski sequence generation rules. On the basis of the 4\(\times\)4-block-representation transfer matrix formulation, the expressions for calculating the reflection and transmission coefficients and related Faraday and ellipticity angles are obtained. The results reveal that high transmittance and large Faraday rotation angle can be simultaneously realized in the aperiodic 1D-MPCs based on Kolakoski sequences. We have shown that the magnetooptical properties are sensitive to a change in incident angle, polarization, and frequency of light as well as the number of layers. Consequently, tunability of frequency range and the width of the bandgaps of transmission and reflection spectra, as well as high Faraday rotation, have exposed these devices as effective candidate for designing spectral- and polarization-selective optical components and Faraday rotators.