Introduction

Two-dimensional (2D) lattices encompass a unique nature of ordering phenomena1,2,3,4,5, qualitatively different from 3D or other dimensions. Specifically, the transition between the solid phase—where translational quasi-long-range order (QLRO) is present—and the isotropic liquid phase can be marked by the emergence of an intermediate hexatic phase3,4. This hexatic phase possesses only orientational, but no translational QLRO and is described within the framework of the Kosterlitz–Thouless–Halperin–Nelson–Young (KTHNY) theory1,2,3,4,5.

Magnetic skyrmions—chiral spin textures that exhibit quasi-particle properties due to their topologically non-trivial spin structure6,7,8—are an ideal platform for exploring the fundamental physics of ordering in 2D9,10,11,12,13: In thin magnetic films with layer thicknesses of around 1 nm, skyrmion sizes can range from nanometers to a few micrometers8. This size range, combined with the uniformity of their texture across the film thickness, makes those skyrmions ideal 2D quasi-particles12. In Ta/CoFeB/MgO multilayer stacks, the repulsive interaction potential14,15,16,17 enables skyrmion arrangements of high densities to form ordered hexagonal lattices at room temperature10,12,16. Thereby, the thermal excitation of spins is sufficient to cause Brownian motion of the quasi-particle skyrmions18,19,20. The skyrmion dynamics is even tunable on the fly21 and the individual skyrmions can be tracked with high resolution imaging by Kerr microscopy in real-time and -space18,19,20. Therefore, their versatility in order to induce and observe the dynamics associated with the KTHNY phase transitions10 is a key advantage of skyrmions over previously studied colloidal22,23 or superconducting vortex24,25 systems.

However, achieving QLRO for skyrmion lattices in continuous thin films is challenging because of the underlying non-flat energy landscape10,11,12,26. The roughness of the energy landscape arises from non-uniform magnetic properties20,27 due to non-uniform interfaces or locally varying crystallinity within the material stack20,27,28,29,30,31. The material inhomogeneities cause preferred positions for the skyrmions – so-called pinning sites. The term pinning is often used to describe the general roughness of the energy landscape. It is however important to note that the overall non-flat landscape may feature both attractive and repulsive positions20,27,28,29,30,31 of varying strengths as a continuous variation of the energy of a skyrmion across the sample. In the energy landscape of thin films, skyrmions are typically pinned at their delineating domain wall, which makes pinning effects dependent on the skyrmion size20 and effectively tunable by magnetic field oscillations21. While theoretical predictions allow for the existence of QLRO in skyrmion lattices with weak pinning, stronger pinning suppresses ordering transitions entirely27,32,33. Experimental investigations have revealed that the non-flat energy landscape significantly impacts skyrmion lattice formation11,12, resulting in polycrystalline lattice domains, which are separated by domain boundaries (DB). Hence, QLRO is maintained only on a local scale within a domain, but broken by the DBs11,12. Overcoming the non-flat energy is therefore the key challenge to achieve single-crystal skyrmion lattices and to study emergent 2D phases and phase transitions on large scales.

In this article, we enhance the size of polycrystalline skyrmion lattice domains by exploiting the effective reduction of pinning due to magnetic field oscillations21. We study the interplay between the non-flat energy landscape and the lattice order. Specifically, we show that skyrmions, which stay pinned due to the effects of the non-flat energy landscape, cause domain boundaries between the lattice domains and support our experimental findings with Brownian dynamics simulations. Since enhancing lattice domain sizes towards true QLRO is the main challenge to observe true 2D phase behavior of skyrmions in thin films10,11,12, our results pave the way to experimentally explore the statics and dynamics of 2D phases and phase transitions in 2D skyrmion lattices.

Results and discussion

Field oscillations assist lattice ordering

We use a Ta(5 nm)/Co20Fe60B20(0.9 nm)/Ta(0.08 nm)/MgO(2 nm)/HfO2(3 nm) magnetic multilayer stack to nucleate densely packed skyrmions and establish magnetic out-of-plane (OOP) contrast in real space at 16 frames per second using Kerr microscopy (see Methods section for details). After nucleation, the field of view of 200 × 150 µm² contains between 4000 and 5000 skyrmions. Using the trackpy Python package34, we detect the skyrmions and calculate the local order parameter

$${\psi }_{6}\left({{{\bf{r}}}}_{{{\rm{j}}}}\right)=\frac{1}{{N}_{{nn}}}\mathop{\sum }\limits_{k=1}^{{N}_{{nn}}}{e}^{-i6{\theta }_{{{\rm{jk}}}}}$$

applying a Voronoi tessellation35 to determine the nearest lattice neighbors. Here, rj denotes the position of a particle with Nnn nearest neighbors at rk, and θjk represents the angle of the connecting vector rk-rj relative to a fixed arbitrary axis3. The phase of the complex value defines the local orientation α = arg(ψ6)/6 of the lattice.

Figure 1a shows the positions of the skyrmions as nucleated (t0 = 0 s), with their local orientations α color-coded. The schematics next to the color bar illustrates examples of different α, where the lattice orientation is highlighted by the differently aligned crystal axes depicted as gray lines. Note that the hexagonal lattice is six-fold symmetric – i.e., the color bar is cyclic with α = −30° being equivalent to α = 30°. Figure 1b shows the same skyrmion lattice, but after waiting for t1 = 60 s while an oscillating field of A = 180 µT peak-to-peak amplitude at a frequency f = 100 Hz is applied. Both at t0 and t1, we find a multi-domain structure with regions of equivalent orientation α, which we identify as lattice domains. Between those lattice domains, α changes abruptly, forming a domain boundary (DB) which breaks QLRO. The inset shows the polar Kerr microscopy snapshot of the corresponding region, where every white dot represents one skyrmion. During the waiting time of 60 s, we find a significant increase of the lattice domain size.

Fig. 1: Skyrmion lattice domain growth in oscillating fields.
figure 1

a Skyrmion positions colored by the lattice orientation α directly after nucleation. The orientation α (illustrated as gray line in color-bar label) is determined by the neighbor positions and is 6-fold symmetric. b After 60 s in an oscillating magnetic field (180 µT peak-to-peak at 100 Hz), the lattice domains have grown significantly. The insets show the corresponding Kerr microscopy image with greyscale representing the OOP-component mz of the magnetization. c Influence of the field oscillation amplitude on local order parameter ψ6, orientational correlation length ξ6, skyrmion diffusion coefficient D and number of skyrmions N. Data points and error bars denote average and standard deviation, respectively, of 10 s window (160 snapshots between 50 and 60 s after nucleation), averaged for three independent measurements each. As a trade-off of effectively reduced pinning and increased random diffusion, ψ6 and ξ6 (as measures of the order and lattice domain size, respectively) peak around A = 180 µT. Generally, increased oscillation amplitudes enhance the diffusion D and reduce the number of skyrmions N.

To quantify the lattice domain size, we calculate the orientational correlation function

$${G}_{6}(r=|{{{\bf{r}}}}_{{{\rm{j}}}}-{{{\bf{r}}}}_{{{\rm{k}}}}|)=\left\langle {\psi }_{6}^{* }({{{\bf{r}}}}_{{{\rm{j}}}}){\psi }_{6}({{{\bf{r}}}}_{{{\rm{k}}}})\right\rangle \propto \exp \left(-r/{\xi }_{6}\right)$$

as spatial quantifier of orientational order. In the absence of QLRO, G6 decays exponentially with a correlation length ξ6, which provides a measure for the lattice domain size3,4,10. While the lattice domains also grow slightly at constant applied field, the field oscillations significantly enhance the ordering effect. In Fig. 1c, we demonstrate that introducing field oscillations (f = 100 Hz) can significantly enhance both the orientational order 〈|ψ6|〉 and the domain size measured by ξ6. As field oscillations effectively reduce pinning21, skyrmions are enabled to rearrange into larger lattice domains. Similar driving mechanisms have already been reported to lead to depinning and lattice formation of superconducting vortices36. In principle, alternative driving mechanisms like current-induced motion26,37, local heating38 or surface acoustic waves39 have also been shown to assist skyrmion depinning and therefore provide potential alternatives to stabilize skyrmion lattice order – either separately or even in combined approaches. Here, we use magnetic field oscillations as they act isotropic and since we can apply the excitation on the fly within the relevant field range and time scale. In contrast, additional patterning or devices are necessary for the other techniques.

During the driving by the oscillating field, the system is expected to exhibit non-equilibrium properties. Unlike for superconducting vortices however, the skyrmion order persists even when the driving mechanism (i.e., the field oscillations causing the depinning) is switched off. That is, after switching off the driving by the oscillating field, an equilibrium lattice with significantly enhanced order remains. However, there is a threshold for this mechanism: at large amplitudes (here, A > 180 µT), the increased diffusivity—similar to an elevated effective temperature—appears sufficient to counteract lattice stability, leading to a decreased order again. We further show that the diffusion coefficient D of the skyrmions increases monotonously with A. At the same time, larger amplitudes cause increasing annihilation events and decrease the number of present skyrmions N (Fig. 1c). The time evolution of all shown parameters as well as the correlation function G6 are shown in Supplementary Fig. 1. Additionally, we characterize the effect in a similar scan of varying amplitude at f = 500 Hz as well as in a frequency scan at fixed amplitude in Supplementary Fig. 2. Here, we use the frequency of 100 Hz as it leads to a maximum enhancement of the skyrmion diffusion in this system.

Annihilations are a result of skyrmions being destabilized in the field oscillation. This effect has previously been observed for isolated skyrmions21. In a dense lattice, it becomes pronounced already for smaller amplitudes A due to the strong skyrmion-skyrmion interactions present14. Therefore, especially skyrmions in “overpopulated” regions tend to annihilate. Note that the packing fraction—i.e., the area occupied by skyrmions—is predominantly set by the magnetic hysteresis. Therefore, skyrmion annihilations do typically not lead to a reduction of the packing fraction but to an increased size of the remaining skyrmions. Consequently, annihilations may solve space conflicts of individual skyrmions in “overpopulated” regions, which can facilitate the ordering process—provided the overall skyrmion density remains sufficient to stabilize an ordered lattice, as seen here. If too many skyrmions annihilate, the remaining skyrmions expand into stripes.

We note that despite the effective reduction of pinning effects due to the oscillating field21, remaining effects of the non-flat energy landscape are still present20. As pinning effects have been shown to play an important role for breaking QLRO11,12,27,40, we now analyze the role of the non-flat energy landscape during the lattice formation. This effective energy landscape could previously be determined directly from the occurrence probability of the skyrmions as a result of the spatially inhomogeneous skyrmion-material interaction20,26. However, in dense systems such as in a skyrmion lattice, skyrmion-skyrmion interactions between the particles themselves play an important role14,16. Those interactions also affect the occurrence distribution of skyrmions as illustrated in Supplementary Fig. 3, for instance when a skyrmion is confined by its lattice neighbors. Hence, the effects of the skyrmion-skyrmion interaction and the pining potential cannot be decoupled, and a direct determination of the energy landscape remains inaccessible in this regime. Instead, we access the effect of pinning indirectly though the resulting lattice properties in the following.

Pinning effects confine lattice domains geometrically

As the non-flat energy landscape hampers QLRO and instead favors a “polycrystalline” structure with multiple domains, we first analyze the occurrence of lattice domains and domain boundaries. The orientation α is uniform within a lattice domain but changes at a DB. Therefore, we determine the orientation change Δα between neighboring skyrmions. We assign to every connection between nearest neighbors in the skyrmion lattice the absolute value of the change in orientation and interpolate these values onto the pixel grid. We show the determined Δα as background in Fig. 2a. For visualization, we overlay the corresponding orientation data from Fig. 1b as scattered dots, so that the orientation change Δα between the lattice domains (i.e., clusters of similar color) becomes clearly visible. The existence of a DB, however, is independent of the exact value of Δα – as long as it exceeds the typical fluctuations of a few degrees within a domain. Thus, we define all orientation changes Δα above a threshold of 10° as DB.

Fig. 2: Lattice domain boundary analysis.
figure 2

a The scattered dots mark the skyrmion positions and local orientation α as in Fig. 1b. The background colormap visualizes the absolute change Δα in orientation between neighboring skyrmions as an interpolated map, which highlights the positions of the domain boundaries. The black rectangle serves as reference marker for the following analysis. b Considering every Δα > 10° as a DB, the grayscale map yields a probability map of hosting a DB during the 1000 frames of the 62.5 ms video of lattice formation.

In Fig. 2b, we present the probability of hosting a DB for each pixel within 62.5 s (1000 frames) after nucleation. The domains fluctuate, rearrange, and grow from t0 to t1 (snapshots in Fig. 1a, b, respectively). Despite the fluctuations due to the diffusive dynamics, the DB occurrence probability map in Fig. 2b reveals significant spatial variations: some regions consistently host DBs, while others remain firmly inside lattice domains—suggesting an effective pinning of DBs.

To examine the ordering details on a local scale, we now zoom into the area marked by a black rectangle in Fig. 2. For this region of interest, we recall in Fig. 3a–c both the skyrmion positions (from Fig. 2a) and the DB occurrence probability map (from Fig. 2b), for reference. We color the occurring skyrmions by their local lattice orientation α (Fig. 3a), local order parameter |ψ6| (Fig. 3b) and number of lattice neighbors (Fig. 3c), respectively. The small red dots mark where the absolute orientation change Δα between two skyrmions exceeds 10°, contributing to a DB. Neighboring red dots are further connected by red lines to illustrate the DB contour. The marked red boundaries align well with positions where α changes in Fig. 3a, validating our DB identification. Since the orientational order is disrupted locally along a DB, we see in Fig. 3b that the corresponding local order parameter |ψ6| is reduced at these positions. This disruption also gives rise to topological defects, characterized by the number of lattice neighbors differing from the perfect order with six neighbors.

Fig. 3: Pinning effects induce lattice domain boundaries.
figure 3

Onto the DB occurrence probability of the rectangle as greyscale background, we superimpose the a local orientation, b |ψ6| and c number of lattice neighbors for every skyrmion as dots using the data from Fig. 2a for a more detailed visualization. Red dots denote the occurrences of Δα > 10° between neighboring skyrmions and the red lines mark the corresponding domain boundaries. As the orientation changes along such boundaries, the local order |ψ6| is reduced and lines of topological defects occur. d Average Kerr contrast for three different Kerr videos of 1 min length in the marked circular areas. The yellow dashed line serves as marker to map positions of high domain wall occurrence probability from (a). Despite the three different nucleations, we find significant average contrast due to skyrmions at the positions where we have found high probability of a DB, thus indicating pinning effects. Contrarily, different configurations arise elsewhere as seen by the blurred contrast. e, f Plotting local orientation α of the two different nucleations (snapshots 60 s after nucleation) as colored dots onto the grayscale map of Δα from (ac), we find again that domain boundaries of Δα > 10° (red lines) overlap with the DB occurrence probability from before, corroborating that pinning plays an important role for the occurrence of domain boundaries.

Next we probe the reproducibility of the skyrmion boundary formation. Since skyrmion pinning effects are a local material property, they are independent of the specific skyrmion configuration resulting from a nucleation event. Therefore, we compare the skyrmion occurrences in the same area but from different nucleations to analyze the DB pinning effect. Firstly, we investigate the circular areas marked in Fig. 3a, where the DB occurrence probability is particularly high. In Fig. 3d, we average the Kerr intensity for these circles across three videos, each capturing the first 62.5 s (1000 frames) of a newly nucleated skyrmion lattice. Despite averaging over three nucleations (with respective independent lattice domain formations) and long observation times relative to the diffusion timescale, we observe significant contrast. This contrast indicates that skyrmions recur at identical positions over time and across re-nucleations. For reference, we add (to Fig. 3d) a dashed yellow contour along which the DB occurrence probability in Fig. 3a is particularly high. These regions of high DB occurrence probability align well with the recurring skyrmions. In contrast, the intensity is more diffuse in areas further away from the primary DB positions, suggesting more fluctuations there. Therefore, we conclude that pinning effects play a crucial role in the formation of DBs within the skyrmion lattice, which inhibit QLRO and favor a polycrystalline multi-domain arrangement.

To further support this conclusion, we analyze snapshots showing the local orientation α (scattered dots) and DBs (red) from the second and third nucleation in Fig. 3e, f, respectively. In both cases, we plot the DB occurrence probability map from the first nucleation as the background (i.e., from Fig. 2b) for reference. The DBs identified in these additional snapshots frequently align with those from the first nucleation. As these DBs recur at identical positions across different nucleations, our observations confirm that the pinning of individual skyrmions effectively pins DBs within the lattice. As a result, pinned DBs suppress domain rearrangement towards QLRO, instead acting as geometric confinement for lattice domains.

To understand our experimental findings, we perform corresponding Brownian dynamics Thiele model simulations to elucidate the role of the non-flat energy landscape for the formation of lattice domains and DBs.

Simulation results

We simulate skyrmion lattices within the Thiele model using a typical repulsive skyrmion interaction potential10,14 (see Methods). The simulations are conducted at a fixed density of 1.25, which places the system deep within the solid phase in the absence of an external potential landscape10,17.

First, we use an experimentally derived skyrmion energy landscape20 as the potential energy input (Supplementary Fig. 4), varying only the depth of the potential landscape while keeping the skyrmion density constant. As shown in Fig. 4a, introducing a non-flat energy landscape results in a multi-domain skyrmion lattice. Pinning reduces the average local order ψ6, the orientational correlation length ξ6 and the diffusion coefficient D (Fig. 4a). As the depth of the potential landscape decreases, all three quantities—ψ6, ξ6 and D—increase, consistent with the experimental observations. However, beyond a certain point, further increases in lattice order lead to a decrease in D, as the system favors preserving order over maximizing diffusivity. In the experiment, these opposing effects cannot be disentangled, as field oscillations primarily enhance diffusivity21.

Fig. 4: Pinning leads to multi-domain states.
figure 4

a We use an experimentally determined energy landscape in a Brownian dynamics simulation of 5300 particles at density 1.25, which is deep in the solid phase in the absence of a potential. The pinning leads to reduced local orientational order ψ6, smaller correlation length ξ6, and suppressed diffusivity. D is given in terms of the nearest neighbor distance r0 and the simulation time unit STU. When the pinning is reduced in the simulation, ψ6, ξ6, and D increase. For increasing order, D decreases again to preserve lattice order. Data points and error bars denote average and standard deviation, respectively, of the last 200 writeouts, averaged for four independent simulation runs each. b Local lattice orientation α for individual skyrmions (dots) at differently strong pinning. While stronger pinning with only 20% reduction of the energy landscape leads to polycrystalline lattice multi-domain state, reducing pinning by 70% results in an almost uniform α. c For the rectangle highlighted in (b), we show the experimental energy landscape (left) and the occurring domain boundaries (right). The grayscale background is the domain boundary occurrence probability throughout the 800 writeouts in 80 STU. The red markers denote the domain boundaries identified in (b).

In Fig. 4b, we show that strong pinning results in small domains extending over only a few particles, while weaker pinning allows for increasingly uniform lattice orientation α. For a selected region of interest (Fig. 4c), we present the experimental energy landscape used in the simulation and the associated DBs. The landscape consists of energy variations on the scale of the skyrmion diameter, forming randomly distributed pinning sites separated by energy barriers of varying height on the order of few kBT. By analyzing 80 simulation time units (STU) of an equilibration, we demonstrate that this heterogeneous energy landscape leads to a highly inhomogeneous probability for domain boundary occurrence. Some DBs appear to remain persistently pinned by the landscape.

To further understand the mechanism of DB pinning, we next introduce designed synthetic energy landscapes into the simulation. In Fig. 5, we employ a landscape composed of randomly distributed angle-shaped pinning features. Each feature spans three skyrmion spacings in both directions and has a depth of −7.5 kBT relative to the flat background. The opening angle is set to 135°, which is deliberately chosen to be incommensurate with the hexagonal lattice. The background of Fig. 5a shows the DB occurrence probability over 80 STU, revealing a clearly inhomogeneous distribution. This minimal pattern suffices to create distinct lattice domains and to effectively pin DBs.

Fig. 5: Artificially designed pinning of lattice domain boundaries.
figure 5

a In a simulation of 5000 particles at density 1.25, we introduce 40 randomly spread angle-shaped patterns (green) with an energy −7.5 kBT with respect to the flat background potential. Throughout a simulation run, the domain boundary probability map remains inhomogeneous with regions of high occurrence probability around and between the angle patterns. b Snapshot of the local lattice orientation α per skyrmions after 100 STU. Distinct domains of different α form. The orientation changes in regions, where also the overall domain boundary occurrence probability is high. While some of the angle patterns (green) mark domain boundaries, others are located within a lattice domain.

Figure 5b shows a snapshot of the local lattice orientation α per skyrmion after 80 STU. At several locations, α changes sharply at the angle-shaped pinning sites, which mark and anchor DBs. However, these angles can also be located within a single domain, merely inducing local distortions. While domain configurations fluctuate, DBs tend to connect the angular pinning features, though the specific features involved vary over time.

To explore the influence of different pinning geometries, we compare several synthetic patterns. In the case of linear pinning features (Supplementary Fig. 5), domain fragmentation along the pinning lines is unfavorable, as the lines are commensurate with the lattice. Instead, the lines tend to stabilize the interior of a domain and confine DBs to the interstitial regions. Conversely, a landscape consisting of overlapping sinusoidal lines (Supplementary Fig. 6)—which are incommensurate with the hexagonal lattice—favors domain fragmentation. Since the sinusoidal lines are curved, a single domain covering the sine is unfavorable. Instead, breaking of the domains is induced. However, the continuous curvature does not anchor one fixed DB but instead causes small domains and DBs in its vicinity.

In the experimental system, the material’s energy landscape is random in nature21,26 and likely incommensurate with the hexagonal skyrmion lattice, as shown in Fig. 3d. Additionally, the observed pinning features predominantly exhibit a local character, resembled by the angle-shaped patterns used in the simulation (Fig. 5).

Conclusions

The non-flat skyrmion energy landscape in magnetic thin films has been known to be the key inhibitor of quasi-long-range order (QLRO) of skyrmion lattices11,12. In this work, we demonstrate how skyrmion pinning effects in a non-flat energy landscape cause the local stabilization of lattice domain boundaries. The effectively pinned domain boundaries delineate and confine the polycrystalline lattice domains, breaking QRLO. As we can effectively tune the energy landscape and reduce pinning effects by magnetic field oscillations21, we can significantly increase the size of the lattice domains, leading to enhanced average local order. We therefore provide a key enabler to access intrinsic properties and dynamics of skyrmion lattices10 and their fundamental 2D phase behavior—within the limit of domains as well as towards single crystals of true QLRO in the future. The oscillating fields furthermore allow us to study both equilibrium and non-equilibrium phase behavior. Different mechanisms like current-induced motion26,37, local heating38 or surface acoustic waves39 may also depin36 and increase lattice domains in an alternative or additional approach. We reproduce our experimental results by quasi-particle simulations and we show that local modifications of the energy landscape41,42 in order to deterministically pin single skyrmions at their ideal lattice sites pose an option to stabilize artificial lattices on larger scales—in a reverse engineering approach to access lattice properties beyond the current observations in systems with a natural energy landscape.

Methods

Magnetic multilayer material

The magnetic thin film stack is deposited using DC/RF magnetron sputtering in a Singulus Rotaris system under a base pressure of 3 × 10−8 mbar. We use a stack composition of Ta(5 nm)/Co20Fe60B20(0.9 nm)/Ta(0.08 nm)/MgO(2 nm)/HfO2(3 nm) (with layer thicknesses in nanometers, accurate to within 0.01 nm). The perpendicular magnetic anisotropy (PMA, at the Co20Fe60B20/MgO interface) and the interfacial Dzyaloshinskii-Moriya interaction (DMI, primarily at the Ta/Co20Fe60B20 interface)43,44 are key ingredients for the stabilization of magnetic skyrmions in our thin film. Thereby, the dusting layer of Ta(0.08 nm) optimizes the material for low pinning and skyrmion lattice formation by fine-tuning the balance between DMI and PMA18,45. The non-trivial topology of our magnetic skyrmion structures is confirmed by driving skyrmions using spin-orbit-torques as well as by micromagnetic simulations18,19,20,46. We show the magnetic hysteresis curve for an out-of-plane (OOP) field cycle loop in Supplementary Fig. 7.

Experimental setup

To image magnetic skyrmions in the multilayer compound, we operate a commercially available Kerr microscope manufactured by evico magnetics GmbH in polar mode, resulting in grayscale contrast of the OOP magnetization. With a blue LED light source and a CCD camera, we reach a resolution of 200–400 nm and 62.5 ms (16 fps) in real-time and -space. We control and monitor the sample temperature with a Peltier element and a Pt100 with a precision of 0.1 K, respectively18,20. Enclosing the entire microscope in a thermally stabilized flow box further improves temperature stability. Electromagnetic coils provide independent magnetic fields in in-plane(IP) and OOP direction. The OOP field coil is custom-made to allow field control with sub-µT precision to ensure stable measurement conditions for the skyrmion system.

While a magnetic OOP offset field is required to stabilize skyrmions, a saturating IP field pulse is used to nucleate skyrmions while keeping the temperature constant. We control the density of the nucleated skyrmions by the OOP offset and IP pulsed field20,47,48. Under the varying oscillating fields described in the main text, we take videos of 62.5 s length (1000 frames) and detect skyrmions by the trackpy Python package34, which is based on 2D Gaussian kernel fitting. Due to the skyrmions being a collective spin ensemble spanning over many pixels, the detection works with sub-pixel precision20. Except for the geometric patterned confinements, the magnetic film exceeds the field of view by more than one order of magnitude and is therefore considered as continuous, where we neglect boundary effects.

Lattice order and diffusion analysis

From the detected skyrmion positions, we apply a Voronoi tessellation35 to determine lattice neighbors. From the Voronoi grid, we determine the complex local order parameter ψ6 for every skyrmion. The local lattice orientation directly follows as α = arg(ψ6)/612. We then calculate the orientational correlation function G6 as a function of distance r for every frame10. As no quasi-long-range order (QLRO) is present due to multi-domain structures32, we determine the decay of the correlation function as an exponential \(\propto \exp (-r/{\xi }_{6})\) with a correlation length ξ63,4, which we use as a measure for the lattice domain size. As an additional result of the Voronoi tessellation, we directly gain information about topological lattice defects1,2: every skyrmion with a number of lattice neighbors Nnn different from 6 (which is the case in a purely hexagonal lattice structure) is a topological defect.

To evaluate the diffusivity of the skyrmions, we use trackpy34 to link the skyrmion coordinates r from the single frames at time t to trajectories. We then calculate the mean squared displacement

$${{\rm{MSD}}}(t)=\left\langle {\left[{{\bf{r}}}\left(t\right)-{{\bf{r}}}\left({t}_{0}\right)\right]}^{{{\bf{2}}}}\right\rangle =2{dDt}$$

with respect to a start time t0 by averaging over all skyrmion trajectories as indicated by the angled brackets18,21. Since the MSD is related to the diffusion coefficient D via the time t and the system dimensionality d = 2, we extract D as a linear fit over a 1 s interval. The accessible fit region is limited in the experiment as it required reliable trajectory linking over the full fit window. We can use any time t0 as starting time to evaluate the time evolution of the diffusion coefficient10.

The occurrence probability p of skyrmions at low skyrmion densities can furthermore be used to determine the energy landscape. Following a well-established procedure20,26, we determine the energy landscape in units of kBT as −ln(p). The sample used for the lattice measurements features only high skyrmion densities at the measurement temperature. Reducing temperature allows also lower densities, but increases the skyrmion size (which is relevant for the energy landscape) and suppresses the relevant thermal skyrmion diffusion. Since sparse (and thermally diffusing) skyrmions are required in this procedure to minimize contributions from skyrmion-skyrmion interactions, we use a different, similar sample (Ta(5 nm)/Co20Fe60B20(0.9 nm)/Ta(0.09 nm)/MgO(2 nm)/Ta(5 nm) measured at 316 K) to obtain a realistic energy landscape for the simulations.

Brownian dynamics simulation

We use Brownian dynamics simulations in the Thiele model49 to simulate thermally diffusing skyrmions. Sets {r} of skyrmions at positions r positions with velocity v, the damping γ (effective skyrmion damping for Brownian Dynamics simulation, not the Gilbert damping) and satisfy the equation of motion14,26

$$-\gamma {{\bf{v}}}-{G}_{{{\rm{rel}}}}\gamma {{{\bf{e}}}}_{z}\times {{\bf{v}}}+{{{\bf{F}}}}_{{{\rm{therm}}}}+{{{\bf{F}}}}_{{{\rm{SkSk}}}}\left(\{{{\bf{r}}}\}\right)+{{{\bf{F}}}}_{{{\rm{pin}}}}\left({{\bf{r}}}\right)=0$$

while using γ = 1 in simulation units. Since the relative Magnus force strength Grel is negligible in our system, we do not consider the term in the simulations. The dynamics is influenced by several forces F: the thermal white noise Ftherm (fulfilling the fluctuation-dissipation), skyrmion-skyrmion interactions FSkSk, and pinning forces Fpin originating from a non-flat energy landscape. Based on previous experiments10,14, we use a skyrmion-skyrmion interaction potential V(r) = r−8 with a cutoff distance of 3 simulation units. While theoretical studies50,51,52,53,54 have shown the possibility to adjust the original Thiele equation by adding a mass term, we can confidently estimate the inertia of the skyrmion to be negligible in our system using previous determinations of mass55 and damping26.

The equation of motions are integrated using a Heun algorithm and periodic boundary conditions. Writeouts are performed every 10,000 simulation time steps, which corresponds to every 0.1 simulation time units (STU). The lattices are typically equilibrated after 20 STU (thus, 200 writeouts). The density of the skyrmions is determined as number of particles per squared simulation length unit. The system is initialized as a square lattice.