<!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>
      <journal-title-group>
        <journal-title>Khabarovsk, Russia
EMAIL: kapitan.diu@students.dvfu.ru (Dmitrii Yu. Kapitana)
ORCID:</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Optimization of the Hybrid Edwards-Anderson Model Monte-Carlo Algorithm for the</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Dmitrii Yu. Kapitan</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Alexey E. Rybin</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Petr D. Andriushchenko</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Aleksandr G. Makarov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yuriy. A. Shevchenko</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Konstantin S. Soldatov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Vitalii Yu. Kapitan</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Konstantin V. Nefedev</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Computer Systems, School of Natural Sciences, Far Eastern Federal University</institution>
          ,
          <addr-line>Vladivostok, 690922, 10 Ajax Bay, Russian Federation</addr-line>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>ITMO University</institution>
          ,
          <addr-line>Kronverksky Pr. 49, bldg. A, St. Petersburg, 197101, Russian Federation</addr-line>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Institute of Applied Mathematics, Far Eastern Branch, Russian Academy of Science</institution>
          ,
          <addr-line>Vladivostok, 690041, 7 Radio St., Russian Federation</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2021</year>
      </pub-date>
      <volume>000</volume>
      <fpage>0</fpage>
      <lpage>0001</lpage>
      <abstract>
        <p>This article describes the principle of using Hybrid Monte-Carlo method in spin glasses using the Edwards-Anderson model as an example. We consider efficient algorithm for searching ground states of frustrated systems. We discuss two optimizations for this algorithm in order to find the most efficient. We implement and test algorithm on a two-dimensional square lattice of Edwards-Anderson model. The advantages of using the Hybrid Monte-Carlo method in spin glasses are revealed.</p>
      </abstract>
      <kwd-group>
        <kwd>1 Hybrid Monte-Carlo algorithm</kwd>
        <kwd>Spin Glass</kwd>
        <kwd>Ground State</kwd>
        <kwd>Edwards-Anderson model</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Frustrated magnetic interactions are one of the most fiercely debated topics in condensed matter
physics [
        <xref ref-type="bibr" rid="ref1 ref2">1, 2</xref>
        ]. Interest in spin systems where frustrations, as a result of a special lattice topology or
competition exchange interactions, suppresses the Neel antiferromagnetic order is greatly stimulated
by the search for new magnetic ground states and unique excitations which can arise instead. A
magnetic system with disorder in bonds often exhibits a short-ranged order, indicating that the system
cannot form a true thermodynamic ground state and thus becomes frustrated. This state of matter,
socalled spin glass, with a multitude of a ground state degeneracy has drawn colossal interest over the
past decades.
      </p>
      <p>Spin glasses are disordered magnetics which characterised by two main characteristics that
strongly distinguish these systems from others: in such systems there is a strong competition between
ferromagnetic and antiferromagnetic interactions, i.e., 'frustrations', and disorder - the freezing (or
solidification) of atoms at different locations during alloy formation. These factors provide key
features of such structures. In such systems with competing interactions, unlike conventional
magnetics, no long-range magnetic order arises with decreasing temperature. But neither does a slow,
gradual freezing of spins occur. Spin glasses have long relaxation times and a rough energy
landscape, so both analytical description and numerical modelling of such systems is challenging. The
processes occurring in such systems cannot be described in terms of classical phase transition theory.</p>
      <p>This paper proposes optimized versions of the hybrid algorithm for finding the ground state values
of the Edwards-Anderson model.

= − ∑      − ℎ ∑  ,</p>
      <p>〈 , 〉

(1)</p>
    </sec>
    <sec id="sec-2">
      <title>2. Edwards-Anderson model</title>
      <p>
        In 1975 S. Edwards and P. Anderson suggested changing the distribution function of the exchange
interaction in the Ising model to a more complex one, such as the one where the exchange integral  
is a random function and the average value of   is zero[
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
      </p>
      <p>The interaction</p>
      <p>
        between a spin pair ( ) changes as one goes from one pair to another. The
Hamiltonian is then expressed as:
where   ,   are spins of the system, 〈 ,  〉 denotes summarizing over the lattice with size N, h
external magnetic field. The interaction can be ferromagnetic or antiferromagnetic: in the first case,
the interaction arranges spins along one direction; in the second case, the state with antiparallel
direction of spins becomes the most advantageous for the system. The exchange interaction can occur
directly between a pair of magnetic particles (direct exchange interaction), as well as in the presence
of the intermediary particle (indirect exchange interaction). Therefore, the magnitude of the exchange
interaction may strongly depend on the lattice geometry (mutual arrangement of atoms) and the
distance between spins [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ].
      </p>
    </sec>
    <sec id="sec-3">
      <title>3. Hybrid Monte-Carlo</title>
      <p>
        Monte Carlo methods, such as the Metropolis or Wang-Landau algorithms, are not only actively
used to study various physical systems [
        <xref ref-type="bibr" rid="ref5 ref6 ref7">5,6,7,8,9</xref>
        ] but also continue to actively develop and improve
due to current Monte Carlo methods have some weaknesses. Single-spin sampling methods suffer
from critical deceleration and applying of multicanonical methods has difficulties in calculating the
thermodynamics of relatively large systems. The use of single-spin Monte-Carlo methods (e.g. the
Metropolis algorithm) to calculate the ground state of systems with coarse energy landscapes is
problematic [10]. To overcome the large energy barriers separating the quasi- degenerated
configurations of the frustrated Ising magnetic, which prevent one from finding their energy-preferred
low-energy states, applying of quasi-Markov processes in the thermodynamics of multi-spin clusters
is required.
      </p>
      <p>To solve the problem of thermodynamics of frustrated vector models of complex systems with
many interacting bodies, searching for ground state configurations, we propose new optimizations for
the Hybrid multi-spin method, described in [11].
3.1.</p>
    </sec>
    <sec id="sec-4">
      <title>HMC with Monte-Carlo inside kernel</title>
      <p>First, authors tried to divide the lattice into sub-lattices with modulation inside such kernels. The
algorithm is worked as follows:
•
•
•
•
•
•
•
•</p>
      <sec id="sec-4-1">
        <title>Spin lattice with periodic boundary conditions is created</title>
      </sec>
      <sec id="sec-4-2">
        <title>For each spin from the lattice the neighbours are defined</title>
      </sec>
      <sec id="sec-4-3">
        <title>The initial energy calculation is performed</title>
      </sec>
      <sec id="sec-4-4">
        <title>Spin lattice is divided on several sublattices, as shown in Figure 1</title>
      </sec>
      <sec id="sec-4-5">
        <title>Inside those small areas Monte Carlo simulation is started</title>
      </sec>
      <sec id="sec-4-6">
        <title>The configuration with the lowest energy in kernel is taken</title>
      </sec>
      <sec id="sec-4-7">
        <title>Kernels are moved in lattice</title>
      </sec>
      <sec id="sec-4-8">
        <title>After the termination of n cycles, the algorithm is stopped</title>
        <p>This algorithm has shown a good efficiency, however accuracy of this method in searching
Ground State is still inappropriate. This is the reason for another suggestion.
3.2.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>HMC with exact solution inside kernel</title>
      <p>Next assumption was to choose spins as midpoint of kernel with the highest energy. The work of
this algorithm is presented below: An example of numbered list is as following.
1. Spin lattice with periodic boundary conditions is created
2. For each spin from the lattice the neighbours are defined
3. The initial energy calculation is performed
4. Spins are randomly chosen from the list of spins with max energy as shown in Figure 2
5. The energy and magnetization of all possible configurations of kernels and the boundary
block of spins are computed by brute force algorithm</p>
      <p>Step 5 is repeated until thermodynamic equilibrium is reached in the system. The criterion for
stopping the algorithm can be a given number of iterations or reaching a given temperature value.</p>
    </sec>
    <sec id="sec-6">
      <title>4. Results</title>
      <p>To compare the two algorithms, a program was created on the C++. The algorithms were tested on
a square lattice of the two-dimensional Edwards-Anderson model, where bonds have had bimodal
distribution, i.e. amount of ferromagnetic and antiferromagnetic bonds was equal. To calculate the
ground state of different systems, the number of spins was set as N = 6x6, 10x10, 20x20, 30x30.
Calculations were carried out for a supercomputer cluster. To compare the results, the data were
obtained using the algorithm of exact solution, and the parallel tempering algorithm. The results are
showed good potential of Hybrid Monte-Carlo with exact solution in kernel in searching ground states
of frustrated models, see Table 1. Hybrid Monte-Carlo with MC in kernel, despite its efficiency, had
not shown an appropriate result. This can probably be explained by problems with defining direction
of spins on the border between sublattices. After choosing the algorithm, authors started to investigate
the behaviour of staggered magnetization as a function of different values of the external magnetic
field on the example of Edwards-Anderson model with size N = 6x6. The results were compared to
algorithm of exact solution, please, check Table 1 3. Also, authors decided to study the values of the
ground state spin excess. The results were compared to algorithm of exact solution, as well, see Table
1 4.</p>
    </sec>
    <sec id="sec-7">
      <title>5. Conclusion</title>
      <p>In this paper, algorithms were considered for finding ground states in the Edward-Anderson
model. Authors looked at Hybrid Monte-Carlo algorithms with different approaches during
modulation of kernels: exact solution and Monte-Carlo. A program was also written to compare two
algorithms within the framework of the conditions we are interested in. After that, using the best
approach key characteristics were calculated. On the basis of the obtained results, it can be concluded
that when choosing an algorithm for searching ground states, one should use a Hybrid Monte-Carlo
algorithm with exact solution inside kernel.</p>
      <p>In the future, the approach can be extended to the case of a complex sign-variable exchange
longrange interaction. Also, it is interesting to investigate the ground state of three-dimensional
EdwardsAnderson spin glass.</p>
    </sec>
    <sec id="sec-8">
      <title>6. Acknowledgements</title>
      <p>This work was financially supported by the state task of the Ministry of Science and Higher
Education of Russia No. 0657-2020-0005.</p>
      <p>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" [12], 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).
7. References
[8] V. Kapitan and K. Nefedev, Labyrinth domain structure in the models with long-range
interaction, J. Nano- Electron. Phys. 6, (2014) 03005.
[9] V. Kapitan, et al., Numerical simulation of magnetic skyrmions on flat lattices, AIP Advances
11(1) (2021) 015041. doi:10.1063/9.0000082.
[10] M. Jesi, Spin Glasses: Criticality and Energy Landscapes, Springer, 2016
[11] A. G. Makarov, K. V. Makarova, Y. A. Shevchenko, P. D. Andriushchenko, V. Y. Kapitan, et
al., On the numerical calculation of frustrations in the Ising model, JETP Letters 110 (2019) 702–
706. doi: 10.1134/S0021364019220090.
[12] A.A. Sorokin, S.V. Makogonov, S.P. Korolev, The Information Infrastructure for Collective
Scientific Work in the Far East of Russia // Scientific and Technical Information Processing. 44
(4) (2017) 302-304. doi:10.3103/S0147688217040153.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>G.</surname>
          </string-name>
          <article-title>Toulouse, Theory of the frustration effect in spin glasses: I, Commun</article-title>
          . Phys.,
          <year>1977</year>
          , Vol.
          <volume>2</volume>
          , pp.
          <fpage>115</fpage>
          -
          <lpage>119</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>S.</given-names>
            <surname>Bramwell</surname>
          </string-name>
          [et al.],
          <source>Frustrated Spin Systems</source>
          , HT Diep, Ed. World Scientific,
          <year>2004</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>S. F.</given-names>
            <surname>Edwards</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. W.</given-names>
            <surname>Anderson</surname>
          </string-name>
          ,
          <article-title>Theory of spin glasses</article-title>
          ,
          <source>J. Phys. F.</source>
          ,
          <year>1975</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>D.</given-names>
            <surname>Kapitan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Rybin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Andriushchenko</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Kapitan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Vasiliev</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Nefedev</surname>
          </string-name>
          ,
          <article-title>Calculation of order parameter and critical exponents of the spin glass in the frame of Edwards-Anderson model</article-title>
          , in: Solid State Phenomena,
          <volume>312</volume>
          (
          <year>2020</year>
          )
          <fpage>251</fpage>
          -
          <lpage>255</lpage>
          . doi:
          <volume>10</volume>
          .4028/www.scientific.net/SSP.312.251.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <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="ref6">
        <mixed-citation>
          [6]
          <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="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>D.</given-names>
            <surname>Yu</surname>
          </string-name>
          . Kapitan,
          <string-name>
            <given-names>A. E.</given-names>
            <surname>Rybin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E. V.</given-names>
            <surname>Vasiliev</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. V.</given-names>
            <surname>Perzhu</surname>
          </string-name>
          ,
          <source>The Comparison of DFS and BFS Methods on 2D Ising Model, CEUR Workshop Proceedings</source>
          ,
          <volume>2426</volume>
          , pp.
          <fpage>147</fpage>
          -
          <lpage>152</lpage>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>