1 Introduction

The topology of matter has become a subject of extensive research interest due to its ability to explain many intriguing physical phenomena, such as topological insulators [1, 2], the quantum spin Hall effect [3, 4], and Majorana fermions [5] and their analogs. In particular, interfaces between two materials of different topological classes give rise to highly robust topological states [68]. Since the first discovery of topological states in condensed matter physics, these states have been observed in a variety of systems spanning different areas of science, including mechanics [911], acoustics [1214], and optics [1519]. Recently, localized topological states have been achieved at the interface between two segments of graphene nanoribbons (GNRs) with different topological phases [2022]. The topological phases of GNRs are determined by their width, edge, and end termination [20, 21]. With recent advances in bottom-up synthesis from precursor molecules, atomically precise GNRs with various widths, well-defined edges, and end terminations can be readily produced [2326], providing a rich variety of graphene systems suitable for further development of possible applications.

Despite the extensive study and rapid progress in topological physics, most of existing studies have focused on the linear regime. However, recent research suggests that the interplay between topology and nonlinearity can give rise to important novel phenomena [2730]. For instance, a topological source of quantum light has been realized in a two-dimensional array of ring resonators [27], whereas four-wave mixing of topological edge plasmons has been observed in graphene metasurfaces [28]. In addition, strong third-harmonic generation has been experimentally demonstrated in a SSH-like left-handed transmission line [29]. Moreover, GNRs inherit the intrinsically large nonlinearity from extended graphene sheets and produce large field enhancement via plasmon excitation [3133]. Consequently, GNR heterojunctions composed of two topologically inequivalent GNRs provide an ideal and versatile platform to investigate the interplay between topology and optical nonlinearity at the nanoscale.

When the size of graphene nanostructures is less than ∼ 10 nm, the widely used classical nonlinear conductivity is inadequate to describe their nonlinear optical properties. This is so because nonlocal and finite-size effects play a crucial role in determining their optical response, necessitating full-quantum calculations [3438]. One widely used quantum mechanical method to describe the electronic states of graphene nanostructures is the tight-binding model [39, 40]. However, the standard tight-binding model considers only the coupling of nearest-neighbor atoms, so that the accuracy of its predictions can be improved. Recently, we proposed a distant-neighbor quantum mechanical (DNQM) approach to compute the linear and nonlinear optical properties of graphene nanostructures [37, 38]. Compared to the tight-binding model, the DNQM calculations are more accurate, as it includes the coupling of the π-orbital electron of each atom with the core potential of all atoms in the graphene nanostructure. In particular, our DNQM method has been applied to calculate the second- and third-order nonlinear optical response of certain graphene nanostructures [38].

In this work, we use DNQM calculations to investigate the nonlinear optical properties of GNR heterojunctions composed of two segments of GNRs with either the same or different topological phases. We show that due to the emergence of topological interface states, the nonlinear optical response of GNR heterojunctions consisting of two topologically distinct GNRs is significantly enhanced. More specifically, compared to GNR heterojunctions without topological interface states, the third-order nonlinear hyperpolarizability of GNR heterojunctions with topological interface states can increase by more than two orders of magnitude. Additionally, second-harmonic generation in GNR heterojunctions with topological interface states is shown to be more than 10 times larger than that in topologically trivial heterojunctions with similar size. We also find that the resonance frequency of quantum plasmons in GNR heterojunctions is red-shifted when the topological interface states are generated.

2 System configuration

The GNR heterojunctions we considered are shown in Fig. 1. They consist of two armchair-edged GNRs (W-AGNRs) that may or may not be topologically equivalent. Here, W represents the number of rows of carbon atoms that form the width of GNRs. Compared to topologically heterogeneous systems proposed in previous studies, such as photonic-topological couplers [41], complex photonic lattices analogous to the Su–Schrieffer–Heeger model [42], and plasmonic superlattices [17], where the structural size is of the order of 1 um and above, and thus the topological states occur in the classical regime, graphene nanoribbon heterojunctions support topological quantum plasmon oscillations, whereby size-effects physics significantly changes their optical response. The topology of GNRs is determined by their width, edge, and end termination, and can be characterized by a \(Z_{2}\) invariant [20, 21]. This invariant is an integer and takes a value of \(Z_{2}=1\) (\(Z_{2}=0\)) for topologically nontrivial (trivial) ribbons with a unit cell that possesses spatial inversion and/or mirror symmetry. We first focus on the AGNRs with zigzag, \(\mathrm{zigzag} ^{ \prime}\), and bearded terminations, as they are the most commonly synthesized forms of GNRs. For odd W, the values of \(Z_{2}\) of W-AGNRs are given by [20]:

$$\begin{aligned} &Z_{2}=\frac{1+(-1)^{[\frac{W}{3}]+[\frac{W+1}{2}]}}{2}\quad \mathrm{zigzag-terminated}, \end{aligned}$$
(1a)
$$\begin{aligned} &Z_{2}=\frac{1-(-1)^{[\frac{W}{3}]+[\frac{W+1}{2}]}}{2}\quad \mathrm{zigzag^{\prime}-terminated}. \end{aligned}$$
(1b)

Here, \([x]\) is the floor function that takes the maximum integer smaller than or equal to the real number x. For even W, the values of \(Z_{2}\) of AGNRs are [20]:

$$\begin{aligned} &Z_{2}=\frac{1-(-1)^{[\frac{W}{3}]+[\frac{W+1}{2}]}}{2}\quad \mathrm{zigzag-terminated}, \end{aligned}$$
(2a)
$$\begin{aligned} &Z_{2}=\frac{1-(-1)^{[\frac{W}{3}]}}{2}\quad \mathrm{bearded-terminated}. \end{aligned}$$
(2b)
Figure 1
figure 1

Armchair GNR heterojunctions formed with two GNRs of (a) W = 9 zigzag and \(W=7\) \(\mathrm{zigzag} ^{\prime}\) terminations, (b) \(W=9\) zigzag and \(W=7\) zigzag terminations, (c) \(W=6\) and \(W=4\) bearded terminations, and (d) \(W=6\) zigzag and \(W=4\) zigzag terminations. W is the number of rows of carbon atoms along the lateral direction. The two GNR segments in (a) and (c) are topologically inequivalent, whereas those in (b) and (d) are topologically equivalent. The dashed red rectangles indicates a unit cell

Knowing the value of the \(Z_{2}\) invariant of W-AGNRs with various terminations and widths, we construct four heterojunctions lying on the x-y plane, at which two AGNRs of same or distinct topology are joined together, as shown in Fig. 1.

The two heterojunctions presented in Figs. 1(a) and 1(b) consist of a zigzag-terminated \(W=9\) AGNR with \(Z_{2}=1\) and a \(\mathrm{zigzag} ^{\prime}\)-terminationed \(W=7\) AGNR with \(Z_{2}=0\) [Fig. 1(a)], and a zigzag-terminated \(W=7\) AGNR with \(Z_{2}=1\) [Fig. 1(b)]; we labeled them as 9/7-Zigzag-8D and 9/7-Zigzag-8S, respectively. Note that the two heterojunctions contain the same number of carbon atoms, \(N_{c}=256\), and have the same length of \(L=6.7\) nm. We also consider two heterojunctions containing the same number of carbon atoms, \(N_{c}=240\), and having the same side length of \(L=10.1\) nm by connecting two bearded- or zigzag-terminated AGNRs with even rows of carbon atoms, \(W=4\) and 6, and denote them as 6/4-Bearded-12D and 6/4-Zigzag-12S, as shown in Figs. 1(c) and 1(d), respectively. The two AGNR segments in Fig. 1(c) are topologically inequivalent, while those in Fig. 1(d) are topologically equivalent.

3 Energy spectra and charge density distributions

We first investigate energy spectra and charge density distributions of the AGNR heterojunctions using the DNQM method (details about the DNQM calculations can be found in Appendix A). Figures 2(a) and 2(c) depict the energy spectra of the 9/7-Zigzag-8D and 6/4-Bearded-12D heterojunctions, respectively, with modes arranged in increasing order of their energy. We also calculate their corresponding charge density distributions. In accordance with the bulk-edge correspondence principle, our computations demonstrate that a topologically induced interface state arises at the 9/7-Zigzag-8D heterojunction, localized at the interface between the two topologically distinct AGNR segments, as shown in Fig. 2(b). Remarkably, the energy of the topological interface state in the 9/7-Zigzag-8D heterojunction corresponds to the HOMO-1 (with HOMO meaning the highest-occupied molecular orbital), having a value of \(E=-154\text{ eV}\). The red dot in the energy spectrum in Fig. 2(a) indicates this energy level.

Figure 2
figure 2

Energy spectra of (a) 9/7-Zigzag-8D and (c) 6/4-Bearded-12D heterojunctions. A topological interface state exists at the interface of (b) 9/7-Zigzag-8D and (d) 6/4-Bearded-12D heterojunctions. The topological interface states in 9/7-Zigzag-8D and 6/4-Bearded-12D heterojunctions are marked by the red dots in (a) and (c), respectively

Similarly, Fig. 2(d) illustrates a localized interface state of the 6/4-Bearded-12D heterojunction, due to the fact that the two GNR segments possess different topological phases. We also note that the energy of the topological interface state of the 6/4-Bearded-12D heterojunction corresponds to the HOMO, with a value of −118.3 eV, as indicated by the red dot in the energy spectrum in Fig. 2(c). By contrast, no localized interface states exist at GNR heterojunctions formed with two topologically equivalent GNR segments (9/7-Zigzag-8S and 6/4-Zigzag-12S).

4 Linear and nonlinear optical response

We next investigate the linear and nonlinear optical response of the AGNR heterojunctions composed of two GNRs that are topologically equivalent and inequivalent. We first consider the 9/7-Zigzag-8D and 9/7-Zigzag-8S heterojunctions. As discussed above, the 9/7-Zigzag-8D heterojunction has a topological state located at the interface separating its two topologically inequivalent AGNR segments, whereas no localized interface states exist in the 9/7-Zigzag-8S heterojunction. Additionally, the two AGNR heterojunctions have the same length and contain the same number of carbon atoms. Notice that, because its symmetry to reflection with respect to the \(x-z\) plane, the second-order nonlinear optical response of the 9/7-Zigzag-8D heterojunction is not allowed for y-polarized incident fields. Thus, we assume that the incident electric field is x-polarized. The results of the calculations for the linear polarizability and second- and third-order hyperpolarizabilities of 9/7-Zigzag-8D and 9/7-Zigzag-8S heterojunctions are summarized in Fig. 3 (see calculation details in Appendix B).

Figure 3
figure 3

Real and imaginary parts of [(a), (b)] linear polarizability, [(c), (d)] second-order, and [(e), (f)] third-order hyperpolarizabilities of 9/7-Zigzag-8D and 9/7-Zigzag-8S heterojunctions, respectively. The red (green) curves indicate the imaginary (real) part of the polarizabilities. The purple dots denote the resonance peaks. The wavelengths corresponding to the resonance peaks in (a, b), (c, d), and (e, f) are (1.698 um, 861 nm), (45.925 um, 3.397 um) and (33.513 um, 5.167 um), respectively. \(\alpha _{xx}\), \(\beta _{xxx}\) and \(\gamma _{xxxx}\) are the linear polarizability, and nonlinear hyperpolarizabilities corresponding to second-harmonic generation and third-harmonic generation, respectively. The polarizabilities are given in atomic units (a.u.) with \(e=\hbar =m_{e}=a_{0}=1\)

In Figs. 3(a) and 3(b), the real and imaginary parts of the linear polarizability spectra, \(\alpha _{xx}(\omega )\), of 9/7-Zigzag-8D and 9/7-Zigzag-8S heterojunctions are shown, respectively. Quantum plasmons exist when the peak of the imaginary parts of the polarizability occurs at a zero of the real part [36, 37, 43]. From Figs. 3(a) and 3(b), we can see that the first resonance frequency of quantum plasmon in the topologically nontrivial heterojunction is substantially smaller than that in the topologically trivial heterojunction. Specifically, the 9/7-Zigzag-8D and 9/7-Zigzag-8S heterojunctions have the first resonance peak located at 0.73 eV and 1.44 eV, respectively. This feature can be explained by the molecular orbital associated with its topological interface state participating in the transition. Thus, the first resonance peak in the linear polarizabilities of the 9/7-Zigzag-8D heterojunction is located at \({\hbar}\omega =0.73\text{ eV}\), which corresponds to the transition from the HOMO-1 state (which as discussed above is the topological state) to the LUMO+2.

Figures 3(c) and 3(d) show the real and imaginary parts of the second-order hyperpolarizability, \(\beta _{xxx}(2\omega )\), corresponding to the second-harmonic generation (SHG), of 9/7-Zigzag-8D and 9/7-Zigzag-8S heterojunctions, respectively. Remarkably, the SHG hyperpolarizability spectra of these two heterojunctions are significantly different. Firstly, it can be seen that \(\beta _{xxx}(2\omega )\) of topologically nontrivial 9/7-Zigzag-8D heterojunction is more than one order of magnitude larger than that of topologically trivial 9/7-Zigzag-8S heterojunction. Additionally, similar to the linear case, the resonance frequency of the second-order nonlinear plasmon of 9/7-Zigzag-8D heterojunction is red-shifted in comparison to that of 9/7-Zigzag-8S heterojunction. These two interesting characteristics of the topologically nontrivial 9/7-Zigzag-8D heterojunction can be ascribed to its topological interface state participating in the transitions. In particular, as shown in Fig. 3(c), the most pronounced peak in the spectrum of SHG hyperpolarizabilities of 9/7-Zigzag-8D heterojunction is located at \({\hbar}\omega =0.027\text{ eV}\), which corresponds to the transition from the HOMO-1, corresponding to the topological interface state, to the LUMO, indicating that the presence of the topological interface state can dramatically enhance the second-order nonlinear response of the 9/7-Zigzag-8D heterojunction and induce a red-shift of the resonance frequency of its quantum plasmons. More specifically, the optical response of GNR heterojunctions is related to transitions between different quantum states. When the topological interface states participate in the transition, the corresponding transition dipole moment dramatically enhanced, thus resulting in the enhancement of the optical response of GNR heterojunctions.

In Figs. 3(e) and 3(f), we show the spectra of the third-harmonic generation (THG) hyperpolarizability, \(\gamma _{xxxx}(3\omega )\), of 9/7-Zigzag-8D and 9/7-Zigzag-8S heterojunctions, respectively. Similar to the case of the second-order nonlinear optical response, due to the presence of the topological interface state, the THG of the topologically nontrivial 9/7-Zigzag-8D heterojunction is dramatically enhanced and its plasmon frequency is red-shifted. Interestingly, we find that the hyperpolarizability \(\gamma _{xxxx}(3\omega )\) of the topologically nontrivial 9/7-Zigzag-8D heterojunction is enhanced by more than two orders of magnitude in comparison to that of the topologically trivial 9/7-Zigzag-8S heterojunction.

We now consider the 6/4-Bearded-12D and 6/4-Zigzag-12S heterojunctions and use the DNQM approach to investigate their linear and nonlinear optical response, the corresponding results being summarized in Fig. 4. As explained above, the 6/4-Bearded-12D heterojunction possesses a topological interface state, while no topological interface states exist in the 6/4-Zigzag-12S heterojunction. The real and imaginary parts of linear polarizability, \(\alpha _{xx}(\omega )\), of 6/4-Bearded-12D and 6/4-Zigzag-12S heterojunctions are presented in Figs. 4(a) and 4(b), respectively. Again, due to the emergence of the topological interface state, the most pronounced peak in the spectrum of \(\alpha _{xx}(\omega )\) of 6/4-Bearded-12D heterojunction is significantly red-shifted in comparison to that of 6/4-Zigzag-12S heterojunction. The nonlinear hyperpolarizabilities associated with SHG (\(\beta _{xxx}(2 \omega )\)) and THG (\(\gamma _{xxxx}(3\omega )\)) are presented in Figs. 4(c,d) and 4(e,f), respectively, for the 6/4-Bearded-12D and 6/4-Zigzag-12S heterojunctions. Comparing these spectra, we can draw similar conclusions to those revealed by Fig. 3. More specifically, due to the existence of the topological interface state, both the SHG and THG hyperpolarizabilities of the 6/4-Bearded-12D heterojunction exceed by more than one order of magnitude those of the topologically trivial 6/4-Zigzag-12S heterojunction. Furthermore, the presence of topological interface states also leads to an obvious red-shift of the nonlinear plasmon frequency of 6/4-Bearded-12D heterojunction.

Figure 4
figure 4

Real and imaginary parts of [(a), (b)] linear, [(c), (d)] second-order, and [(e),(f)] third-order hyperpolarizability of 6/4-Bearded-12D and 6/4-Zigzag-12S heterojunctions. [(g), (h)] Evolution of the peak value of (g) SHG and (h) THG hyperpolarizabilities with the side length of 6/4-Bearded-12D (blue curves) and 6/4-Zigzag-12S (purple curves) heterojunctions, respectively. The red (green) curves indicate the imaginary (real) part of the hyperpolarizabilities. The purple dots denote the resonance peaks. The wavelengths corresponding to the resonance peaks in (a, b), (c, d), and (e, f) are (4.133 um, 731 nm), (8.857 um, 1.467 um) and (14.588 um, 2.214 um), respectively.

In Figs. 4(g) and 4(h), we present an overview of the dependence of the maximum SHG and THG hyperpolarizabilities on the side length of the 6/4-Bearded-12D and 6/4-Zigzag-12S heterojunctions, respectively. We can see that the SHG and THG hyperpolarizabilities of 6/4-Bearded-12D heterojunction that possesses a topological interface state are more than one order of magnitude larger than those of the topologically trivial 6/4-Zigzag-12S heterojunction of similar side length. As expected, the magnitudes of the SHG and THG hyperpolarizabilities of both 6/4-Bearded-12D and 6/4-Zigzag-12S heterojunctions increase with the increase of their side length. Interestingly enough, we note that the rate of the increase of the nonlinear hyperpolarizabilities with side length for the topologically nontrivial 6/4-Bearded-12D heterojunction is larger than that for the topologically trivial 6/4-Zigzag-12S heterojunction.

Finally, we focus on a more complex GNR heterojunction composed of an AGNR and a cove-edged GNR, as schematically shown in Figs. 5(a) and 5(b). Cove-edged GNRs have been recently synthesized by bottom-up process from precursor molecules [44]. Their topological properties are determined by the ribbon width, edge shape, and end termination [21]. Figures 5(a) and 5(b) present two heterojunctions consisting of a \(P=5\) cove-edged GNR with tilting angle of 30o (\(Z_{2}=1\)) and either a \(\mathrm{zigzag} ^{\prime}\)-terminationed \(W=7\) AGNR (\(Z_{2}=0\)) or a zigzag-terminated \(W=7\) AGNR (\(Z_{2}=1\)), which are denoted by 7AGNR/5cove-8D and 7AGNR/5cove-8S, respectively. Here, P denotes the number of zigzag chains forming the width of the cove-edged GNR. The two heterojunctions contain the same number of carbon atoms, \(N_{c}=256\). Again, by bulk-boundary correspondence principle, a topological interface state occurs for the 7AGNR/5cove-8D heterojunction and is localized at the interface between the two GNRs of distinct topology, as shown in Fig. 5(c). By contrast, for the 7AGNR/5cove-8S heterojunction comprised of two topologically equivalent GNRs, no localized interface states exist and the corresponding charge profile is extended throughout the heterojunction, as shown in Fig. 5(d).

Figure 5
figure 5

GNR heterojunctions formed with (a) a \(\mathrm{zigzag} ^{\prime}\)-terminationed \(W=7\) AGNR and a \(P=5\) cove-edged GNR and (b) a zigzag-terminated \(W=7\) AGNR and a \(P=5\) cove-edged GNR. The two GNR segments in (a) and (b) are topologically inequivalent and equivalent, respectively. Charge density distributions of (c) 7AGNR/5cove-8D and (d) 7AGNR/5cove-8S. Real and imaginary parts of [(e), (f)] linear polarizability and [(g), (h)] second-order, and [(i), (j)] third-order hyperpolarizability of 7AGNR/5cove-8D and 7AGNR/5cove-8S heterojunctions. The red (green) curves indicate the imaginary (real) part of the polarizabilities. The purple dots denote the resonance peaks. The wavelengths corresponding to the resonance peaks in (a, b), (c, d), and (e, f) are (1.378 um, 423 nm), (10.333 um, 5.277 um) and (26.105 um, 8.131 um), respectively.

We show in Figs. 5(e-j) the frequency dependence of linear polarizability, and SHG and THG hyperpolarizabilities of the 7AGNR/5cove-8D and 7AGNR/5cove-8S heterojunctions, respectively. As expected, due to the occurrence of the topological interface state, the resonance frequency of both the linear and nonlinear plasmons of 7AGNR/5cove-8D heterojunction is significantly red-shifted, as compared with that of 7AGNR/5cove-8S heterojunction. Furthermore, the magnitudes of the second- and third-order nonlinear hyperpolarizabilities of the topologically nontrivial 7AGNR/5cove-8D heterojunction are significantly larger than those of the topologically trivial 7AGNR/5cove-8D heterojunction, as indicted by the red dots in Figs. 5(g-j), respectively.

5 Conclusion

In conclusion, we have utilized the DNQM approach to investigate the optical response of GNR heterojunctions, comprising of two topologically equivalent or inequivalent ribbons. Our findings reveal a significant enhancement in the nonlinear optical response of GNR heterojunctions that possess topological interface states as compared to the trivial ones. Specifically, we have observed an increase in the third-order hyperpolarizabilities of GNR heterojunctions with topological interface states by over two orders of magnitude in comparison to those without such states, despite having the same number of carbon atoms. Moreover, due to the presence of topological interface states, the second-order hyperpolarizabilities of GNR heterojunctions with topologically distinct GNRs are over one order of magnitude larger than those of topologically trivial heterojunctions. Furthermore, we have noticed a large red-shift in the resonance frequency of quantum plasmons in GNR heterojunctions that contain topological states. Remarkably, these results were established for several heterojunctions with different configurations, which suggests that there is a general and deep connection between the existence of topological states and enhanced nonlinear optical response in GNRs and other photonic systems. From an applications point of view, our study shows that GNR heterojunctions with topological interface states could be used for nonlinear optical devices at the nanoscale, ultrasensitive detection and quantum nanophotonics.