Introduction

There has been growing interest in particle-like magnetic textures such as skyrmions, since an increasing number of systems are being found that can support these textured states1,2,3,4,5. In addition to magnetic skyrmions, a variety of other textures can appear, such as antiskyrmions6 skyrmioniums7, antiferromagnetic skyrmions8, merons9, and biskyrmions10,11. These textures can be manipulated or set into motion with applied currents12,13,14 or thermal gradients15,16. Moving skyrmions can also interact with pinning sites, and their motion can be controlled by nanostructured patterns17,18. Due to their size and stability, magnetic textures are promising candidates for various applications such as memory19,20,21 and novel computing approaches22,23. These systems are also interesting in terms of basic science as they represent another particle-like system that can exhibit depinning phenomena18,24, various sliding phases12,13,25, melting26, and rectification effects27,28. In some cases, particularly for skyrmions, the textures have a strong non-dissipative Magnus term in their dynamics and move with a Hall angle \(\theta\) with respect to an external drive29,30. The Magnus force also affects how such textures interact with defects in the sample18,31.

An example of particle-like textures that occur in three dimensions is hopfions32,33, which are characterized by their Hopf index34,35. In condensed matter systems, hopfions have been studied in liquid crystals36,37,38, ferroelectrics39, and magnetic systems40,41,42,43,44,45,46,47,48,49. Ring type hopfions have recently been experimentally observed in magnetic systems50. Due to their particle-like nature and their ability to be manipulated with external fields46,51,52,53, hopfions are another promising system for applications, and could exhibit new kinds of dynamical effects when interacting with quenched disorder. Almost nothing is known, however, about how hopfions interact with quenched disorder or nanostructured arrays, how stable they are in such a system, and whether they can exhibit pinning and depinning behaviors or undergo topological transitions when driven through a nanostructured defect array.

In this work, we consider atomistic simulations of three-dimensional (3D) magnetic hopfions interacting with a comb-like array of line defects where the hopfions are driven through the defects under an applied current. We vary the spacing between the defects and modify the defect strengths by changing the local anisotropy. A hopfion subjected to an applied current moves without a Hall angle. When the hopfion interacts with the defects, we find a pinned regime where the hopfion cannot move between the defects, and a sliding regime where the hopfion can distort and slip between the defects. For strong disorder or dense defect arrays, we also find a regime in which the hopfion becomes so strongly compressed as it passes between the defects that it transforms to a toron that has a zero Hopf index44,54,55,56. The toron is half as wide as the hopfion, moves at a slower velocity, and has a finite Hall angle. We find that in the regime where a toron forms just above depinning, if we apply a drive that is well above the depinning threshold, it is possible to stabilize a moving hopfion since the distortions experienced by the hopfion from the defect sites are reduced at higher drives. We also show that when a hopfion interacts with an asymmetric array of planar defects under a circular ac drive, a hopfion ratchet can be realized in which dc motion occurs where the hopfion translates by one substrate lattice site per ac drive cycle along the easy direction of the array asymmetry. Our results indicate that hopfion pinning and motion can be realized and controlled with nanostructured arrays, opening the possibility of a variety of applications that can be both similar to and different from those proposed for skyrmions.

Methods

Using atomistic simulations, we model a 3D chiral magnet sample of dimensions 128 nm \(\times\) 128 nm\(\times\) 17 nm with periodic boundary conditions along the x and y directions at zero temperature, \(T=0\) K. The 3D sample is modeled as a cubic arrangement of atoms, with lattice constant \(a=0.5\) nm. The Hamiltonian governing the atomistic simulations is given by13,57,58:

$$\begin{aligned} \mathcal {H}=-\sum _{i, \langle i, j\rangle }J_{ij} {\bf{m}}_i\cdot {\bf{m}}_j -\sum _{i, \langle i, j\rangle } {\bf{D}}_{ij}\cdot \left( {\bf{m}}_i\times {\bf{m}}_j\right) -\sum _{i\in V} K_V\left( {\bf{m}}_i\cdot \hat{{\bf{z}}}\right) ^2 -\sum _{i\in T,B} K_S\left( {\bf{m}}_i\cdot \hat{{\bf{z}}}\right) ^2 . \end{aligned}$$
(1)

The first term is the exchange interaction between first neighbors, with exchange constant \(J_{ij}=J\) between any two magnetic moments. The second term is the Dzyaloshinskii-Moriya (DM) interaction, where \({\bf{D}}_{ij}=D{\hat{{\bf{r}}}}_{ij}\) is the DM vector, D is the DM strength, and \({\hat{{\bf{r}}}}_{ij}\) is the unit distance vector between atomic moments i and j. This isotropic DM vector stabilizes Bloch hopfions, which have finite chirality. The third and fourth terms are perpendicular magnetic anisotropies (PMA), where V is the sample volume and TB the sample top and bottom, respectively. Magnetic hopfions that form in a chiral magnetic background require confinement in order to remain stable59, and therefore we impose \(K_S\gg K_V\). Although our sample is 17 nm thick, the confinement reduces the effective thickness to 16 nm.

The time evolution of the magnetic moments is given by60,61:

$$\begin{aligned} \frac{\text {d} {\bf{m}}_i}{\text {d} t}=-\gamma {\bf{m}}_i\times {\bf{H}}^\text {eff}_i +\alpha {\bf{m}}_i\times \frac{\text {d} {\bf{m}}_i}{\text {d} t} +\frac{j\hbar \gamma P a^3}{2ed\mu } {\bf{m}}_i\times \left( \hat{{\bf{z}}}\times \hat{{\bf{j}}}\right) \times {\bf{m}}_i \ . \end{aligned}$$
(2)

Here \(\gamma\) is the electron gyromagnetic ratio, \({\bf{H}}^\text {eff}_i=-\frac{1}{\mu }\frac{\partial \mathcal {H}}{\partial {\bf{m}}_i}\) is the effective field, \(\mu =\hbar \gamma\) is the atomic magnetic moment, \(\alpha\) is the phenomenological Gilbert damping, and the last term is the spin orbit torque (SOT) contribution, where j is the current density, \(P=1\) is the current polarization, e is the electron charge, \(d=17\) nm is the film thickness and \(\hat{{\bf{j}}}\) is the current direction.

The hopfion is characterized by the Hopf index33,34,35, given by:

$$\begin{aligned} Q_H=\int _V{\bf{B}}\cdot {\bf{A}}~\text {d}^3x , \end{aligned}$$
(3)

where the integration is performed over the whole sample. Here \({\bf{B}}\) is the emergent magnetic field and \({\bf{A}}\) is the corresponding vector potential, \({\bf{B}}=\nabla \times {\bf{A}}\). The unitless emergent magnetic field can be computed using \(B_i=\frac{1}{8\pi }\varepsilon _{ijk} {\bf{m}}\cdot \left( \partial _j{\bf{m}}\times \partial _k{\bf{m}}\right)\); however, better numerical results are obtained when using a lattice based approach48, which is the method we employ throughout this work. The vector potential \({\bf{A}}\) used in the Hopf index computation is given by:

$$\begin{aligned}&A_x(x, y, z)=\int _0^yB_z(x, l, z)~\text {d}l \, , \end{aligned}$$
(4)
$$\begin{aligned}&A_y(x, y, z)=0 \, , \end{aligned}$$
(5)
$$\begin{aligned}&A_z(x, y, z)=-\int _0^yB_x(x, l, z)~\text {d}l \, , \end{aligned}$$
(6)

which is known to give good Hopf index computation results48.

We integrate Eq. (2) using a fourth order Runge–Kutta integration method over a time span of 60 ns when considering the topological transitions, and over 360 ns when considering ratchet effects. Our simulations have a fixed integration time step of \(\Delta t=0.01\hbar /J\).

In previous work on chiral magnetic hopfions, the dynamics were integrated over a time span of 15 ns; however, here we are focusing on topological transitions and ratchet effects, and therefore require longer simulation times.

Our sample has parameters \(J=1\) meV, \(D=0.2J\), \(K_V=0.01J\), and \(K_{T,B}=5J\). These parameters roughly correspond to the magnetic parameters of the chiral magnet MnSi13,58,59. Although we use normalized values of D, \(K_V\) and \(K_{T, B}\), the unnormalized values can be obtained by multiplying the constants by J; this gives \(D=0.2\) meV, \(K_V=0.01\) meV and \(K_{T, B}=5\) meV.

To ensure the stability of the hopfion, we first used the ansatz presented in Knapman et al.48 and performed a 60 ns integration with no SOT. This integration gives a final \({\bf{m}}\) configuration that we then employed as the initial condition for our simulations.

Results

Fig. 1
figure 1

(a) 3D view of our system for a \(Q_H = 1\) hopfion, which is plotted by visualizing the \(m_z=0\) isosurface. The colors represent the m direction given by the angle between \(m_x\) and \(m_y\), as shown in the colorbar. We place two column-like defects (thick black lines) with an increased PMA of \(K_D\), where \(\Delta\) is the distance between the two columns. The hopfion is subjected to dc driving along \({\hat{{\bf{y}}}}\) produced by a current j. This moves the hopfion along \({\hat{{\bf{v}}}}={\hat{{\bf{x}}}}\) at a velocity v towards the center point between the two columns. Inset: hopfion isosurfaces at \(m_x=1\) (red) and \(m_x=-1\) (cyan). (b) zy and (c) xy cross-sections along the hopfion center. The hopfion has a diameter of approximately \(\xi =25\) nm.

We consider a \(Q_{H} = 1\) 3D hopfion driven through a comb-like array of line defects that have a higher value of \(K_{D}\) than the surrounding medium. In Fig. 1a, we show a 3D rendering of the \(m_z=0\) isosurface for the hopfion. The inset shows the \(m_x=1\) and \(m_x=-1\) isosurfaces, highlighting the knot-like structure that is characteristic of a hopfion with \(Q_{H} = 1\). A side view and a top view of the hopfion appear in Fig 1b, c, respectively. In this case, the hopfion diameter is approximately 25 nm. Arrows in Fig. 1a indicate the direction of the applied current j as well as the direction \({\bf{v}}\) along which the hopfion moves. The two black pillars are the columnar line defects, which are placed a distance \(\Delta\) apart. For different values of j, \(\Delta\), and \(K_D\), we apply the current and wait for the system to evolve to a pinned or sliding state or to transform into a toron when the hopfion moves between the defects. Due to the confinement inside the sample, the hopfion motion in the absence of the line defects is similar to what was observed previously in Ref. 59, where the hopfion moves without a Hall angle.

Fig. 2
figure 2

(a) Isosurface of \(m_z=0\) showing a dipole string texture or a toron with \(Q_H=0\). The hopfion topologically transitions to the toron texture for certain combinations of \(\Delta\), \(K_{D}\) and j. Inset: the \(m_x=1\) (red) and \(m_x=-1\) (cyan) isosurfaces. (b) zy, (c) xy cross-sections along the dipole string center. The dipole string diameter is approximately \(\xi =12\) nm. The colors represent the \({\bf{m}}\) direction, with the color given by the angle between \(m_y\) and \(m_x\), and the brightness given by the \(m_z\) value, following the colormap presented in Fig. 1.

As a function of changing drive and defect parameters, we find three phases: (i) a pinned phase where the current is so low that the hopfion cannot move between the line defects and is pinned between them, (ii) a sliding phase where the hopfion can distort and pass between the defects, and (iii) a regime where the hopfion becomes so strongly compressed upon moving between the defects that it transforms into a dipolar string state or a toron54,62 with \(Q_{H} = 0\), as shown in Fig. 2a. Here, the ring-like structure associated with the \(Q_{H} = 1\) hopfion in Fig. 1 is missing, and the plot of the \(m_x=1\) and \(m_x=-1\) isosurfaces in the inset of Fig. 2 indicate that there is no knotting. The yz or side view cross-section and the xy or top view cross-section of the toron appear in Fig. 2b, c, respectively. The toron is close to \(\xi =12\)nm in diameter, approximately half the size of the hopfion.

Fig. 3
figure 3

Phase diagrams for a hopfion interacting with a line defect structure as in Fig. 1a, showing a pinned state (green), hopfion motion between the defects (blue), and a topological transition from a \(Q_H=1\) hopfion to an unlinked \(Q_H=0\) toron \(Q_H=0\) (red). (a) Phases as a function of the spacing between the two columns \(\Delta\) vs current j for a defect strength of \(K_D=5J\). (b) Phases as a function of the defect strength \(K_D/J\) vs current j for a defect spacing of \(\Delta =21\) nm. The black dots indicate the points at which simulation data was obtained.

In Fig. 3a, we plot a phase diagram as a function of the defect spacing \(\Delta\) versus current j in a system with a defect strength of \(K_D=5J\). We find a pinned phase, sliding motion of the hopfion between the defects, and a phase in which the \(Q_H=1\) hopfion undergoes a topological transition to a \(Q_H=0\) toron. The width of the pinned phase grows with decreasing \(\Delta\). When \(\Delta > 23\) nm, the hopfion can depin into a moving hopfion as the current increases. Since the hopfion diameter is about 24 nm, the distortions induced in the hopfion by the defects as it passes between them are reduced when \(\Delta > 23\) nm. For \(\Delta < 23\) nm, we find a pinned phase and a toron state; however, when j is sufficiently large, the hopfion moves between the defects so rapidly that it does not deform strongly enough to transform into a toron, and the moving hopfion phase reappears. In previous work on systems with depinning, it has been shown that the distortions produced by the pinning on the moving textures is effectively reduced at higher drives63, and this effect has been studied for skyrmions in both particle based25 and continuum models64.

The ability of the defects to transform the hopfion to a toron is affected by the defect strength. In Fig. 3b we present a phase diagram as a function of \(K_{D}/J\) versus j for fixed \(\Delta = 21\) nm, which is smaller than the hopfion width. For \(K_{D} < 1.3\) J the hopfion can depin into a moving hopfion state, while for \(K_{D} > 1.3\) J the hopfion transforms into a toron upon depinning, and a larger j must be applied in order to stabilize a moving hopfion.

The transition from a pinned phase to a moving hopfion phase at fixed j and varying \(\Delta\) is a consequence of the finite size of the hopfion. When the spacing between the defects is not large enough, the hopfion cannot move through the defects and stays pinned. Increasing the spacing enables the hopfion to move through the defects without transitioning to a toron, since the hopfion now weakly interacts with the defects. At higher currents, the hopfion still cannot move through the defects, but now the current is strong enough to induce a transition from a hopfion to a toron. In this case, when the defect spacing is increased and the interaction between the hopfion and the defects is reduced, the phase transition is from a toron to a moving hopfion. Alternatively, by fixing \(\Delta\) and varying j, the same phase transitions appear, but now the transitions are a consequence of the applied driving force and the time the hopfion spends interacting with the defects, which changes as a function of the driving current. The phase transitions are different when j is fixed and \(K_D\) is varied. At low j, a moving hopfion transitions to a pinned hopfion with increasing \(K_D\). Although the defect spacing is fixed in this case, the hopfion interacts more strongly with the defects at higher \(K_D\), which in turn makes it more difficult for the hopfion to move through the defects. At higher values of j, the transition is from a moving hopfion to a toron, and this is again a consequence of the hopfion interacting more strongly with defects that have higher \(K_D\).

It would be possible to construct a phase diagram as a function of \(K_D\) versus \(\Delta\) for fixed values of j. A moving hopfion phase would appear when \(K_D\) is smaller than a critical value. When \(K_D\) is above this critical value and \(\Delta\) is also larger than the hopfion diameter, a moving hopfion phase should also be present. Intermediate values of \(K_D\) and \(\Delta\) would produce the three phases we observe in Fig. 3. The range of \(K_D\) and \(\Delta\) values over which each phase would appear would depend on whether the hopfion can move through the defects, which is determined by a competition between \(K_D\), \(\Delta\), and j.

The phase diagram in Fig. 3 was constructed based on the value of \(Q_H\) and the average texture velocity. The texture velocity is computed in a texture independent manner by using a DBSCAN algorithm65, modified to find varying \(m_z\) textures, that determines the x, y, and z position coordinates of the texture. We then obtain the velocity by computing central differences of the positions from frame to frame of the simulation. If \(Q_H=1\) is not satisfied, we classify the phase as containing a topological transition; similarly, if the velocity \(\langle v\rangle \approx 0\) we classify the phase as a pinned phase.

Fig. 4
figure 4

Images of a hopfion topologically transitioning from \(Q_H=1\) to \(Q_H=0\) upon interacting with the columnar defects. Here \(\Delta =21\) nm and \(j=2.6\times 10^{10}\) A m\(^{-2}\). (a,b,c,d) \(m_z=0\) isosurfaces. (e,f,g,h) The yz cross-section. (i,j,k,l) The xy cross-section. The scale bar in panel (e) applies to panels (e, f, g, h), while the scale bar in panel (i) applies to panels (i, j, k, l). The colors represent the \({\bf{m}}\) direction, with the color given by the angle between \(m_y\) and \(m_x\), and the brightness given by the \(m_z\) value, following the colormap presented in Fig. 1.

In Fig. 4, we illustrate the pinning-induced transition of the hopfion into a toron for the system from Fig. 3a at \(\Delta = 21\) nm, \(K_{D} = 5J\), and \(j=2.6\times 10^{10}\) A m\(^{-2}\). Figure 4a–d shows 3D images of the \(m_z = 0\) isosurface of the texture along with the defect positions, while Fig. 4e–h shows the side view and Fig. 4i-l shows the top view of the texture. As the hopfion moves between the line defects, it becomes increasingly compressed, and at \(t = 26\) ns, it collapses into the \(Q_{H} = 0\) state. The images also show that the toron is smaller than the hopfion. The line defects are modeled as columns of sites with high anisotropy, which locks the magnetic moments composing the defect into the easy axis direction. In the case of weak anisotropy defects, the magnetic moments composing the defect are not locked, but instead have a weak tendency to align along the easy axis direction, which can affect the configuration of the line defect. In most of our systems, such as those shown in Fig. 4, the defect anisotropy is high enough so that the magnetic moments are indeed locked. An exception is the systems in Fig. 3b, where the defect anisotropy strength varies.

Fig. 5
figure 5

Images of freely moving textures away from the influence of the defect lines in the system from Fig. 4 with \(\Delta =21\) nm and \(j=2.6\times 10^{10}\) A m\(^{-2}\) where a hopfion to toron transformation occurs. (a–d) Hopfion motion, with no Hall angle, \(\theta =0^\circ\), before the transformation at (a) \(t=0\) ns, (b) \(t=5.1\) ns, (c) \(t=9.6\) ns, and (d) \(t=14.1\) ns. (e–h) Dipole string, or toron, motion, with a Hall angle of \(\theta =43^\circ\) after the transformation at (e) \(t=40.8\) ns, (f) \(t=45.3\) ns, (g) \(t=49.8\) ns, and (h) \(t=54.3\) ns. The velocity of the hopfion is roughly \(v=2.7\) m s\(^{-1}\), and that of the dipole string is roughly \(v=1.1\) m s\(^{-1}\). Arrows indicate the direction of motion. The colors represent the \({\bf{m}}\) direction, with the color given by the angle between \(m_y\) and \(m_x\), and the brightness given by the \(m_z\) value, following the colormap presented in Fig. 1.

In Fig. 5a–d, we show the top view of a moving hopfion at \(j=2.6\times 10^{10}\) A m\(^{-2}\) in the sample from Fig. 4 where a hopfion to toron transition occurs. In the images, the hopfion is not close to the columnar defects and is not affected by them. The hopfion moves at a velocity \(v=2.7\) m s\(^{-1}\), without a Hall angle. Figure 5e–h shows the top view of the moving toron away from the columnar defects after the transition. The toron travels at a velocity of \(v=1.1\) m s\(^{-1}\) with a Hall angle of approximately \(\theta =43^\circ\).

Fig. 6
figure 6

(a) Displacements \(\Delta x\) (black) and \(\Delta y\) (red) versus time for the system from Fig. 4 with \(j=2.6\times 10^{10}\) A m\(^{-2}\), \(\Delta =21\) nm, and \(K_D=5J\), where a transition from a hopfion to a toron occurs as the hopfion passes between the defects. The hopfion travels at a higher velocity of \(v=2.7\) m s\(^{-1}\) and with no Hall angle, whereas the dipole string moves at a slower velocity of \(v=1.1\) m s\(^{-1}\) with a Hall angle of \(\theta =43^\circ\). (b) The corresponding Hopf index \(Q_H\) versus time. The oscillations in \(Q_H\) that appear after the transition are numerical artifacts. In each panel, a dashed line marks the moment at which the hopfion to toron transition occurs. The colors in the insets of (b) represent the \({\bf{m}}\) direction, with the color given by the angle between \(m_y\) and \(m_x\), and the brightness given by the \(m_z\) value, following the colormap presented in Fig. 1. The 3D axis of the insets in (b) are the same as the ones in Figs. 1, 2, and 4a–d.

In Fig. 6, we show the displacements \(\Delta x\) (black) and \(\Delta y\) (red) versus time for the system in Fig. 4 with \(j=2.6\times 10^{10}\) A m\(^{-2}\), \(\Delta =21\) nm, and \(K_{D} = 5\) J, where the hopfion transforms to a toron near \(t = 28\) ns upon interacting with the line defects. The hopfion moves with a higher velocity of \(v=2.7\) m s\(^{-1}\), visible as the larger slope in \(\Delta x\), while \(\Delta y = 0.0\) for the hopfion, indicating that there is no Hall angle. When the hopfion begins to interact with the defects near \(t = 20\) ns, there is a dip in \(\Delta x\) as the texture slows down. After the transition, the toron moves at \(v=1.1\) m s\(^{-1}\) with a Hall angle of \(\theta =43^\circ\), which appears as the onset of finite \(\Delta y\) and a reduced slope of \(\Delta x\). In Fig. 6b we plot the corresponding Hopf index \(Q_H\) versus time. For \(t<28\) ns, \(Q_H = 1\) and a hopfion is present, while at later times, \(Q_H\) drops in the toron state. The oscillations in \(Q_H\) that appear after the transition are numerical artifacts. The hopfion is a stable object in the absence of driving and pinning, so the topological transition in Fig. 6b does not occur spontaneously. Instead, the transition to a toron is induced by the interaction of the hopfion with the line defects, and this interaction is itself caused by the application of a driving force which pushes the hopfion against the defects.

Since the line defects are able to pin the hopfion, this suggests that certain types of defects could also guide the hopfion motion. In addition, if an asymmetric arrangement of defects were introduced, the system could exhibit a ratchet effect. In a rocking ratchet, an ac drive applied to a particle on an asymmetric substrate produces a net dc drift motion. Rocking ratchets have been realized for overdamped superconducting vortices interacting with asymmetric substrates under ac driving66,67,68,69,70,71. Ratchet effects have also been observed for skyrmions interacting with asymmetric substrates; however, in the skyrmion system, the Magnus force provides additional ways for the texture to be rectified27,28,72. Since hopfions do not have a Hall angle, their ratcheting motion would be expected to be comparable to that of the overdamped superconducting vortex systems. A hopfion ratchet would then represent a realization of a ratchet for a 3D object.

Fig. 7
figure 7

(a) Image of the trajectory of a hopfion, colored according to the progression of the circular ac driving period, moving through a herringbone planar defect array pattern (gray lines) in a sample with \(K_D=0.5J\). (b) The hopfion velocity \(v_x\) (black) and \(v_y\) (red) vs time for the system in (a). An animation showing the hopfion ratchet motion is available in the Supplemental Material (see supplemental material for animations showing the motion of the textures).

In Fig. 7a we show a top view of a substrate containing a herringbone planar defect array with anisotropy of \(K_D=0.5J\). We place a hopfion in the center region near \(x = 75\) nm and apply a circular ac drive given by \({\bf{j}}_\text {AC} = j_\text {AC}\sin (2\pi f t){\hat{{\bf{x}}}} - j_\text {AC}\cos (2\pi f t){\hat{{\bf{y}}}}\), with \(j_\text {AC} = 2\times 10^{10}\)A m\(^{-2}\) and frequency \(f = 0.01\)GHz. The lines show the hopfion trajectory, where we change the color for each successive ac cycle to show that the hopfion is translating along the negative x-direction corresponding to the easy flow direction of the substrate asymmetry. Figure 7b shows the hopfion velocity \(v_x\) and \(v_y\) versus time for the system in Fig. 7a. The texture translates by one substrate lattice site per cycle in the negative x direction. In this case, we must apply a circular ac drive in order to break enough symmetry to obtain a ratchet effect; however, the finite Magnus force of the toron could produce an additional circular motion so that an ac drive applied along only one axis could be sufficient to produce ratchet transport. Other defect geometries could permit the ratcheting motion of the hopfions under uniaxial ac driving.

Discussion

Our results indicate that hopfions can interact with and be controlled by structured defect arrays. We considered defects created by varying the perpendicular magnetic anisotropy; however, defects could be also generated by varying other parameters of the sample. The line defects we study could be fabricated by a variety of irradiation techniques, such as a focused ion beam pattern. Alternatively, the surface could be patterned with magnetic dots or via surface etching. Although we studied only a single hopfion, we expect that additional dynamical behaviors could arise for multiply interacting hopfions or for hopfions with higher Hopf indices, where there could be transitions from higher to lower indices. We found that the hopfion transforms to the dipolar string texture upon interacting with defects, but it would also be interesting to see if the reverse transformation could occur, or if a nanostructured pattern could be used to nucleate hopfions in a controlled fashion. In our system, the hopfions are confined, and most experiments with line defects would likely fall into the same type of confined geometry, but it would also be interesting to study hopfion dynamics in bulk systems where it is known that there can be additional 3D dynamics44. We also considered only line-like and planar defects, but surface defects or defects in the bulk would also be interesting to explore. This topological transition is akin to that observed for a skyrmionium turning into a skyrmion upon passing through a constriction.

We note that Wang et al.59 addressed the dynamics of Néel hopfions in the presence of currents that produce both spin Hall torques and spin-transfer torques in a clean racetrack. Here we consider the dynamics of a Bloch hopfion under currents that produce spin Hall torques which, according to Ref. 59, have a driving force perpendicular to the current, rather than parallel to the current as is the case for Néel hopfions. We find two distinct results regarding hopfion dynamics that do not appear in Ref. 59: (i) the topological transition from a hopfion to a toron produced by interactions with anisotropy defects and currents, and (ii) the ratchet effect of a hopfion under circular ac driving interacting with an asymmetric array of defects.

Conclusion

Using atomistic simulations, we have examined the dynamics of driven hopfions interacting with line-like defects. As we vary the driving, the distance between the defects, and the defect disorder strengths, we find three phases: a pinned state, a sliding hopfion phase where there is a critical depinning drive and the hopfions can move between the defects by distorting, and a state where the hopfion transforms into a dipolar string or toron that is half the size of the hopfion and moves at a lower velocity for the same applied current. For disorder strengths and defect spacings at which the hopfion transforms into a toron at depinning, we find that if the drive is increased sufficiently far above the depinning transition, a moving hopfion can be stabilized. The hopfion moves without a Hall angle, but the toron moves with a finite Hall angle. When we introduce asymmetric arrays of planar defects, a hopfion ratchet effect can be realized under circular ac driving. Our results suggest that the position and dynamics of hopfions can be controlled with judiciously constructed defect arrays. This opens the possibility of a variety of applications utilizing hopfions, such as memory elements or new types of computing devices. In addition to magnetic textures, our results are also relevant to hopfions in ferroelectrics or in liquid systems under fluid flow conditions.