Introduction

Interfacing materials with radically different properties is a viable route to discover new physical phenomena and create new functionalities going beyond those hosted by each one of the building blocks1,2,3. In this context, the interface between a superconductor and a magnet is one of the most remarkable examples4. These ordered phases have been for a very long time thought to be mutually exclusive5,6,7. However, over the last decade, it has been experimentally demonstrated that under the right conditions, at a superconductor–magnetic interface both superconductivity and spin polarization can coexist creating new states such as Majorana modes8,9 and spin-triplet Cooper pairs10,11, both offering tantalizing opportunities for radically new technologies. Accelerating the progress in the field crucially relies on identifying, understanding, and controlling the interaction between superconducting condensates and magnetic order. In this context, indirect magnetic coupling, i.e., the coupling of magnetic moments mediated via the superconducting condensate, occupies a central role. In conventional metals, the polarized spins of conduction electrons can create such links called Ruderman–Kittel–Kasuya–Yosida (RKKY) interactions12,13,14. Their study proved to be essential to the development of spin-valve and tunneling magnetoresistance devices, through spin-engineered and especially synthetic antiferromagnet heterostructures that have had a tremendous impact on the exponential increase in magnetic storage data capacity15,16,17. With the advancements in scanning tunneling microscopy (STM) and spectroscopy (STS) techniques, it became possible to scrutinize RKKY interactions on the nanometer scale by manipulation of magnetic adatoms on a metal substrate18, thereby creating atomically precise spatial maps of the coupling strength up to 1.5 nm between the atoms19,20,21.

In superconducting condensates, it was theoretically predicted that besides the RKKY interactions, the additional longer-range spin coupling can be enabled by Cooper pairs with an exponential decay over the superconducting coherence length and which can dominate over conventional RKKY even at distances significantly smaller than the coherence length22,23. Despite their relevance for both fundamental aspects as well for their far-reaching implications for the design and creation of nontrivial magneto-superconducting states of matter, the indirect coupling between local magnetic moments mediated by superconducting condensates remains largely unexplored.

Here, we combine atomic manipulation techniques with high-resolution spectroscopy to investigate the emergence of superconducting condensate-mediated coupling between magnetic moments at the atomic scale. By systematically sensing the interaction between localized spins placed at different distances and along distinct crystallographic directions, we demonstrate that: (i) local spins can talk at large distances, up to several lattice constants, (ii) the use of a superconductor hosting a highly anisotropic Fermi surface allows to precisely tune the interaction depending on the crystallographic direction, and (iii) the possibility to tailor not only the strength, but also the sign of the energy shift induced by the interaction, and to use it to controllably cross the quantum phase transition (QPT). The latter is obtained in two distinct ways: by changing the crystallographic direction and/or the distance between magnetic impurities. A direct comparison with interactions mediated by conventional conduction electrons confirms the high anisotropy of the coupling and the existence of longer-range effects in the superconducting regime. Our findings project a plethora of opportunities for highly controllable magneto-superconducting interactions that can be extended to more complex systems.

Results

Experimental lineup. Figure 1a schematically illustrates how local magnetic moments can couple through a superconducting condensate. An isolated magnetic adatom (upper panel) induces the so-called Yu–Shiba–Rusinov (YSR) quasi-particle state24,25,26,27 characterized by a spatially decaying wave function28,29,30,31,32. When a second magnetic atom is brought close enough (middle panel), the local spins start coupling to each other, with the interaction being mediated by the substrate. By progressively reducing their distance (bottom panel), the direct magnetic exchange becomes stronger and finally prevails over substrate-mediated interactions.

Fig. 1: Experimental lineup.
figure 1

a Schematic illustration of coupling between local spins. Top: a single Cr magnetic moment interacts with the superconducting condensate and breaks locally Cooper pairs leading to the observed in-gap states. The YSR wave function spatially decays away from the impurity. Center: a second Cr atom is dragged closer by the STM tip. The YSR wave functions overlap leads to a detectable coupling. Bottom: two Cr atoms in next-nearest-neighbor position. b Topographic image of the surface area used for the experiment showing Cr adatoms on the Nb(110) surface. Arrows indicate the crystallographic directions. Scan parameters: −5 mV; 500 pA. Inset: atomically resolved image of the clean Nb surface. Scan parameters: 5 mV; 5 nA. c Scanning tunneling spectra acquired with a Nb tip on clean Nb (black) and on top of an isolated Cr atom (green). Dashed lines indicate the superconducting gap size of the tip ∆tip and sample ∆sample. p+ and p− correspond to the intensity of the YSR pair, while δ quantifies their spectral weight asymmetry.

Overall, this is expected to result in a rich-phase diagram where both the sign and the strength of the interactions can be tuned on demand by controllably acting on the distance between adatoms and crystallographic directions, as proposed in refs. 33,34.

As a prototypical system to scrutinize these aspects, we focus on Cr adatoms deposited on the (110) surface of Nb (see “Methods” for details on sample preparation). Niobium offers several advantages35,36,37. Its wide superconducting gap (2∆ = 3.05 meV with Tc = 9.2 K) allows to spectroscopically disentangle low-energy magnetic signatures from thermal broadening effects. Moreover, contrary to other superconductors such as Pb, its high cohesive energy makes it suitable for single-atom manipulation techniques35,36,38. Finally, its highly anisotropic Fermi surface39 (see also Fig. 2c) allows us to investigate the emergence of directional-dependent coupling between magnetic moments, which is expected to enhance the tunability.

Fig. 2: Directional dependence.
figure 2

a STS spectra taken on atom A for different positions of atom B. STS on the isolated reference atom is shown in gray. Curves are vertically shifted for clarity. Insets: topography images 2 × 2 nm of the corresponding Cr dimers. b Maximum intensity of the in-gap peaks in the positive (red) and negative (blue) energies with respect to the Fermi level as a function of the dimer angle where 0° means parallel to the \(\left[1\bar{1}0\right]\) direction. Transfer of spectral weight between positive and negative energies with highlighted quantum phase transition. c Fermi surface of Nb(110) surface.

Figure 1b shows a clean Nb area with the inset corresponding to the atomically resolved lattice. Only two Cr adatoms are present in the area, referred to as atoms A and B. As described in the following, this allows to detect their interaction ruling out spurious effects such as impurities or the influence of other adatoms in the nearby.

Figure 1c reports the STS spectrum acquired by positioning the tip on top of an isolated Cr atom (green line) and over the bare superconductor (black line). A Nb terminated tip has been used to enhance the energy resolution, resulting in the typical convoluted spectrum of tip and sample superconducting energy gap, ∆tip and ∆sample (see Supplementary Note 1). A rich spectroscopic scenario is visible for the Cr adatom, with several peaks emerging within the superconducting gap. These peaks are direct fingerprints of magnetic impurity–superconductor interactions, with magnetic moments locally breaking Cooper pairs40 and inducing the YSR quasi-particle resonances residing inside the superconducting energy gap24,25,26,27. YSR states always appear in pairs that are energetically particle–hole symmetric with respect to the Fermi level, with the energy position EYSR being determined by the coupling strength between the magnetic impurity and the superconducting condensate. Their orbital character can be visualized by spatially mapping their wave function distribution as shown in Supplementary Note 241,42.

The YSR pairs are generally characterized by a strong spectral weight asymmetry, the higher intensity in the occupied or unoccupied states being directly linked to a spin-screened and free-spin ground state, respectively. The crossing of YSR pairs through zero marks a first-order quantum phase transition (QPT) between the two different regimes43,44,45,46. In the present case, the \({{{\rm{d}}}_{z^{2}}}\)-derived YSR state dominates the scene, showing a significant spectral weight asymmetry δ with higher intensity below the Fermi level (see Fig. 1). Note that the dz2-derived YSR pair is very close to zero energy (±∆tip in our case because of the use of superconducting tips). For strong interactions, occurring for adatoms placed at short distances, electron and hole components of the YSR pair can significantly shift becoming well-separated. The resulting energy shift ∆EYSR can be directly evaluated based on the shift of their peak position with respect to the single adatom case. However, when the distance between the adatoms is increased, their interaction and consequently ∆EYSR become progressively weaker. In such a regime, any small energy shift ∆EYSR results in a substantial transfer of spectral weight between the positive (E  + ∆tip) and the negative (E  − ∆tip) peak. The change in peak height ∆δ(r) as function of the interatomic distance r can thus be directly linked to the energy shift of the YSR pairs, i.e., ∆δ(r) EYSR (see Supplementary Note 4), offering a very sensitive measurement protocol to sense both the strength as well as the sign of the shift induced by the interaction between magnetic adatoms once YSR pairs are close to the QPT. These two different regimes are analyzed in Figs. 2 and  3, respectively.

Fig. 3: Distance dependence of the YSR energy spectrum.
figure 3

ac STS taken on atom A subtracted by the signal on the isolated Cr atom. Spectra are shown for three different directions and several distances, the number in each panel corresponding to the number of discrete steps. df In-gap peak maximum for positive (red) and negative (blue) energies as a function of the distance between the adatoms. The dashed lines show the isolated atom intensities. Red shaded areas highlight the occurrence of a quantum phase transition from a free-spin to a screened-spin regime. g Comparison of spectral weight redistribution δ along distinct directions and at different distances. Zero corresponds to the isolated adatom case. h First-principles calculations of the shift of the YSR energies of the z2-derived orbital with respect to the single adatom YSR energies. The black dot illustrates the fixed atom A, while the colored positions represent atom B and therefore the formed dimer configuration. Adsorption site positions on the Nb lattice correspond to the cases measured experimentally. The color code indicates the calculated shift in YSR energy for the respective Cr dimers.

Directional dependence of short distant coupled spins

Figure 2 compares Cr dimers aligned along five different directions while keeping them at a small distance, i.e., below 1 nm. Note that none of the cases corresponds to the first neighbor configuration. The corresponding dI/dU signals are shown in Fig. 2a. The spectrum obtained on an isolated Cr adatom is provided as a reference (gray line). While the [001] direction (90°) shows a negative energy shift compared to the single adatom case, all other directions are characterized by a positive shift, in agreement with our theoretical calculations (see below). Coupled YSR states are also characterized by a distinct spatial distribution compared to the isolated adatom case, as illustrated in Supplementary Note 3.

Figure 2b allows us to analyze these aspects more into details by showing the evolution of spectral intensity for the YSR pair dominating the scene within the superconducting gap (see Fig. 1b). A significant transfer of spectral weight from hole- (red line) to electron-like (blue line) YSR states is visible by progressively increasing the angle between substrate and magnetic dimers. At specific angles, the lines are crossing each other, revealing the occurrence of a quantum phase transition from a free-spin (0°, direction \(\left[1\bar{1}0\right]\)) into a screen-spin regime (90°, direction [001]). These results demonstrate the existence of highly anisotropic coupling between the magnetic impurities. The signature of the anisotropy of the substrate electronic structure can be grasped from the Fermi surface as calculated from ab-initio (see “Methods”) and illustrated in Fig. 2c. These effects are found to be remarkably strong: they allow to tune not only the strength but also the sign of energy shift induced by the adatom-adatom interaction by properly acting on the crystallographic direction.

Distance and directional dependence of indirectly coupled spins. To investigate the evolution of the interaction over larger distances, we performed a distance-dependence study of the coupling between local spins along three distinct crystallographic directions, i.e., [001], \(\left[1\bar{1}1\right]\,\) and \(\left[1\bar{1}0\right]\). The distance between two atoms has been progressively increased step-by-step, with each step being defined by the smallest possible vector compatible with the underlying lattice periodicity, i.e., the vector connecting two subsequent adsorption sites.

Figure 3a–c reports the spectra obtained for each configuration of the adatoms subtracted by the spectrum obtained on the isolated atom (reference spectra are reported in Supplementary Note 5). This procedure allows to detect and quantitatively analyze the effects induced by the coupling (see Supplementary Note 4). In line with expectations, our data reveal that the coupling becomes progressively stronger by reducing the distance between the adatoms. However, as described in the following, the coupling is found to persist at distances significantly larger than those observed in metallic systems19,20,21. Interestingly, the data obtained at larger distances reveal also that the decay length of the interaction is highly anisotropic. While along the [001] and \(\left[1\bar{1}1\right]\) direction a clear coupling between the magnetic adatoms can be detected up to distances of ~4 nm, the interaction decays much faster along the \(\left[1\bar{1}0\right]\,\) direction, where the interaction is strongly suppressed already at ~1.4 nm. The different crystallographic direction behavior can be traced back to the anisotropy of the Fermi surface. Good nesting vectors between flat parts of the Fermi surface can have a focusing effect on the wave function of quasi particles, significantly enhancing the coupling strength over larger distances47,48,49. Although the Fermi surface is rather complex in the present case, good nesting conditions are expected to manifest along the [001] direction, in line with our experimental observations (see Fig. 2c).

A careful inspection of Fig. 3 additionally reveals the existence of an oscillatory behavior of the coupling strength which is superimposed to the decay. This is clearly visible along the [001] and \(\left[1\bar{1}1\right]\,\) directions, while it becomes more subtle along the \(\left[1\bar{1}0\right]\) direction.

These oscillations are further highlighted in Fig. 3d, e, where the in-gap peak intensities are plotted separately for negative and positive energies. The comparison between electron- and hole-like states clearly reveal that their distance-dependence trends are anticorrelated. This observation confirms the transfer of spectral weight within the YSR pair. Note that a distance-dependent quantum phase transition from a free-spin to a screened-spin regime takes place along all directions, highlighted by a red cloud in Fig. 3d, e.

Figure 3g directly compares the change of the peaks asymmetry with respect to the isolated adatom ∆δ as a function of the atom separation r. Positive and negative values correspond to a shift ∆EYSR to positive and negative energies, respectively. Although the spatial resolution imposed by the lattice impedes a high sampling rate, the curves suggest a similar oscillation period for the different directions (see Supplementary Notes 6 and 7). To explore the origin of the observed behavior, we calculated the change of the YSR energy of the z2-derived orbital of the dimer atoms with respect to the YSR energy of the isolated adatom, ∆EYSR, using first principles and an effective Hamiltonian construction (see “Methods” and Supplementary Notes 8 and 9), which is shown in Fig. 3h using a spatial map for all discussed dimer configurations. In good agreement with the experimental observations, the energy shift is strongest for the next-nearest-neighbor dimers along the two high-symmetry directions [001] and \(\left[1\bar{1}0\right]\) and significantly weaker for the directions in between. The simulations also shed light on the fundamental physical origins determining the strength of the YSR energy shifts: (i) the nature of the magnetic coupling begin ferromagnetic or anti-ferromagnetic, (ii) the strength of the direct electronic coupling between the dimer atoms, and (iii) the strength of the indirect superconductor-mediated electronic and magnetic coupling between the dimer atoms. Analytic model calculations based on a simplified Alexander–Anderson model50 (see Supplementary Note 9) predict distinct shifts of the YSR energies depending on ferromagnetic or anti-ferromagnetic interactions. These results from the influence of the magnetic coupling on the formation of the electronic bonding and anti-bonding states51,52. However, spin–orbit coupling can lift this degeneracy resulting in split YSR states also for AFM coupled spins, as shown in ref. 53 and Supplementary Note 3. The more advanced theoretical model based on ab-initio parameters (leading to Fig. 3h) demonstrates that the sign of the energy shift and the occurrence of a QPT cannot be trivially linked to the sign of the magnetic exchange interaction. In agreement with our theoretical calculations reported in Fig. 3h, the experimentally scrutinized magnetic structures reported in Supplementary Note 10 are indicative of ferromagnetic order for adatoms coupled along the \(\left[1\bar{1}1\right]\) direction at the next-nearest-neighbor distance, while those oriented along [001] and \(\left[1\bar{1}0\right]\) both show antiferromagnetically coupled adatoms, despite being characterized by opposite energy shift of the YSR pairs, as correctly captured in our calculations reported in Fig. 3h.

Indirect coupling between spins in the metallic regime

To corroborate our findings, we compare the coupling between adatoms in the superconducting regime with the one observed when the interaction is mediated by conventional conduction electrons. To this end, the substrate has been driven into the metallic regime by applying a magnetic field of 1 T perpendicular to the sample surface. As described in the following, this allows to confirm the existence of highly anisotropic indirect interactions as well as to highlight to the existence of a distinct contribution to the magnetic coupling which originates from the superconducting condensate.

Figure 4a–c reports the spectra acquired over the Cr adatoms by progressively changing their relative distance along each one of the three distinct directions scrutinized in the superconducting regime, i.e., [001], \(\left[1\bar{1}1\right]\), and \(\left[1\bar{1}0\right]\). All spectra are overlapped to a reference spectrum obtained for an isolated Cr atom (gray line). The spectrum of the Cr single adatom is characterized by a sharp step-like signature at the Fermi level which has recently been demonstrated being directly linked to its magnetic ground state37. Changes in this spectral shape can thus be used to reveal the existence of magnetic interactions between the adatoms.

Fig. 4: Spectroscopy in the metallic regime.
figure 4

ac dI/dU signals over atom A with increas- ing distance of atom B starting with step 1 at next-nearest-neighbor positions for three different crystallographic directions. The signal of the isolated Cr adatom is shown in gray for each spectrum as a reference. An external out of plane magnetic field of 1 T was applied to fully suppress superconductivity. Stabilization parameters: −10 mV; 3 nA. Insets: topographic images of the corresponding dimer shown in equal scale.

The direct comparison of the spectra acquired along the three distinct directions when adatoms are at the closest distance (step 1 in Fig. 4a–c) confirms the existence of a highly anisotropic indirect interaction. This effect can be effectively visualized by comparing the gray areas in panels (a–c), which highlight the crystallographic direction-dependent changes with respect to the single adatom case. The largest spectral change is observed along the [001] direction. Along this direction, the step-like feature characteristic of the single adatom is significantly suppressed and broadened, signaling a strong magnetic interaction between the adatoms. The spectral change is weaker along the \(\left[1\bar{1}1\right]\) direction and it becomes almost negligible along the \(\left[1\bar{1}0\right]\,\) direction. Note that the distance between the adatoms is smaller along the \(\left[1\bar{1}1\right]\) direction (r = 0.57 nm) compared to the [001] direction (r = 0.66 nm). If the effect would be distance-dependent, the spectral change along the \(\left[1\bar{1}1\right]\) direction should be stronger than the one along the [001] direction. Our data clearly reveal the opposite. This allows to identify the highly anisotropic Fermi surface as the origin of the anisotropic coupling, supporting the conclusions drawn from the analysis of the superconducting regime.

Finally, we investigate the distance-dependence behavior of conduction electrons-mediated interactions. Figure 4a–c evidence that along the [001] direction, where the interaction at short distances is the strongest, the spectrum is perfectly overlapping the isolated adatom case already at r = 1.32 nm. A slower decay is observed along the \(\left[1\bar{1}1\right]\) direction, where the difference with respect to the isolated adatom case shows an oscillatory on-off behavior depending on the odd or even number of steps between the adatoms, respectively. An oscillatory behavior along this crystallographic direction was also revealed in the superconducting regime (see Fig. 3e, g). Finally, along the \(\left[1\bar{1}0\right]\,\) direction, the difference with respect to the single adatom vanishes already at step 2, an observation in line with the very rapid spatial decay of the interaction between magnetic moments observed also in the superconducting regime. The decay length in the metallic regime is in line with earlier STM studies on other metallic systems19,20,21 and significantly faster than the one observed in the superconducting regime, where interactions between adatoms could be detected up to 4 nm (see Supplementary Notes 6 and 7). All together, these observations could be originating from the decisive role of the superconducting condensate in mediating interactions over long distances, an effect predicted decades ago but which always escaped experimental verification.

Discussion

In conclusion, we demonstrated the emergence of long-range, crystallographic direction-dependent, and highly tunable superconducting condensate-mediated coupling between local spins. We could directly link the strong crystallographic direction dependence of the coupling to the highly anisotropic Fermi surface, which can be used to controllably cross the QPT between screen-spin and free-spin regime by changing the alignment of the atom pair with respect to the underlying lattice with atomic precision. Longer-range coupling effects between magnetic impurities can be observed along the [001] and \(\left[1\bar{1}1\right]\) directions compared to \(\left[1\bar{1}0\right]\), an enhancement which is potentially enabled by the optimal Fermi surface nesting conditions significantly strengthening substrate-mediated magnetic interactions. Our results unveil, in an extremely simple material platform, the existence of a very rich-phase diagram which can be used for tuning magnetic interactions mediated by superconducting condensates on demand. The simultaneous fulfilling of the following requirements: (i) magnetic impurities hosting deep YSR states, (ii) indirect coupling between adatoms taking place at large distances, and (iii) the possibility to cross the QPT upon hybridization54, create ideal conditions for experimentally scrutinizing the emergence of topologically superconductivity in dilute spin systems55 going beyond the nearest neighbors and ferromagnetically coupled spin chains explored so far8,9,56. We envision our results to be applicable to more complex systems and phenomena, creating precise guidelines for the rational design of exotic phenomena emerging at magnetic-superconducting interfaces57,58.

Methods

Sample and tip preparation

The bulk single-crystal Nb(110) substrate was cleaned in UHV by repeatedly heating the surface to 2300 K in 12 s38. Cr adatoms were deposited in-situ and with the substrate below a temperature of 15 K. All atoms were found to be adsorbed in the hollow site of the Nb(110) surface37. Measurements were taken in UHV at 600 mK using the Tribus STM head (Scienta Omicron). Cr adatoms could be moved with atomic precision by approaching them with the STM tip in constant current mode and a setpoint of −5 mV; 70 nA. dI /dU spectra were taken with the standard lock-in technique. For measurements in the normal metallic regime, we used a tungsten tip characterized on Ag(111) and applied a magnetic field of >1 T. For measurements in the superconducting regime, we used a superconducting Nb microtip obtained by deep indentations into the Nb single crystal. As described in Supplementary Note 1, this allows to improve the energy resolution.

Measurement protocol

Throughout the distance-dependence experiments, atom A was not moved from its initial position while atom B was subsequently positioned in a controlled way to specific hollow site positions, so that all changes seen on atom A are exclusively triggered by movements of atom B, therefore all spectra shown were taken on atom A. Both at the start and the end of the experiment, the very same configuration shown in Fig. 1a was arranged (atom distance |rref| = 5.6 nm) and measured to rule out any tip changes during the multiple atom manipulations required. An exactly identical dI/dU signal could be acquired before and after and was then used as the reference for all other spectra.

First-principles calculations

Our first-principles approach is implemented in the framework of the scalar-relativistic full-electron Korringa–Kohn–Rostoker (KKR) Green function augmented self-consistently with spin–orbit interaction59,60. The method is based on multiple-scattering theory allowing an embedding scheme, which is versatile for the treatment of nanostructures in real space. The full charge density is computed within the atomic-sphere approximation (ASA) and local spin density approximation (LSDA) is employed for the evaluation of the exchange-correlation potential61. We assume an angular momentum cutoff at lmax = 3 for the orbital expansion of the Green function and when extracting the local density of states a k-mesh of 150 × 150 is considered. The Nb(110) surface is modeled by a slab containing 22 layers enclosed by two vacuum regions with a thickness of 9.33 Å̊ each. The Cr adatoms are placed on the hollow stacking site relaxed toward the surface by 20% of the inter-layer distance of the underlying Nb(110) surface, which was shown to be the energetically favored stacking in ref. 37. The magnetic exchange interactions in the dimers were obtained using the magnetic force theorem in the frozen-potential approximation and the infinitesimal rotation method62,63. The on-site magnetic anisotropy of the Cr atoms in all dimers is estimated by one of the isolated Cr adatom, which is obtained from the method of constraining fields64. Further information can be found in Supplementary Note 7. The change of the YSR energies (∆EYSR) is estimated using a tight-binding model with parameters obtained from density functional theory and an effective Hamiltonian construction (see ref. 65 and Supplementary Note 8).