Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

# Complex free-space magnetic field textures induced by three-dimensional magnetic nanostructures

## Abstract

The design of complex, competing effects in magnetic systems—be it via the introduction of nonlinear interactions1,2,3,4, or the patterning of three-dimensional geometries5,6—is an emerging route to achieve new functionalities. In particular, through the design of three-dimensional geometries and curvature, intrastructure properties such as anisotropy and chirality, both geometry-induced and intrinsic, can be directly controlled, leading to a host of new physics and functionalities, such as three-dimensional chiral spin states7, ultrafast chiral domain wall dynamics8,9,10 and spin textures with new spin topologies7,11. Here, we advance beyond the control of intrastructure properties in three dimensions and tailor the magnetostatic coupling of neighbouring magnetic structures, an interstructure property that allows us to generate complex textures in the magnetic stray field. For this, we harness direct write nanofabrication techniques, creating intertwined nanomagnetic cobalt double helices, where curvature, torsion, chirality and magnetic coupling are jointly exploited. By reconstructing the three-dimensional vectorial magnetic state of the double helices with soft-X-ray magnetic laminography12,13, we identify the presence of a regular array of highly coupled locked domain wall pairs in neighbouring helices. Micromagnetic simulations reveal that the magnetization configuration leads to the formation of an array of complex textures in the magnetic induction, consisting of vortices in the magnetization and antivortices in free space, which together form an effective B field cross-tie wall14. The design and creation of complex three-dimensional magnetic field nanotextures opens new possibilities for smart materials15, unconventional computing2,16, particle trapping17,18 and magnetic imaging19.

## Main

We consider a model system that consists of two intertwined, yet spatially separated, ferromagnetic nanohelices. This three-dimensional nanomagnetic system has a complex energy landscape defined by the balance of competing intra- and interhelix effects (terms defined above). The nanoscale double helix combines effects of curvature and torsion that may result in curvature-induced magnetic anisotropy and chirality effects20,21,22. Specifically, the two helices are designed to have the same chirality, and are offset by half a period, leading to a constant interhelix separation along the length of the system. We fabricate the system of two intertwined cobalt nanohelices with focused electron beam induced deposition23. Scanning electron microscope (SEM) images of two nanoscale double helices are presented in Fig. 1: the first (double helix A, Fig. 1c) with lower pitch and higher radius, the second (double helix B, Fig. 1d) more elongated with higher pitch and lower radius (geometries defined in Table 1). Both double helices have a nanowire diameter of approximately 70–80 nm with an interhelix distance of ~50–70 nm and therefore exhibit strong magnetostatic coupling.

To probe the magnetic state of these complex three-dimensional magnetic nanostructures, we employ scanning transmission X-ray microscopy (STXM, Fig. 1e). By tuning the X-ray energy to the Co L2 edge (796 eV) and measuring images with circular polarization, we exploit X-ray magnetic circular dichroism (XMCD) to obtain a high-spatial-resolution projection of the magnetization parallel to the X-ray beam (Fig. 1f). We first probe the as-grown state of the two magnetic double helices in Fig. 1f,g, where we can see that in both XMCD images the double helices are composed of a dark and a bright helix, which corresponds to the individual helices being in antiparallel-magnetized single-domain states with a quasi-tangential magnetization distribution. This is expected due to the radii of curvature and torsion (defined in Table 1) being much larger than both the exchange length (4–6 nm) and the diameter of the nanowires20. These two antiparallel double-helix states (magnetizations of helices A and B either positive and negative or negative and positive, respectively) represent the degenerate ground states of the system (Methods), and are a result of the fabrication sequence of the helices, which are grown in parallel: at the start of the growth when the helices are small, the magnetic moments reorient to minimize the magnetostatic energy, aligning antiparallel to one another. This antiparallel state is maintained as the helices are grown, leading to the formation of these single-domain, micrometre-length structures7.

Although the two double-helix systems form similar antiparallel states in their as-grown configuration, they exhibit very different configurations following the application of a magnetic field perpendicular to the long axis of the helix. The XMCD projection of double helix A again reveals a pair of dark and bright helices, indicating the return to an antiparallel state (specifically the opposite antiparallel state, Fig. 1h). However, the XMCD projection of double helix B is different, with alternating regions of dark and bright contrast within individual helices (Fig. 1i), indicating the formation of a multidomain state with a regular array of domain walls. With both double-helix systems composed of the same material and exposed to the same external magnetic field, we attribute this difference in behaviour to their different curvatures, torsions and interhelix couplings.

To elucidate the influence of the three-dimensional geometry on the remanent magnetic configuration, we simulate the magnetic configuration formed after the application of a saturating transverse magnetic field for a variety of helix pitches and radii using finite-element micromagnetic simulations24. We identify three remanent magnetic configurations. The first is the antiparallel state (Fig. 2a, left), as observed experimentally for double helix A (Fig. 1f). The second is an unlocked domain wall state (Fig. 2a, centre), in which the transverse domain walls are aligned in the direction of the applied magnetic field. This unidirectional state is characterized by having the net magnetic surface charge of the walls located at the outer curved section of the wires25,26, as favoured by the curvature-induced anisotropy and the curvature-induced Dzyaloshinskii–Moriya interaction (DMI), which promote a particular domain wall chirality25. This state is consistent with the equivalent magnetic configurations of planar magnetic nanowires27. For geometries that host the unlocked state at remanence, the curvature-induced effects dominate over the interstructure magnetostatic interaction. We also observe a third, unconventional domain wall configuration (Fig. 2a, right), in which the domain walls fully reverse with respect to both the direction of the applied magnetic field and the curvature-induced DMI, becoming locked in place due to the strong interhelix interaction, as shown schematically in Fig. 2b.

To determine whether the locked domain wall state is present in double helix B, we perform soft-X-ray magnetic laminography12,13,28,29 (Fig. 1e) to map its three-dimensional magnetization vector field with nanoscale resolution The reconstructed magnetization is given by arrows in Fig. 2d, where a reversal of the direction of the magnetization within the magnetic domain walls can be observed, consistent with the locked domain wall state. An additional representation of the magnetization with streamlines (Fig. 2e) reveals a distinctive figure-of-eight structure in the reconstructed magnetization. When compared with micromagnetic simulations in Fig. 2f,g (see also Extended Data Fig. 1), the figure-of-eight structure is reproduced, providing confirmation of the reversal of the domain wall direction and the resulting locked domain wall array in double helix B.

The formation of these different remanent states—the antiparallel state and locked domain wall state for double helices A and B, respectively—occurs due to the geometry of the double helices strongly affecting the competing interactions. Specifically, the higher torsion:curvature ratio of double helix B, associated with its higher helix pitch and lower helix radius, promotes the formation of a stable array of locked domain walls. After the formation of the unlocked domain walls following transverse saturation, the domain walls reorient owing to the magnetostatic interaction overcoming the curvature-induced DMI of the domain wall. In particular, the higher torsion:curvature ratio decreases the distance between the helices, increasing the magnetostatic interaction between them, while at the same time decreasing the curvature-induced DMI, promoting the rotation of the domain walls to the locked state (Methods). This reorientation creates a more confined magnetic flux, reducing the magnetostatic energy, as shown schematically in Fig. 2b. In contrast, the antiparallel state observed in double helix A forms due to the higher curvature and lower torsion. Specifically, as the interdomain wall distance in different helices increases, the coupling between domain walls in different helices decreases, and the distance between domain walls within a single helix is reduced. Both effects favour the annihilation of neighbouring domain wall pairs and the formation of the antiparallel state. This geometry-dependent behaviour in intertwined double helices is confirmed both by mapping the phase diagram of this system with micromagnetic simulations and by an analytical model (Methods and Supporting Sections I and II), confirming that the locked domain wall state forms as a result of the influence of the geometry on these competing effects.

The locked domain wall state observed here occurs due to the balance between intrahelix properties and interhelix coupling. While it is known that curvature and torsion influence intrananowire properties such as anisotropies and chirality5,20,21,22,30, their influence on internanostructure coupling—that is, the magnetic stray field generated by neighbouring three-dimensional structures—remains unexplored. To elucidate the influence of the three-dimensional geometry on the magnetostatic coupling, we calculate the magnetic induction B = μ0(H + M) in the whole space (including both the magnetic material and free space) by taking the magnetization configuration M of the locked domain wall state from micromagnetic simulations and computing its stray field (H). We first consider the overall structure of B within the helix: the formation of the regular array of domain walls results in the double helix being split into two main domains, as shown in Fig. 3a, where on the left the magnetization points down along $$- \hat {\mathbf{x}}$$ (blue), and on the right the magnetization points up along $$+ \hat {\mathbf{x}}$$ (red). This asymmetry in B within the double helix results in a similar asymmetry in B in free space, seen by considering the variation in the stray field surrounding the domain walls. While the highest magnitude stray fields in free space ($${{{\mathit{B}}}} = \mu _0{{{\mathit{H}}}} > 0.3\mu _0M_{\mathrm{s}}$$) are found to mostly align horizontally ($$\hat {\mathbf{y}}$$) between the domain wall pairs (left panel of Fig. 3b), as lower-magnitude stray fields are considered (middle and right panels of Fig. 3b) we observe a growing component of the stray field in the plane of the domain wall cross-section (xz plane), which becomes more noticeable when weaker stray fields of magnitude >0.1 Ms are plotted. In fact, the stray field is seen to rotate asymmetrically into the xz plane to channel the magnetic flux of magnetic domains of the same direction in the two different helices (Fig. 3c): on one side the stray field develops a (blue) negative vertical $$\hat {\mathbf{x}}$$ component to channel the flux of the (blue) negative mx domains, while on the other side the stray field tilts into the (red) positive $$\hat {\mathbf{x}}$$ direction to connect domains of (red) positive mx, indicated by blue and red arrows in Fig. 3c.

The formation of these asymmetric magnetic flux channels not only results in a deviation from the direct horizontal coupling of the domain walls but also induces a distinctive asymmetric structure into the magnetic induction itself. Indeed, when the magnetic induction is projected onto the xz plane perpendicular to the direction of the domain walls (indicated in Fig. 4a), the asymmetric $$\hat {\mathbf{x}}$$ components of the induction caused by the flux channels result in the formation of a saddle-like structure surrounding the domain wall pair that resembles an antivortex quadrupole structure31 (Fig. 4b). We confirm the presence of antivortices in the magnetic induction by calculating the winding number of the normalized components of the induction in the xz plane to be −1. These textures are of interest not only for their topological nature, but also for the type of magnetic force that could be generated. Indeed, the non-trivial in-plane structure exhibits well defined gradients in the xz plane components of the magnetic field, offering a new route to the design of nanoscale gradients in the magnetic induction.

Due to the periodic geometry of the double helix, the in-plane antivortices are not isolated objects: the regular array of locked domain walls leads to an array of effective antivortices in the magnetic stray field (Fig. 4b). In addition, the magnetization configuration of the locked domain wall state in the chiral double helix forms an array of vortices of constant chirality in B (with winding number +1), which is defined by the chiral geometry. The combination of the alternating chiral vortices and antivortices in B is reminiscent of the cross-tie wall in planar magnetic elements14,32 (Fig. 4c), where the continuity of the magnetization requires the presence of a crossing of the magnetization between like-handed vortices33. Here, we observe this contained effective cross-tie B field domain wall-like structure composed of vortices in the magnetization and antivortices in the B field in free space.

To confirm the role of the chirality of the helix in the formation of these complex B field textures, we consider the equivalent domain wall configuration in a non-helical, achiral geometry composed of straight nanowires. To remove the helical geometry, we perform additional simulations after applying a coordinate transformation to the locked domain configuration, effectively unwinding the helices to form a pair of straight nanowires (Methods) and removing the influence of the three-dimensional chiral geometry of the helices and the associated curvilinear effects. Following the relaxation of the magnetization from the locked state under this new geometry (Fig. 4d), we observe no vertical component of the stray field coupling domains of the same direction in different nanowires (Fig. 4e), indicating that no flux channelling (as observed in the double helix, Fig. 3c) occurs. Due to the absence of flux channelling, no antivortex textures are observed in the stray field, confirming that the stray field textures observed surrounding the locked domain wall state are a direct consequence of the twisting of the chiral helix structure.

We have demonstrated that the three-dimensional geometry not only can alter intrastructure properties, but also offers an opportunity to tailor the magnetic field itself. This is showcased in our double-helix system, where the three-dimensional geometry results in highly stable and robust locked domain wall pairs, with prospects for robust domain wall motion and synchronous dynamics34,35 in three-dimensional interconnectors, key to the realization of spin logic in large-scale integrated three-dimensional circuits. These phenomena are of great interest for domain wall conduit-based information processing36, which includes emerging applications such as reservoir computing2,37 where the strong interaction between neighbouring magnetic textures and the controlled reconfigurability that these systems present is of key importance. In particular, the introduction of nonlinear interactions into a system provides the opportunity for the combination of information transmission and processing, and the possibility to go beyond von Neumann computing architectures. Moreover, the creation of an array of planar antivortices in the magnetic field in free space sets a precedent for the creation of topological magnetic field textures with complex nanoscale field gradients using three-dimensional magnetic nanostructures. The design of controlled gradients in the magnetic field is key for applications such as particle18 and cold-atom17 trapping, while the ability to define complex nanotextures in the magnetic field has important implications for imaging19,38,39 and magnetic field manipulation40. While emergent topological features in the magnetic stray field have previously been found to result in chiral behaviour in frustrated nanomagnet arrays41, here three-dimensional nanopatterning results in the controlled creation of well localized magnetic field antivortices. These results demonstrate that the properties of a three-dimensional system can not only be used to tailor the material internal spin states but also play a key role in defining the magnetic stray field, and thus the interaction of neighbouring features in the magnetization.

## Methods

### Three-dimensional geometrical parameters of the cobalt double helices

In curved three-dimensional systems, it is useful to define the geometrical properties in terms of the κ and τ of the system, which are defined as

$$\kappa = \frac{{r_{\mathrm{H}}}}{{r_{\mathrm{H}}^2 + P^2}},\quad\tau = \frac{{CP}}{{r_{\mathrm{H}}^2 + P^2}}$$

where P = pH/2π, C is the chirality and the radii of curvature and torsion are defined as κ−1 and τ−1, respectively. It has been shown analytically that the radii of curvature and torsion determine the effective anisotropy and spin wave dynamics of a single magnetic helix20. The helices investigated experimentally in this work have the geometrical parameters defined in Table 1.

### Fabrication

The three-dimensional cobalt double helices were fabricated using focused electron beam induced deposition combined with a program compatible with computer-aided design software that allows for the deposition of three-dimensional architectures. Specifically, a single-pixel double-helix model was designed using the open-source program FreeCAD. Following the growth of calibration structures to account for the growth rate of the cobalt precursor according to ref. 23, a stream file to direct the scanning electron beam was created.

The double helices were fabricated on Omniprobe transmission electron microscopy sample holders, which were premilled with the focused ion beam to prevent shadowing of the sample holder during the laminography scan. Both the focused ion beam milling and focused electron beam induced deposition were performed in a Helios 660 NanoLab focused ion beam microscope at the Kelvin Nanocharacterisation Centre of the University of Glasgow. Specifically, for the growth of the three-dimensional magnetic nanostructures, an acceleration voltage of 5 kV and a current of 86 pA were used, in combination with the precursor Co2(CO)8. The growth times varied between 20 and 30 min per double-helix structure.

Following the deposition, the samples were annealed for 40 min at 250 °C, which results in an increase in the spontaneous magnetization of the cobalt, without a large increase of crystalline size or texture formation42,43. In particular, the annealing leads to a nanocrystalline microstructure, a cobalt composition of ~80 at.% and a saturation magnetization of 800–900 kA m−1. This treatment also leads to the formation of a protective carbon shell around the surface of the three-dimensional structure. The annealing procedure has the additional advantage of reducing carbon deposition—and in turn any deformation of the structure—during the X-ray imaging experiments.

### X-ray magnetic laminography

Soft-X-ray magnetic laminography was performed at the PolLux beamline at the Swiss Light Source, Switzerland13. X-ray magnetic laminography is a recently developed three-dimensional imaging technique, which involves the measurement of projections of the magnetization of a sample for many different orientations of the sample with respect to an X-ray beam12.

Sensitivity to the magnetization is obtained by probing the XMCD. In this measurement, the XMCD was probed at the Co L2 edge with a photon energy of 796 eV. Although the XMCD contrast is weaker at the L2 edge than at the L3 edge, measurements were performed at the L2 edge due to the high absorption of the double helices, providing a balance between the transmission and magnetic contrast to optimize image quality. We note that, due to the higher curvature of helix A, the effective thickness of the nanowire probed by the X-rays is higher, leading to a lower signal to noise ratio in the image compared with helix B under otherwise equal imaging conditions. For each orientation, XMCD images were measured by measuring STXM images with C+, C− and linear (horizontal) polarization. To obtain a quantitative measure of the projection of the magnetization, so-called ‘dark-field’ signal originating from leakage of the centre stop of the zone plate and from the higher-order light diffracted by the monochromator was removed from the projections by applying the following normalization procedure:

$$T = \frac{{I - {\mathrm{DF}}}}{{I_0 - {\mathrm{DF}}}}$$

where T is the normalized transmitted intensity, I is the nominal transmitted intensity, I0 is the intensity incident on the sample obtained from an empty region of the image and DF is the dark-field signal, which is estimated from regions of the image where the incident beam is blocked. The linear light projections were used to cross-check the removal of the unfocused and higher-energy light. In this way, quantitative projections of the magnetization were obtained, which were used to obtain a correct reconstruction of the three-dimensional magnetization.

For the two-dimensional imaging of the helices shown in Fig. 1 before and after the application of a transverse magnetic field, the samples were mounted in the laminography stage, and aligned such that the X-rays were aligned with the direction of the long axis of the helix, resulting in an incident angle of the X-rays and long axis of the helix of 45°, providing sensitivity to the component of the magnetization parallel to the long axis of the helix. The images in Fig. 1f,h,g,i were measured with eight, two, nine and four averages, respectively, leading to slight changes in the noise level of the individual images.

For the three-dimensional imaging, the X-ray laminography set-up consisted of a rotation stage whose rotation axis is oriented at 45° to the X-ray beam. Projections were measured with an angular separation of 10°. In laminography, the number N of projections measured over 360° required to achieve a spatial resolution Δr is defined as44.

$$N = \uppi \frac{t}{{{\Delta}r}}\tan \theta _{\mathrm{L}}$$, where t is the thickness of the sample and θL is the laminography angle, which defines the angle between the X-ray beam and the rotation axis—in this case 45°.

In this measurement, projections of the structure with a field of view of 3 × 3 μm2 and a pixel size of 25 nm were measured around 360° with an angular separation of 10°. For each angle, an average of two XMCD projections was measured to increase the signal to noise ratio. The angular separation of 10° corresponds to a nominal Δr of less than 20 nm. In reality, the spatial resolution of the final reconstruction was limited by the signal to noise ratio of the XMCD projections. Of the 36 projections, it was only possible to measure 27 because of shadowing of the X-ray beam due to the sample holder. Simulations of magnetic laminography revealed that, although this led to an asymmetry in the reconstructed magnetization, it does not prevent the identification of the locked domain wall state.

The three-dimensional magnetic configuration was then reconstructed using a graphics processing unit implementation of an arbitrary projection reconstruction algorithm developed in ref. 29 and used in refs. 12,13.

The three-dimensional magnetization structure was visualized with ParaView 5.5.0.

### Magnetic laminography reconstruction

The reconstructed mx, my and mz components of the magnetic configuration are presented in Extended Data Fig. 1a–c, respectively, and are directly compared with the micromagnetic simulation of the locked domain wall state in Extended Data Fig. 1d–f. The multidomain structure is confirmed by the mx component, which reveals positive and negative domains on the upper and lower halves of the helix, respectively. However, it is only with the transverse components of the magnetization, my and mz, that the type of domain wall pair state can be identified: both the my and mz components exhibit an alternating contrast (Extended Data Fig. 1b,c), consistent with the locked domain wall state (Extended Data Fig. 1e,f), and not with the more standard unlocked domain wall pair configuration previously observed in planar systems.

### Micromagnetic simulations

Finite-element meshes were created by first creating STL files corresponding to three-dimensional double helices of different parameters using the open-source program FreeCAD. For all simulations, the nanowire diameter was kept constant at 50 nm, while the helix radii and pitches were varied. The meshes were created with a mesh size of 5 nm using the program Gmsh45.

To map the phase diagram of the stable state after transverse saturation of the magnetization, micromagnetic simulations were performed using the program magnum.fe, which employs finite-element micromagnetics with a hybrid finite-element/boundary-element method for the magnetostatic field computation and a preconditioned implicit time integration scheme for the Landau–Lifshitz–Gilbert equation46. The spontaneous magnetization of the material was fixed to Ms = 8 × 105 A m−1. The magnetization was initialized in the transverse direction, assuming full saturation, and then the relaxation calculated using the Landau–Lifshitz–Gilbert equation with a damping parameter α = 1.

To calculate the stray field around the final magnetization state, the double-helix mesh was embedded within a boxed mesh using the program Gmsh, and the stray field calculated at each position using the magnum.fe solver.

To compare the helix configuration with that of a straight nanowire, a coordinate transformation was applied to the relaxed locked domain wall configuration result using ParaView, and the magnetization transformed accordingly. Following the unwinding of the magnetic state, the configuration was once more allowed to relax using magnum.fe to reach a stable configuration. The micromagnetic simulations presented in Figs. 3 and 4 of the main text correspond to a helix pitch of 500 nm, a helix radius of 30 nm and a nanowire diameter of 50 nm.

## Data availability

All data associated with this manuscript are available on the Zenodo repository at https://doi.org/10.5281/zenodo.5657298.

## Code availability

All analysis code and reconstruction algorithms associated with the work of this manuscript are available on the Zenodo repository at https://doi.org/10.5281/zenodo.5657298.

## References

1. Romera, M. et al. Vowel recognition with four coupled spin-torque nano-oscillators. Nature 563, 230–234 (2018).

2. Grollier, J. et al. Neuromorphic spintronics. Nat. Electron. 3, 360–370 (2020).

3. Skjærvø, S. H., Marrows, C. H., Stamps, R. L. & Heyderman, L. J. Advances in artificial spin ice. Nat. Rev. Phys. 2, 13–28 (2020).

4. Lehmann, J., Donnelly, C., Derlet, P. M., Heyderman, L. J. & Fiebig, M. Poling of an artificial magneto-toroidal crystal. Nat. Nanotechnol. 14, 141–144 (2019).

5. Streubel, R. et al. Magnetism in curved geometries. J. Phys. D 49, 363001 (2016).

6. Fernández-Pacheco, A. et al. Three-dimensional nanomagnetism. Nat. Commun. 8, 15756 (2017).

7. Sanz-Hernández, D. et al. Artificial double-helix for geometrical control of magnetic chirality. ACS Nano 14, 8084–8092 (2020).

8. Yan, M., Andreas, C., Kákay, A., García-Sánchez, F. & Hertal, R. Chiral symmetry breaking and pair-creation mediated Walker breakdown in magnetic nanotubes. Appl. Phys. Lett. 100, 252401 (2012).

9. Hertel, R. Curvature-induced magnetochirality. Spin 3, 1340009 (2013).

10. Hertel, R. Ultrafast domain wall dynamics in magnetic nanotubes and nanowires. J. Phys.: Condens. Matter 28, 483002 (2016).

11. Da Col, S. et al. Observation of Bloch-point domain walls in cylindrical magnetic nanowires. Phys. Rev. B 89, 180405 (2014).

12. Donnelly, C. et al. Time-resolved imaging of three-dimensional nanoscale magnetization dynamics. Nat. Nanotechnol. 15, 356–360 (2020).

13. Witte, K. et al. From 2D STXM to 3D imaging: soft X-ray laminography of thin specimens. Nano Lett. 20, 1305–1314 (2020).

14. Metlov, K. L. Cross-tie domain wall ground state in thin films. J. Low Temp. Phys. 139, 207–219 (2005).

15. Li, Z., Yang, F. & Yin, Y. Smart materials by nanoscale magnetic assembly. Adv. Funct. Mater. 30, 1903467 (2020).

16. Bhanja, S., Karunaratne, D. K., Panchumarthy, R., Rajaram, S. & Sarkar, S. Non-Boolean computing with nanomagnets for computer vision applications. Nat. Nanotechnol. 11, 177–183 (2016).

17. Romero-Isart, O., Navau, C., Sanchez, A., Zoller, P. & Cirac, J. I. Superconducting vortex lattices for ultracold atoms. Phys. Rev. Lett. 111, 145304 (2013).

18. Cao, Q. et al. Recent advances in manipulation of micro- and nano-objects with magnetic fields at small scales. Mater. Horiz. 7, 638–666 (2020).

19. Corte-León, H. et al. Magnetic imaging using geometrically constrained nano-domain walls. Nanoscale 11, 4478 (2019).

20. Sheka, D. D., Kravchuk, V. P., Yershov, K. V. & Gadidei, Y. Torsion-induced effects in magnetic nanowires. Phys. Rev. B 92, 054417 (2015).

21. Sheka, D. D., Kravchuk, V. P. & Gaididei, Y. Curvature effects in statics and dynamics of low dimensional magnets. J. Phys. A 48, 125202 (2015).

22. Gaididei, Y., Kravchuk, V. P. & Sheka, D. D. Curvature effects in thin magnetic shells. Phys. Rev. Lett. 112, 257203 (2014).

23. Skoric, L. et al. Layer-by-layer growth of complex-shaped three-dimensional nanostructures with focused electron beams. Nano Lett. 20, 184–191 (2020).

24. Abert, C., Exl, L., Bruckner, F., Drews, A. & Suess, D. magnum.fe: a micromagnetic finite-element simulation code based on FEniCS. J. Magn. Magn. Mater. 345, 29–35 (2013).

25. Volkov, O. M. et al. Experimental observation of exchange-driven chiral effects in curvilinear magnetism. Phys. Rev. Lett. 123, 077201 (2019).

26. Lewis, E. R. et al. Magnetic domain wall pinning by a curved conduit. Appl. Phys. Lett. 95, 152505 (2009).

27. O’Brien, L. et al. Near-field interaction between domain walls in adjacent permalloy nanowires. Phys. Rev. Lett. 103, 077206 (2009).

28. Donnelly, C. et al. Three-dimensional magnetization structures revealed with X-ray vector nanotomography. Nature 547, 328 (2017).

29. Donnelly, C. et al. Tomographic reconstruction of a three-dimensional magnetization vector field. New J. Phys. 20, 083009 (2018).

30. Yershov, K. V. et al. Geometry-induced motion of magnetic domain walls in curved nanostripes. Phys. Rev. B 98, 060409 (2018).

31. Gliga, S., Hertel, R. & Schneider, C. M. Switching a magnetic antivortex core with ultrashort field pulses. J. Appl. Phys. 103, 07B115 (2008).

32. Huber, E. E., Smith, D. O. & Goodenough, J. B. Domain-wall structure in permalloy films. J. Appl. Phys. 29, 294–295 (1958).

33. Hubert, A. & Schäfer, R. Magnetic Domains: the Analysis of Magnetic Microstructures (Springer, 1998).

34. Hrabec, A. et al. Velocity enhancement by synchronization of magnetic domain walls. Phys. Rev. Lett. 120, 227204 (2018).

35. O’Brien, L. et al. Dynamic oscillations of coupled domain walls. Phys. Rev. Lett. 108, 187202 (2012).

36. Parkin, S. S. P., Hayashi, M. & Thomas, L. Magnetic domain-wall racetrack memory. Science 320, 190–194 (2008).

37. Dawidek, R. W. et al. Dynamically-driven emergence in a nanomagnetic system. Adv. Funct. Mater. 31, 2008389 (2021).

38. Edgcombe, C. J. A phase plate for transmission electron microscopy using the Aharonov–Bohm effect. J. Phys. Conf. Ser. 241, 012005 (2010).

39. Stiller, M. et al. Functionalized Akiyama tips for magnetic force microscopy measurements. Meas. Sci. Technol. 28, 125401 (2017).

40. Mach-Batlle, R., Bason, M. G., Del-Valle, N. & Prat-Camps, J. Tailoring magnetic fields in inaccessible regions. Phys. Rev. Lett. 125, 177204 (2020).

41. Gliga, S. et al. Emergent dynamic chirality in a thermally driven artificial spin ratchet. Nat. Mater. 16, 1106–1111 (2017).

42. Pablo-Navarro, J., Magén, C. & de Teresa, J. M. Purified and crystalline three-dimensional electron-beam-induced deposits: the successful case of cobalt for high-performance magnetic nanowires. ACS Appl. Nano Mater. 1, 38–46 (2018).

43. Fernández-Pacheco, A. et al. Writing 3D nanomagnets using focused electron beams. Materials 13, 3774 (2020).

44. Holler, M. et al. Three-dimensional imaging of integrated circuits with macro- to nanoscale zoom. Nat. Electron. 2, 464–470 (2019).

45. Geuzaine, C. & Remacle, J.-F. Gmsh: a 3-D finite element mesh generator with built-in pre- and post-processing facilities. Numer. Methods Eng. 79, 1309–1331 (2009).

46. Abert, C. Micromagnetics and spintronics: models and numerical methods. Eur. Phys. J. B 92, 120 (2019).

## Acknowledgements

All data were measured at the PolLux beamline, Swiss Light Source, Paul Scherrer Institute, Switzerland. Samples were grown in the MCMP Group in the School of Physics, University of Glasgow. A.F.-P. is grateful to the University of Cambridge and the University of Glasgow, where part of this research was performed. We thank S. McFadzean, W. Smith and C. How for their support with sample fabrication, and P. Sutcliffe for fruitful discussions.

## Funding

This work was funded by an EPSRC Early Career Fellowship EP/M008517/1 and the Winton Programme for the Physics of Sustainability. This project received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (grant agreement no. 101001290). C.D. acknowledges funding from the Leverhulme Trust (ECF-2018-016), the Isaac Newton Trust (18-08), the L’Oréal–UNESCO UK and Ireland Fellowship For Women In Science 2019, and the Max Planck Society Lise Meitner Excellence Program. A.H.-R. and S.M. acknowledge support from the European Union’s Horizon 2020 research and innovation programme under Marie Skłodowska-Curie grant H2020-MSCA-IF-2016-746958. A.H.-R. acknowledges funding from the Spanish AEI under project PID2019–104604RB/AEI/10.13039/501100011033. The PolLux end station was financed by the German Bundesministerium für Bildung und Forschung (BMBF) through contracts 05K16WED and 05K19WE2. K.W. acknowledges funding from the European Union’s Horizon 2020 research and innovation programme under the Marie Skłodowska-Curie grant 701647. Open access funding provided by Max Planck Society.

## Author information

Authors

### Contributions

C.D., A.H.-R., D.S.-H. and A.F.-P. conceived the project. The samples were fabricated by C.D. with the support of A.H.-R., L.S. and A.F.-P. The synchrotron measurements were performed by C.D., A.H.-R., K.W., S.F., F.M. and A.F.-P., and data analysis by C.D., A.H.-R., K.W., D.S.-H. and A.F.-P. The three-dimensional magnetic reconstruction was developed and implemented by C.D., and the results interpreted by C.D., A.H.-R. and A.F.-P. Micromagnetic simulations were performed by C.D., A.H.-R. and C.A. with the support of D.S. All authors contributed to the interpretation of the results and the writing of the manuscript.

### Corresponding authors

Correspondence to Claire Donnelly or Amalio Fernández-Pacheco.

## Ethics declarations

### Competing interests

The authors declare no competing interests.

Peer review information Nature Nanotechnology thanks Rudolf Schaefer and the other, anonymous, reviewer(s) for their contribution to the peer review of this work.

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Extended data

### Extended Data Fig. 1 Comparison of experimental reconstruction with simulations.

The reconstructed x, y and z components of the magnetisation through a centre slice of the helix (a–c, respectively, with outlines indicating the helix structure) compared with the corresponding components of the magnetisation (d–f) of the micromagnetic simulation shown in g.

## Supplementary information

### Supplementary Information

Supplementary Discussion and Figs. 1–4.

### Supplementary Data 1

Source Data Supplementary Fig. 3. The source data for the phase diagrams are given as txt files.

### Supplementary Data 2

Source Data Supplementary Fig. 4. The source data for the two phase diagrams, for the case of nanowire radius 25 nm (orange) and 40 nm (purple) are given as txt files.

## Rights and permissions

Reprints and Permissions

Donnelly, C., Hierro-Rodríguez, A., Abert, C. et al. Complex free-space magnetic field textures induced by three-dimensional magnetic nanostructures. Nat. Nanotechnol. 17, 136–142 (2022). https://doi.org/10.1038/s41565-021-01027-7

• Accepted:

• Published:

• Issue Date:

• DOI: https://doi.org/10.1038/s41565-021-01027-7