<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Computer Simulation of Skyrmions on a Square Lattice</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Radio St.</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Russian Federation</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>690950</institution>
          ,
          <addr-line>8 Sukhanova St., Russian Federation</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Aleksander Perzhu</institution>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Department of Computer Systems, School of Natural Sciences, Far Eastern Federal University</institution>
          ,
          <addr-line>Vladivostok</addr-line>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>Institute of Applied Mathematics, Far Eastern Branch, Russian Academy of Science</institution>
          ,
          <addr-line>Vladivostok, 690041, 7</addr-line>
        </aff>
        <aff id="aff4">
          <label>4</label>
          <institution>Konstantin Nefedev</institution>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2021</year>
      </pub-date>
      <fpage>14</fpage>
      <lpage>16</lpage>
      <abstract>
        <p>We studied a square lattice of spins in frame of Heisenberg model with direct exchange and Dzyaloshinskii-Moriya interaction. For the analysis of data obtained during the Monte Carlo simulation, a convolutional neural network was used for the recognition of different phases of the spin system, which was dependent on simulation parameters such as DMI and external magnetic field (Hz). Based on these data, the phase diagram (Hz,D) was plotted. The various states of the systems under observation were visualized, and the boundaries between the different phases were defined as spirals, skyrmions and others. We proposed the controlling method for movement of skyrmions using by Monte Carlo simulation. Monte Carlo method, convolutional neural network, magnetic skyrmion, Heisenberg model, VI International Conference Information Technologies and High-Performance Computing (ITHPC-2021),</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Spintronics or magnetic electronics is continually evolving, and new promising materials for new
storage and processing data devices are emerging. Skyrmions are attractive candidates for information
carriers in a new type of non-mechanical magnetic medium - a racetrack memory - because they are
only a few nanometers in size, very stable, and can be driven by pulses of spin-polarized currents. At
a fundamental level, skyrmions are model systems for topologically protected spin structures and can
be regarded as an analogue of topologically protected states, emphasizing the role of topology in the
formation of complex states of condensed matter [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. The creation, detection and control of individual
skyrmions have become especially relevant topics in connection with the possible implementation of
physical devices based on skyrmions in spintronics. For the development of control methods for
magnetic skyrmions in a magnetic nanostrip, it is necessary to conduct a detailed analysis of the
simulation parameters and the correlations between them in order to select the optimal parameters for
further studies of magnetic skyrmions.
      </p>
      <p>In our paper, the conditions for the nucleation and stable existence of magnetic skyrmions in
twodimensional magnetic films were considered in the frame of the classical Heisenberg model. For
computer simulation, we used the Metropolis algorithm. For the analysis of the data obtained during
the Monte Carlo simulation, a convolutional neural network (CNN) was used for the recognition of
different phases of the spin system, depending on simulation parameters such as
DzyaloshinskiiMoriya interaction and the external magnetic field (Hz). Based on these data, the phase diagram
(Hz,D) was plotted. Also, we proposed the controlling method for the movement of skyrmions.</p>
      <p>2020 Copyright for this paper by its authors.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Model and algorithms 2.1.</title>
    </sec>
    <sec id="sec-3">
      <title>Mathematical model</title>
      <p>
        In 1960 Dzyaloshinskii presented a model to describe weak ferromagnetism [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. Based on
symmetries he introduced an asymmetrical term which later on was clarified by Moriya [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. The
Dzyaloshinskii-Moriya (DMI) interaction is a microscopic characteristic of interacting spins that
occurs in a system that lacks inversion symmetry and has a strong spin-orbit coupling. The
Heisenberg model is one of the models used in statistical physics to model ferromagnetism. It is used
in the study of critical points and phase transitions of different magnetic systems. We used the lattice
Hamiltonian, consisting of Heisenberg exchange (HJ) and DMI interaction (HD) terms for the
microscopic description of a chiral helimagnet [
        <xref ref-type="bibr" rid="ref4 ref5 ref6">4-6</xref>
        ], see formulas (1-3).
      </p>
      <p>= (  +   +   ) +   ,
  = − ∑  ⃗ ⋅ ( ⃗ + ̂ +  ⃗ + ̂ ) −   ∑  ⃗ −   ∑ ⃗|⃗⃗⃗ |2,
  = − ∑  ⃗ ×  ⃗ + ̂ ⋅  ̂ +  ⃗ ×  ⃗ + ̂ ⋅  ̂,
(1)
(2)
(3)
where  ⃗ is the atomic spin,  is the value of ferromagnetic short-range exchange interaction,  is the
value of DMI, Hz – an external magnetic field and a magnetic anisotropy coefficient is HA.
2.2.</p>
    </sec>
    <sec id="sec-4">
      <title>Metropolis algorithm</title>
      <p>The Metropolis algorithm is used to determine the global minimum. The main idea is to uniformly
sample the state space with a given distribution probability. At each iteration of the sample, the
configuration of the system changes due to a change in the orientation of a randomly selected spin.
The configuration is accepted and becomes the initial one for the next step if the new energy value is
greater than the previous one ( 1 &gt;  2); otherwise, it is accepted with the probability:
 (  →   ) =  ( ((  )) , 1) (4)</p>
      <p>
        Due to this, the algorithm avoids getting stuck in local minima. Convergence is achieved after
passing a given number of Monte Carlo steps until the moment when the standard deviation reaches a
specified minimum, depending on the problem being solved [
        <xref ref-type="bibr" rid="ref10 ref7 ref8 ref9">7-10</xref>
        ]. C++ and Rust programming
languages were used for software development, providing possibilities for the independent calculation
of the properties of the spin systems. We used dimensionless quantities in J units for the simulation.
The software has been verified for the Heisenberg model [
        <xref ref-type="bibr" rid="ref11 ref12">11,12</xref>
        ].
2.3.
      </p>
    </sec>
    <sec id="sec-5">
      <title>Convolutional neural network for states classification</title>
      <p>
        We used configurations of spin systems obtained at different simulation parameters for the training
and subsequent classification of them in a neural network. To date, the most accurate analysis results
are demonstrated by neural networks based on convolutional architecture. We used the TensorFlow
library to create a convolutional neural network [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] and to classify our spin systems to different
phases [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ].
      </p>
      <p>In our research, we have reduced the problem of determining the phases of spin systems to the
problem of image classification - in fact, to the main problem area in which neural networks are used.
For recognising images, CNN accepts them in the RGB format as a three-dimensional matrix. In our
case, the convolutional neural network received as input a three-dimensional array representing the
components of a three-dimensional spin in the frame of the Heisenberg model.</p>
      <p>Following this, the convolutional neural network learned, using the training dataset, to highlight
the features inherent in one or another spin configuration. Our CNN consists of next layers (main
ones), see Figure 1:
1. Input layer</p>
      <p>Input data (configurations of spins), each of the neurons (spins) of which is assigned an initial
random weight. The components of a three-dimensional vector were fed to the network input (i.e., the
components of Heisenberg spin). The dataset was prepared using Monte Carlo simulation data for
training the neural network in state recognition.
2. Convolutional layer with 3×3 filter</p>
      <p>When neurons are connected to only a few neurons in the next layer, the layer is said to be
convolutional. The convolutional layer acts as a filter that discards the least informative parts of the
input data. Each layer has filters (i.e., matrices with weight values). When the filter moves along the
matrix of the previous layer, each filter element is multiplied by the value of the neuron, and the
values are summed up and written to the feature map.</p>
      <p>3. Pooling layer for reducing the dimensions of the data
4. Fully connected layer</p>
      <p>Fully connected layers are used for classification. All layers before the fully connected layer are
used to highlight various features that are fed to the input of the classifier. This layer can also be used
as the final (output) CNN layer, the result of which is the probability of the input configuration of
spins belonging to a certain class.</p>
    </sec>
    <sec id="sec-6">
      <title>3. Results and discussions</title>
      <p>We studied different phases that appeared depending on the magnitude of the
DzyaloshinskiiMoriya interaction D and the external magnetic field Hz at fixed temperature T, see Figure 2. The
convolutional neural network was used to analyze the data obtained from the Monte Carlo simulations
for the recognition of the different phases of the spin system, dependent on the simulation parameters.</p>
      <p>In a magnetic film, with an increase of the magnetic field strength and DMI, various phases were
observed for the flat Heisenberg spin systems: Spiral (Sp), Spiral-skyrmion (SpSk) Skyrmion (Sk),
Skyrmion-ferromagnetic (SkF) and Ferromagnetic (FM) phases, see Figure 3. In Skyrmion phase, due
to the alignment of the stripes against the magnetic field, stable skyrmions are formed in the system.
In these skyrmions, the spins of the nucleus are directed against the magnetic field. In this study,
skyrmions of the Bloch type were formed.</p>
      <p>We could also “push” the skyrmion from one side of the sample to another using the increasing of
a magnetic anisotropy. This is a rather precise method, see Figure 4. In frame of this numerical
experiment, we have an anisotropy gradient from 0.9 on the left side of the sample to 0.1 on the other
side. We have an incline plane of anisotropy gradient. And we increase the value of anisotropy step
by step for pushing the skyrmion. In the physical experiment, it is possible to control the anisotropy
applying the voltage to the sample.</p>
    </sec>
    <sec id="sec-7">
      <title>4. Conclusion</title>
      <p>In the frame of the classical two-dimensional Heisenberg model, a spin system with direct
shortrange exchange was modelled, and a study of its competition with the Dzyaloshinskii-Moriya
interaction was carried out. Due to the direct exchange interaction, the neighboring spins of the
system are collinearly aligned and, in turn, the Dzyaloshinskii-Moriya interaction contributes to the
deviation of the spins from parallel orientation. As a result, competition results between collinear and
noncollinear alignments of spins, which leads to the transition of the system of spins from a
ferromagnetic to a spiral ground state. In the presence of an external magnetic field, stable topological
structures - magnetic skyrmions - are generated in such systems.</p>
      <p>In this paper, we proposed a method for manipulation of the position of a skyrmion using by a
control of anisotropy gradient.</p>
      <p>We performed MC simulation and the convolutional neural network was used for the recognition of
the different phases of the spin systems, depending on the simulation parameters. For the visualisation
and analysis of research data, the phase diagram (Hz,D) was plotted.</p>
      <p>The data obtained in the numerical experiments will be used in our further studies to determine the
model parameters of the system for the formation of a stable skyrmion state, both in the form of
individual skyrmions and skyrmion lattices and for the development of methods for controlling
skyrmions in magnetic stripes.</p>
    </sec>
    <sec id="sec-8">
      <title>5. Acknowledgements</title>
      <p>
        This work was supported in frame of joint program "Mikhail Lomonosov" of the Ministry of
Science and Higher Education of Russia and German Academic Exchange Service (DAAD)
(#229821). The studies were carried out using the resources of the Center for Shared Use of Scientific
Equipment "Center for Processing and Storage of Scientific Data of the Far Eastern Branch of the
Russian Academy of Sciences" [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ], funded by the Russian Federation represented by the Ministry of
Science and Higher Education of the Russian Federation under project No. 075-15-2021-663.
Additional computing resources were provided by the FEFU supercomputer cluster (cluster.dvfu.ru).
6. References
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>N.</given-names>
            <surname>Nagaosa</surname>
          </string-name>
          and
          <string-name>
            <given-names>Y.</given-names>
            <surname>Tokura</surname>
          </string-name>
          ,
          <article-title>Topological properties and dynamics of magnetic skyrmions</article-title>
          ,
          <source>Nature nanotechnology 8</source>
          (
          <year>2013</year>
          )
          <fpage>899</fpage>
          -
          <lpage>911</lpage>
          . doi:
          <volume>10</volume>
          .1038/nnano.
          <year>2013</year>
          .243
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>I.</given-names>
            <surname>Dzyaloshinsky</surname>
          </string-name>
          ,
          <article-title>A thermodynamic theory of “weak” ferromagnetism of antiferromagnetics</article-title>
          ,
          <source>J. of Physics and Chemistry of Solids</source>
          <volume>4</volume>
          (
          <year>1958</year>
          )
          <fpage>241</fpage>
          -
          <lpage>255</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>T.</given-names>
            <surname>Moriya</surname>
          </string-name>
          ,
          <article-title>Anisotropic superexchange interaction and weak ferromagnetism</article-title>
          ,
          <source>Physical Review</source>
          <volume>120</volume>
          ,
          <issue>91</issue>
          (
          <year>1960</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>A.</given-names>
            <surname>Belemuk</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Stishov</surname>
          </string-name>
          ,
          <article-title>Phase transitions in chiral magnets from Monte Carlo simulations</article-title>
          ,
          <source>Physical Review B</source>
          <volume>95</volume>
          (
          <issue>22</issue>
          ) (
          <year>2017</year>
          )
          <fpage>224433</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>V.</given-names>
            <surname>Kapitan</surname>
          </string-name>
          , et al.,
          <article-title>Numerical simulation of magnetic skyrmions on flat lattices</article-title>
          ,
          <source>AIP Advances 11(1)</source>
          (
          <year>2021</year>
          )
          <article-title>015041</article-title>
          . doi:
          <volume>10</volume>
          .1063/9.0000082.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>E.</given-names>
            <surname>Vasil</surname>
          </string-name>
          <article-title>'ev</article-title>
          , et al.
          <article-title>Numerical simulation of two-dimensional magnetic skyrmion structures</article-title>
          ,
          <source>Computer Research and Modeling</source>
          ,
          <volume>12</volume>
          (
          <issue>5</issue>
          ) (
          <year>2020</year>
          )
          <fpage>1051</fpage>
          -
          <lpage>1061</lpage>
          . doi:
          <volume>10</volume>
          .20537/2076-7633-2020-12- 5-
          <fpage>1051</fpage>
          -1061.
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>K.</given-names>
            <surname>Nefedev</surname>
          </string-name>
          and
          <string-name>
            <given-names>V.</given-names>
            <surname>Kapitan</surname>
          </string-name>
          ,
          <article-title>Concentration phase transition and hysteresis phenomena in conanofilms. computer data processing and simulation</article-title>
          ,
          <source>in Advanced Materials Research</source>
          ,
          <fpage>718</fpage>
          -
          <lpage>720</lpage>
          (
          <year>2013</year>
          )
          <fpage>69</fpage>
          -
          <lpage>73</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>V.</given-names>
            <surname>Kapitan</surname>
          </string-name>
          and
          <string-name>
            <given-names>K.</given-names>
            <surname>Nefedev</surname>
          </string-name>
          ,
          <article-title>Labyrinth domain structure in the models with long-range interaction</article-title>
          ,
          <source>J. Nano- Electron. Phys. 6</source>
          , (
          <year>2014</year>
          )
          <fpage>03005</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>K. S.</given-names>
            <surname>Soldatov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K. V.</given-names>
            <surname>Nefedev</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V. Y.</given-names>
            <surname>Kapitan</surname>
          </string-name>
          , and
          <string-name>
            <given-names>P. D.</given-names>
            <surname>Andriushchenko</surname>
          </string-name>
          ,
          <article-title>Approaches to numerical solution of 2d ising model</article-title>
          ,
          <source>J. of Physics: Conference Series</source>
          ,
          <volume>741</volume>
          (
          <issue>1</issue>
          ) (
          <year>2016</year>
          )
          <article-title>012199</article-title>
          . doi:
          <volume>10</volume>
          .1088/
          <fpage>1742</fpage>
          -6596/741/1/012199.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>A. G.</given-names>
            <surname>Makarov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K. V.</given-names>
            <surname>Makarova</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y. A.</given-names>
            <surname>Shevchenko</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. D.</given-names>
            <surname>Andriushchenko</surname>
          </string-name>
          , et al.,
          <article-title>On the numerical calculation of frustrations in the Ising model</article-title>
          ,
          <source>JETP Letters 110</source>
          (
          <year>2019</year>
          )
          <fpage>702</fpage>
          -
          <lpage>706</lpage>
          . doi:
          <volume>10</volume>
          .1134/S0021364019220090.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>V. Y.</given-names>
            <surname>Kapitan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y. A.</given-names>
            <surname>Shevchenko</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. V.</given-names>
            <surname>Perzhu</surname>
          </string-name>
          , and
          <string-name>
            <given-names>E. V.</given-names>
            <surname>Vasiliev</surname>
          </string-name>
          ,
          <article-title>Thermodynamic properties of Heisenberg spin systems</article-title>
          , in Key Engineering Materials,
          <volume>806</volume>
          (
          <year>2019</year>
          )
          <fpage>142</fpage>
          -
          <lpage>154</lpage>
          . doi:
          <volume>10</volume>
          .4028/www.scientific.
          <source>net/KEM.806.142</source>
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>V.</given-names>
            <surname>Kapitan</surname>
          </string-name>
          , E. Vasil'ev,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Shevchenko</surname>
          </string-name>
          , et al.,
          <article-title>Thermodynamic properties of heisenberg spin systems on a square lattice with the Dzyaloshinskii-Moriya interaction</article-title>
          ,
          <source>Dal'nevostochnyi Matematicheskii Zhurnal [Far Eastern Mathematical Journal</source>
          ]
          <volume>20</volume>
          (
          <year>2020</year>
          )
          <fpage>63</fpage>
          -
          <lpage>73</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>M.</given-names>
            <surname>Abadi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Barham</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Chen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Davis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Dean</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Devin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Ghemawat</surname>
          </string-name>
          , G. Irving,
          <string-name>
            <given-names>M.</given-names>
            <surname>Isard</surname>
          </string-name>
          , et al.,
          <article-title>Tensorflow: A system for large scale machine learning</article-title>
          ,
          <source>in 12th fUSENIXg symposium on operating systems design and implementation (fOSDIg 16)</source>
          (
          <year>2016</year>
          )
          <fpage>265</fpage>
          -
          <lpage>283</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>J.</given-names>
            <surname>Carrasquilla</surname>
          </string-name>
          and
          <string-name>
            <given-names>R. G.</given-names>
            <surname>Melko</surname>
          </string-name>
          ,
          <article-title>Machine learning phases of matter</article-title>
          ,
          <source>Nature Physics</source>
          <volume>13</volume>
          (
          <year>2017</year>
          )
          <fpage>431</fpage>
          -
          <lpage>434</lpage>
          . doi:
          <volume>10</volume>
          .1038/nphys4035.
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>A.A.</given-names>
            <surname>Sorokin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.V.</given-names>
            <surname>Makogonov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.P.</given-names>
            <surname>Korolev</surname>
          </string-name>
          ,
          <source>The Information Infrastructure for Collective Scientific Work in the Far East of Russia // Scientific and Technical Information Processing</source>
          .
          <volume>44</volume>
          (
          <issue>4</issue>
          ) (
          <year>2017</year>
          )
          <fpage>302</fpage>
          -
          <lpage>304</lpage>
          . doi:
          <volume>10</volume>
          .3103/S0147688217040153.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>