Introduction

Superconducting and topological states are among the most fascinating quantum phenomena in nature. The entanglement of these two states in a solid material into a topological superconducting state will give rise to even more exotic quantum phenomena, such as Majorana fermions. Recently, much effort has been devoted to searching for topological superconductors (TSCs). The first way to realize a TSC phase is by the proximity effect via formation of a heterojunction between a topological material and a superconductor (SC).1,2,3 Cooper pairs can tunnel into a topological surface state (TSS), forming a localized state that hosts Majorana bound states at magnetic vortices,1,2,3 or into a spin-polarized TSS, leading to half-integer quantized conductance.4 Second, TSCs can be made by realizing superconductivity in a topological material5,6,7,8,9,10,11 or conversely by identifying the topological phase in a superconductor.12,13,14,15 Broadly speaking, it is preferred to work with one single material, because interfacing two materials may suffer from the interface reaction and lattice mismatch between a SC and a topological material. Regardless of which approach to create a TSC, however, a common challenge is that all the known TSCs to date have a very low transition temperature. For example, up to now, a few superconducting/topological heterostructures are realized with low critical temperature (Tc) ~ 4 K.3 The superconducting transition temperature induced by doping and/or pressurizing a few topological insulators has a Tc in the range of 4 ~ 9 K,5,6,7,8,9,10,11 while the Tc for some materials where topological and superconducting phases coexist is <7 K.12,13,14 High-temperature two-dimensional (2D) SC FeSe on a SrTiO3 substrate has recently been shown to also host a 2D topological insulating phase with hole doping, whereas its superconducting phases require electron doping.15

Here, we discover the existence of a topological phase in a conventional SC of MgB2 with a Tc of ~40 K, the highest transition temperature known for a bulk BCS SC. Based on first-principles calculations, we demonstrate a topological Dirac nodal line (DNL)16,17,18 structure in MgB2, exhibiting a unique combination of topological and superconducting properties. The characteristic 1D-dispersive DNL is shown to be protected by both spatial-inversion and time-reversal symmetry, which connects the electron and hole Dirac states. A topological surface band of the (010) surface of MgB2 shows a highly anisotropic band dispersion, crossing the Fermi level within the superconducting gap. The essential physics of the DNL structure in MgB2 is further analyzed by effective tight-binding (TB) models, and the effects of superconducting transition on thin films are also studied. Most importantly, Majorana edge mode, having protected chiral bands crossing zero energy, can be realized.

Results and discussion

MgB2 has the AlB2-type centrosymmetric crystal structure with the space group P6/mmm (191). As shown in Fig. 1a, it is a layered structure with alternating close-packed trigonal layers of Mg, while B layers form a primitive honeycomb lattice like graphene. The optimized lattice constants are a = 3.074 Å and c = 3.518 Å, which agree well with the experimental19,20 and other theoretical results.21,22 The first Brillouin zone (BZ) of bulk MgB2 and the projected surface BZ of the (010) plane are shown in Fig. 1b.

Fig. 1
figure 1

Crystal and electronic structure of MgB2. a Crystal structure of MgB2 with P6/mmm symmetry. b Bulk BZ and the projected BZ of the (010) and (001) surface with purple lines indicating the locations of cuts 1–4 for surface states in Fig. 2a. c π (B pz) and σ (B s, px,y) bonding character of boron sheet. d Band structure of MgB2 with the coded bonding character. The color gradient from purple to blue represents a varying contribution from σ bonding to π bonding of boron sheet. e Band structure along high-symmetry points which are located in the same plane as varying the kz value. f Dispersive Dirac nodal line structure along the K–H direction as indicated by a small cyan rectangle in b

To reveal the electronic and topological properties of MgB2, its electronic band structure is calculated with or without spin–orbit coupling (SOC) (see Supplementary Information). Figure 1c, d shows the dominant bonding character of the B sheet and the bulk band structure of MgB2 with SOC, respectively. The band structure exhibits linear dispersions at both K and H point. The resulting band structure can be easily understood in terms of the B sublattice. The bonding character of the bands in Fig. 1d is indicated by a color gradient. Dirac bands are derived from B pz states (π-bonding) like the graphene Dirac state and other three bands below Dirac bands are from B px,y states (σ-bonding).21 Mg s states are pushed up by the B pz orbitals and donate fully their electrons to the B-derived conduction bands. All bands from B s and p orbitals are highly dispersive, the bands from σ-bonding are more localized in a 2D B sheet (no dispersion along the z direction), while the Dirac bands are quite isotropic with high dispersion along the z direction. Substantial kz dispersion of the pz bands produces a Fermi surface that is approximately mirror reflected with respect to a plane between the kz = 0 [in units of 2π/c] and kz = 0.5 planes, with one pocket (electon-like) coming from the antibonding and the other (hole-like) from the bonding pz band.

Remarkably, the Dirac bands are also dispersive along the K–H directions, so that we have a dispersive Dirac–nodal-line structure (Fig. 1e, f). Figure 1e shows the band structure along the high-symmetry points that are located in the same plane as kz is varied. At kz = 0, there is a hole-doped Dirac band with a Dirac-point energy of 1.87 eV, while at kz = 0.5, there is an electron-doped Dirac band with a Dirac-point energy of −1.91 eV. As kz increases, the hole-doped Dirac state changes to the electron-doped Dirac state continuously, and the critical point is located at kzc = 0.218, where the carrier changes sign. Usually, SOC may open up gaps at the band crossing points; inversion and/or time-reversal symmetry is insufficient to protect the band crossings. But additional symmetry, like nonsymmorphic symmetry, can protect nodal points or lines. For MgB2, the Dirac nodal line is protected by crystal symmetry and SOC may introduce a small gap, leading to a topological insulating phase. However, the SOC strength of B is negligibly small (~μeV), even weaker than C and N. Consequently, the topological nodal line of MgB2 survives by a combination of inversion, time-reversal, and crystal symmetries, along with a weak SOC of B. We note that MgB2 also has a nodal chain structure23 among the conduction or valence bands (see Supplementary Information), but these states are located far from the Fermi level.

We define two independent topological Z2 indices denoted by ζ1 and ζ2,24 one on a closed loop wrapping around the nodal line and the other on a cylinder enclosing the whole line, respectively (Fig. S2). The expression of ζ1 is described by the Berry phase, \(\phi = {\oint}_C d\vec k \cdot \vec A(\vec k)\), as a line integral along a closed path

$$\zeta _1 = \frac{1}{\pi }{\oint}_C d\vec k \cdot \vec A(\vec k),$$
(1)

where \(\vec A(\vec k)\) is the Berry connection, \(\vec A(\vec k) = i\langle n|\nabla |n\rangle\). The simplest Hamiltonian near the K(K′) point for the Dirac nodal line of MgB2 is

$$h(\vec k) = v_F(k_x\sigma _x + k_y\sigma _y) + \alpha {\mathrm{cos}}(k_z)\sigma _0,$$
(2)

where σi are Pauli matrices. For any path in the (kx, ky)-plane that goes around the Dirac line, the index ζ1 is 1, which means the Dirac lines are stable against perturbations. For the topological invariant of the Dirac nodal line, one can calculate the index ζ2 using the flow of Wannier charge centers on a set of loops covering the enclosing manifold.25,26 For the DNL in MgB2, the index ζ2 is 0. But the nodal lines cannot shrink to a point, instead, they appear in pairs and can only be annihilated in pairs.27 Furthermore, the parities of energy states can be used to assign the Z2 topological invariants in topological Dirac nodal line semimetals. We found that MgB2 is characterized by weak Z2 indices28 (see Table S1).

To further reveal the topological nature of the Dirac–nodal-line–semimetal (DNLS) state in MgB2, we also calculate the surface states. The existence of TSSs and Fermi arcs is one of the most important signatures of DNLS. Figure 2 shows the calculated surface-state spectrum of Mg-terminated (010) MgB2 surface using an iterative Green’s function method. We calculated the band dispersions perpendicular to the \(\tilde \Gamma - {\tilde{\mathrm Z}}\) direction with four representative cuts at different ksy values in the surface BZ, whose momentum locations are indicated in Fig. 1b. As the bulk BZ is projected onto the (010) surface BZ, one can expect that the nodal line is located at ksx = 2/3 along the symmetry line between \(\tilde \Gamma \left( {{\tilde{\mathrm Z}}} \right)\) and \({\tilde{\mathrm X}}\left( { {\tilde{\mathrm U}}} \right)\). The TSSs of DNLS connect two gapless Dirac points, which are the surface projections of the nodal points in the nodal line (Fig. 2a). Interestingly, as ksy values increase, the type of bulk Dirac band is changed from the hole-doped to electron-doped. Accordingly, the TSSs connecting two Dirac points are also changed from hole to electron type. Moreover, these TSSs are quite anisotropic: the surface band dispersion is almost flat along the ksx direction, but highly dispersive along the ksy direction (Fig. 2a–c). The B-terminated surface states are shown in Fig. S3.

Fig. 2
figure 2

Surface states of the MgB2 (010) surface. a The projected density of state for Mg-terminated (010) surface along the cuts at ksy = 0, 0.15, 0.3, and 0.5 in 2D surface BZ as indicated in Fig. 1b, respectively. b The surface states along the \({\tilde{\mathrm X}} - {\tilde{\mathrm U}}\)- direction. c 3D schematic plot of the electronic surface band structure near two Dirac points. The gray planes indicate the momentum locations of cuts 1–4 in a. d Constant energy contours of Mg-terminated (010) surface at fixed energies EF = −0.5, 0, 0.5, and 1.0 eV. The red dots mark two pieces of Fermi arcs connecting the surface projection of bulk Dirac points

We now discuss the Fermi surface. The evolution of the Fermi surface is also obtained from the Green’s function method for different values of Fermi energy (EF) (Fig. 2d). The Fermi surface is composed of one Fermi arc, touching at two singularity points, where the surface projections of bulk Dirac points locate. The touching points which are indicated by red dots are also the jointed points between hole (h) and electron (e) pockets. As EF increases, the touching point is shifted from ksy = 0.5 [in units of 2π/c] to ksy = 0. Notably, we can observe the Fermi arc as long as EF is between −1.91 eV and 1.87 eV. Such a large energy window for observing the Fermi arc is a unique and a useful feature of dispersive DNL in MgB2. Interestingly, beyond the electronic DNL state in MgB2, phononic Weyl nodal lines and their nontrivial phononic arc states were also predicted in MgB2.29

The essential physics of the DNL structure in MgB2 is further characterized by an effective TB model using B pz orbital (see Supplementary Information), which gives a quite good description with density-functional theory (DFT) calculations (Fig. 3a). Given the DNL structure of MgB2, interesting features of quantum oscillation (the Shubnikov–de Hass or the de Haas–van Alphen effect) can be observed, to manifest the predicted nontrivial Berry phase.17 In graphene, such nonzero Berry phase has been confirmed.30,31 Similarly, the effective model of MgB2 exhibits a pseudospin vortex texture arising from the band-degeneracy point (Fig. 3b). We note that the pseudospin is actually independent of kz. One can clearly see the two inequivalent BZ corners (K and K′) having different topologies and being characterized with opposite Berry phases. To measure the nontrivial Berry phase via Landau-fan-type analysis, the electron orbits should enclose the vortex points in a magnetic field. Figure 3c shows the calculated Fermi surface at different energy levels. For an undoped system, the electron and hole extremum orbits in a magnetic field along the z direction at EF enclose the Γ point, giving rise to a zero Berry phase. However, for a doped system, the Fermi surface topology changes for different doping levels. At EF = +1 eV (EF = −1.2 eV), the hole (electron) extremum orbit encloses the vortex point to enable a nonzero Berry phase (Fig. 3b, c). There are three different (energy) ranges of doping characterized with different Berry phases. If EF locates at 0.29 eV < EF < 3.25 eV (−3.48 eV < EF < −1.17 eV), the hole (electron) extremum orbit encloses the vortex point for a nonzero Berry phase. For −1.17 eV < EF < 0.29 eV, the electron (hole) extremum orbit excludes the vortex point having the zero Berry phase. Thus, to observe the nonzero Berry phase, electron or hole doping is needed. It is known that for MgB2, the Mg atoms can be substituted by Al to form Mg1−xAlxB2, and B can be substituted by C to form Mg(B1−yCy)2,32,33,34 to achieve electron doping. Using the rigid band and virtual crystal approximation, we have calculated the alloy band structures, which confirm an upward shifting of EF due to electron doping (Fig. S4). The nontrivial Berry phase can be measured with a doping concentration of x > 0.17 or y > 0.07. Moreover, the biaxial compressive strain also induces electron doping in MgB2 (Fig. S5).

Fig. 3
figure 3

Effective model of dispersive DNL of MgB2 and Berry phase analysis. a The calculated band structure of an effective model (red lines) using B pz orbitals with parameters t = 1.50 eV and tz = 0.954 eV with DFT band structure. b The pseudospin texture with the corresponding valence energies. The arrows represent the pseudospin. The color gradient from red to blue represents energies of valence states. The blue and red dashed circles correspond to the electron and hole extremum orbits in a magnetic field (B) along the z direction at EF = 0 eV. The blue and red solid circle correspond to the electron and hole extremum orbits at EF = +1.0 eV. c The Fermi surfaces for EF = −1.2 eV, EF = 0 eV, and EF = +1.0 eV, respectively. The electron (hole) Fermi surfaces are indicated by blue (red) isosurfaces. The extremum orbits are indicated by a dashed line (solid line) for EF = 0 eV (EF = +1.0 eV)

On the one hand, our discovery of a topological state in MgB2 might not appear surprising from the theoretical point of view, because of its similarity (the B hexagonal plane) to graphene/graphite. On the other hand, it is quite surprising from the experimental perspective, considering the fact that MgB2 has been studied for over decades, but none of the experiments have detected any topological signature. This is because there are some fundamental differences between MgB2 and graphene/graphite-based systems as we have revealed here. In particular, we show that in order to detect the topological signatures in MgB2, one has to do experiments differently from before, e.g., by measuring angle-resolved photoemission spectroscopy on the (001) instead of commonly used (111) surface and magnetoresistance in the doped sample instead of the intrinsic one. However, our most important discovery is possibly the topological superconducting state in MgB2 as we discuss below.

We now consider the superconducting effect on DNLS. MgB2 is a conventional BCS superconductor with two superconducting gaps, Δσ and Δπ, which arise from the σ and π bands of the B electrons, respectively. The magnitude of the energy gap ranges from 1.5 to 3.5 meV for the π band and 5.5 to 8 meV for the σ band.35,36,37,38,39,40,41 The strong electron–phonon coupling is known in MgB2, as reflected by strong electron-pair formation of the σ-bonding states. Because the charge distribution of the σ-bonding states is not symmetrical with respect to the in-plane positions of boron atoms, the σ-bonding states couple very strongly to the in-plane vibration of boron atoms.37 On the other hand, the π-bonding states, which are related with DNLs, form weaker pairs. However, this pairing is enhanced by the coupling to the σ-bonding states. Due to the coupling between π and σ states, π and σ gaps vanish at the same transition temperature Tc ~ 39 K, although their values are greatly different at low temperatures. Since the DNL in MgB2 originates from the π band, we first consider the superconducting gap for the π band. But the promising TSC usually requires a spin-triplet (odd-parity) pairing state. For the bulk DNL with superconductivity, there is no spectral density in the s-wave superconducting gap (Fig. S6). In general, it is hard to realize the TSC phase using a bulk state.

To realize the TSC state, we now focused on the MgB2 thin films. It was predicted that the MgB2 thin films are mechanically stable and could be grown owing to the self-doping effect.42 Furthermore, few-monolayer MgB2 has already been synthesized experimentally on some substrates.43,44,45,46 Figure 4 shows the band structure of MgB2 (001) thin films. The dispersive DNL structure is projected onto a point and presented a formation of multiple Dirac states. These apparent Dirac states are also present in the surface bands for the two types of surface. The π states of the boron layer at the B-terminated (Mg-terminated) surface are indicated by red (blue) color. The Dirac state of the B-terminated surface shows hole type, while the Mg-terminated surface shows electron type. One can see that the Dirac state of the B-terminated surface behaves independently. Moreover, the s-wave and multiple-gap superconductivity in MgB2 thin films is retained up to a high critical temperature of 20–50 K.47,48 Taking advantage of these unique features of thin films, we can realize a 2D TSC state.

Fig. 4
figure 4

Electronic structure of MgB2 (001) thin films. ad Calculated band structures of one, two, three, and four layers of MgB2 (001) thin films, respectively. The red (blue) color represents the π state of the boron layer at the B-terminated (Mg-terminated) surface

Conventional s-wave superconductivity has been utilized to generate TSCs via proximity to some materials.49 The Dirac state in the boron layer of the B-terminated surface can be considered as the effective 2D hexagonal lattice model. To realize Majorana fermions with the s-wave superconducting gap, we consider a hexagonal lattice TSC based on a model of boron layer with Rashba SOC and exchange field. The corresponding TB Hamiltonian is given by

$$\begin{array}{*{20}{l}} H \hfill & = \hfill & - {t\mathop {\sum}\limits_{\langle i,j\rangle \alpha } {c_{i\alpha }^\dagger } c_{j\alpha } + i\lambda _R\mathop {\sum}\limits_{\langle i,j\rangle \alpha \beta } {({\boldsymbol{\sigma }}_{\alpha \beta } \times {\mathbf{d}}_{i,j})_z} c_{i\alpha }^{\dagger} c_{j\beta }} \hfill \\ {} \hfill & {} \hfill & +\, {V_z\mathop {\sum}\limits_{i\alpha } {c_{i\alpha }^\dagger } \sigma _zc_{i\alpha } + {\mathrm{\Delta }}_\pi \mathop {\sum}\limits_i {(c_{i \uparrow }^{\dagger} c_{i \downarrow }^{\dagger} + {\mathrm{H}}.{\mathrm{c}}.)} - \mu \mathop {\sum}\limits_{i\alpha } {c_{i\alpha }^\dagger } c_{i\alpha },} \hfill \end{array}$$
(3)

where \(c_{i\alpha }^\dagger (c_{ia})\) is the creation (annihilation) operator on site i with spin α, and σ are the Pauli matrices. The 〈i, j〉 represents the nearest-neighboring (NN) sites. The first term is the NN hopping term in the boron layer. The second term is the Rashba SOC arising from a perpendicular electric field to the B layer adjacent to a substrate, with λR and di,j representing the coupling strength and a unit vector from site j to site i, respectively. The Vzπ) in the third (fourth) term corresponds to the exchange field (superconducting gap of the π band). The μ in the last term is chemical potential. We can transform the Hamiltonian of Eq. (3) to the Bogoliubov–de Gennes (BdG) Hamiltonian HBdG in the momentum space (see Supplementary Information).

If neglecting the Rashba and exchange field term, the system is topologically trivial with a s-wave superconducting gap, which is the same as the bulk DNL state. As expected, the superconducting gap mixes the Dirac states, resulting in the disappearance of gapless edge modes. When the Rashba and exchange field are turned on, spin-up and spin-down bands are split and mixed. The 2D BdG Hamiltonian with a broken time-reversal symmetry belongs to the topological class D,50 which is characterized by an integer number. The Chern number C1 can be calculated by51

$$C_1 = \frac{1}{{2\pi }}{\int\nolimits_{\mathrm{BZ}}} {d^2} \vec kf_{xy}(\vec k),$$
(4)

where \(f_{xy}(\vec k)\) is the Berry curvature

$$f_{xy}(\vec k) = i\mathop {\sum}\limits_{m,n} {(f_m - f_n)} \frac{{u_{m\vec k}^{\dagger} \partial _{k_{x}}H_{{\mathrm{BdG}}}u_{n\vec k}u_{n\vec k}^{\dagger} \partial _{k_{y}}H_{{\mathrm{BdG}}}u_{m\vec k}}}{{(E_{m\vec k} - E_{n\vec k})^2}}.$$
(5)

Here, \(u_{m\vec k}\left( {E_{m\vec k}} \right)\) is the mth eigenvector (eigenvalue) of HBdG; fm is Fermi occupation factor. Interestingly, we found that the boron layer of MgB2 thin film is topologically nontrivial in the case of |Vz| ≥ |Δπ| with the Chern number C1 = 4. We note that this criterion does not depend on the value of the Rashba coupling. Figure 5a shows the calculated energy spectrum of BdG Hamiltonian near the crossing points with different Vz values. We have chosen the pairing Δπ as 3 meV, similar to the experimental s-wave gap in MgB2. For a pristine hexagonal boron layer, the Dirac bands appear at the \(\overline {\mathrm{K}}\) and \(\overline {{\mathrm{K}}^\prime }\) points, respectively. If the exchange and Rashba SOC interactions are considered, the trivial s-wave superconducting gap near the Dirac point turns into a topological gap. As the magnetic exchange field Vz increases, the topological gap increases. Further, we study the topological phase diagram as shown in Fig. 5b. The bandgap (Eg) is calculated in the (kx, ky)-plane. The phase boundary between the normal SC and TSC is determined by the dashed curves, i.e., Vz = Δπ. To visualize the formation of TSSs within the superconducting gap, we calculated the Majorana edge states with a semiinfinite boron sheet. Figure 5c, d shows the energy spectra of the zigzag edge near the \(\overline {\mathrm{K}}\) and \(\overline {{\mathrm{K}}^\prime }\) points. We found that there exist two zero-energy states in each valley with the same propagation direction (vF < 0), which is in agreement with C1 = 4. This indicates that these zero-energy states are topologically protected Majorana edge states. An armchair edge also exhibits four protected bands crossing zero energy (Fig. S8).

Fig. 5
figure 5

The topological edge mode of the MgB2 thin films. a The calculated band structure of the BdG Hamiltonian with parameters t = 1.5 eV, μ = 0 eV, Δπ = 3 meV, λR = 4 meV, Vz = 6 meV (left), and Vz = 12 meV (right), respectively. b Topological phase diagram in the parameter space of λR and Vz. The color indicates the bandgap (Eg) in the (kx, ky)-plane at kz = 0.25. The band structure parameters for a are marked by the dot. The dashed line is the boundary between normal SC and TSC. c, d The calculated edge spectra for the zigzag edge of the semiinfinite boron sheet with parameters in a, respectively

Finally, we address the experimental feasibility of the TSC from a quantum anomalous Hall (QAH) phase of graphene having a similar structural system with the boron layer. Graphene on the magnetic insulator, such as BiFeO3,52 RbMnCl3,53 and Cr2Ge2Te6,54 can have an exchange field (Vz ~ 70–240 meV) and Rashba SOC (λR ~ 1–4 meV), realizing the QAH state. We suggest that MgB2 thin films be epitaxially grown on these magnetic substrates, and the exchange field and Rashba SOC can be induced in the boron layer adjacent to the substrate. Since the MgB2 thin films naturally have s-wave superconductivity, the MgB2 thin films are expected to become TSC with the induced exchange field (Vz ≥ Δπ) and Rashba SOC.

In summary, based on first-principles calculations and model analysis, an intriguing inversion and time-reversal symmetry- protected Dirac nodal line state is revealed in a high-temperature superconductor MgB2. Our finding provokes an exciting opportunity to study a topological superconducting phase in an unprecedented high temperature and may offer a promising material platform to building novel quantum and spintronics devices. It will stimulate future studies of topological phases in a broader range of superconducting materials, such as a honeycomb lattice layered structure.

Methods

We performed first-principles calculations within the framework of density-functional theory (DFT) using the Perdew–Burke–Ernzerhof-type generalized gradient approximation (GGA) for the exchange-correlation functional, as implemented in the Vienna ab initio simulation package.55,56 All the calculations are carried out using the kinetic energy cutoff of 500 eV on a 12 × 12 × 12 Monkhorst–Pack k-point mesh. All structures are fully optimized until the residual forces are less than 0.01 eV/Å. The SOC is included in the self-consistent electronic structure calculation. We construct Wannier representations by projecting the Bloch states from the first-principles calculation of bulk materials onto Mg s and B s, p orbitals.57 Based on Wannier representations, we further calculate the surface density of states and Fermi surface using the surface Green’s function method for the (010) surface of a semiinfinite system.58,59