<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.swarma.org/index.php?action=history&amp;feed=atom&amp;title=From_dynamics_to_equilibrium</id>
	<title>From dynamics to equilibrium - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.swarma.org/index.php?action=history&amp;feed=atom&amp;title=From_dynamics_to_equilibrium"/>
	<link rel="alternate" type="text/html" href="https://wiki.swarma.org/index.php?title=From_dynamics_to_equilibrium&amp;action=history"/>
	<updated>2026-11-02T19:26:17Z</updated>
	<subtitle>本wiki的该页面的版本历史</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://wiki.swarma.org/index.php?title=From_dynamics_to_equilibrium&amp;diff=34753&amp;oldid=prev</id>
		<title>13944556914：/* 相关wiki */</title>
		<link rel="alternate" type="text/html" href="https://wiki.swarma.org/index.php?title=From_dynamics_to_equilibrium&amp;diff=34753&amp;oldid=prev"/>
		<updated>2024-05-21T07:46:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;相关wiki&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2024年5月21日 (二) 07:46的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l50&quot; &gt;第50行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第50行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;待润色&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;复杂系统]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;[[category:旧词条迁移&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>13944556914</name></author>
	</entry>
	<entry>
		<id>https://wiki.swarma.org/index.php?title=From_dynamics_to_equilibrium&amp;diff=15273&amp;oldid=prev</id>
		<title>思无涯咿呀咿呀：创建页面，内容为“==Metropolis sampling== Given the parameters of the Ising model (&lt;math&gt;\textstyle\beta, \{J_{ij}\}&lt;/math&gt;), one can use the Metropolis sampling (also called Glauber…”</title>
		<link rel="alternate" type="text/html" href="https://wiki.swarma.org/index.php?title=From_dynamics_to_equilibrium&amp;diff=15273&amp;oldid=prev"/>
		<updated>2020-10-15T07:22:21Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“==Metropolis sampling== Given the parameters of the Ising model (&amp;lt;math&amp;gt;\textstyle\beta, \{J_{ij}\}&amp;lt;/math&amp;gt;), one can use the Metropolis sampling (also called Glauber…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Metropolis sampling==&lt;br /&gt;
Given the parameters of the Ising model (&amp;lt;math&amp;gt;\textstyle\beta, \{J_{ij}\}&amp;lt;/math&amp;gt;), one can use the Metropolis sampling (also called Glauber dynamics) to sample the Boltzmann distribution.&lt;br /&gt;
&lt;br /&gt;
To collect 'm' configurations that independently sampled from the Boltzmann distribution, the procedure is detailed below:&lt;br /&gt;
* starting from an initial configuration &amp;lt;math&amp;gt;\textstyle\underline\sigma&amp;lt;/math&amp;gt; (for example a random configuration);&lt;br /&gt;
* for t = 1:m&lt;br /&gt;
**for t'=1:T&lt;br /&gt;
***randomly select a spin, say 'i', set its value according to probability &amp;lt;math&amp;gt;\textstyle P(\sigma_i | \underline \sigma)=\frac{ e^{\beta\sigma_i\sum_jJ_{ij}\sigma_j}}{2\cosh\beta\sum_jJ_{ij}\sigma_j}&amp;lt;/math&amp;gt;&lt;br /&gt;
**end&lt;br /&gt;
**record the current configuration.&lt;br /&gt;
*end&lt;br /&gt;
We can see that to collect 'm' configurations, totally 'mT' configurations are generated, where a ''large-enough'' constant 'T' is the relaxation time to make sure that configurations are sampled independently.&lt;br /&gt;
&lt;br /&gt;
==Detailed balance and equilibrium==&lt;br /&gt;
The configurations generated in the way described above form  a Markov chain. So above procedure is usually called ''Markov Chain Monte Carlo (MCMC)'' simulation or ''Gibbs sampling''.&lt;br /&gt;
We know that the system has an ''equilibrium'' if the Markov Chain is reversible, in physics it is called ''Detailed Balance''. That is for two consecutive configurations &lt;br /&gt;
:&amp;lt;math&amp;gt;\underline\sigma=\{\sigma_1,\sigma_2,...,\sigma_i,...,\sigma_n\}&amp;lt;/math&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
:&amp;lt;math&amp;gt;\underline\sigma=\{\sigma_1,\sigma_2,...,-\sigma_i,...,\sigma_n\},&amp;lt;/math&amp;gt;&lt;br /&gt;
we ask&lt;br /&gt;
:&amp;lt;math&amp;gt;P(\underline\sigma\to\underline s)P(\underline\sigma)=P(\underline s\to \underline\sigma)P(\underline s).&amp;lt;/math&amp;gt;&lt;br /&gt;
Next we are going to show the condition for the detailed balance and the result distribution associated with the equilibrium.&lt;br /&gt;
&lt;br /&gt;
First of all we see that the transition probabilities between two configurations are given by&lt;br /&gt;
:&amp;lt;math&amp;gt;P(\underline\sigma\to\underline s)=\frac{ e^{-\beta\sigma_i\sum_jJ_{ij}\sigma_j}}{2\cosh\beta\sum_jJ_{ij}\sigma_j},&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;P(\underline s\to\underline \sigma)=\frac{ e^{\beta\sigma_i\sum_jJ_{ij}\sigma_j}}{2\cosh\beta\sum_jJ_{ij}\sigma_j}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then the condition for detailed balance is written as&lt;br /&gt;
:&amp;lt;math&amp;gt;e^{-\beta\sigma_i\sum_jJ_{ij}\sigma_j}P(\underline\sigma)=e^{\beta\sigma_i\sum_jJ_{ij}\sigma_j}P(\underline s),&amp;lt;/math&amp;gt;&lt;br /&gt;
which implies that&lt;br /&gt;
:&amp;lt;math&amp;gt;P(\underline\sigma)\propto e^{\frac{1}{2}\beta\sum_i\sum_jJ_{ij}\sigma_i\sigma_j}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Inserting the last equation into the detailed-balance-condition gives&lt;br /&gt;
:&amp;lt;math&amp;gt;e^{-\beta\sum_j\sigma_i\sigma_jJ_{ij}+\frac{1}{2}\beta\sum_j\sigma_i\sigma_jJ_{ij}+\frac{1}{2}\beta\sigma_i\sigma_jJ_{ji}}=e^{\beta\sum_j\sigma_i\sigma_jJ_{ij}-\frac{1}{2}\beta\sum_j\sigma_i\sigma_jJ_{ij}-\frac{1}{2}\beta\sigma_i\sigma_jJ_{ji}},&amp;lt;/math&amp;gt;&lt;br /&gt;
which evaluates to&lt;br /&gt;
:&amp;lt;math&amp;gt;e^{\beta\sum_j\sigma_i\sigma_jJ_{ij}}=e^{\beta\sum_j\sigma_i\sigma_jJ_{ji}}.&amp;lt;/math&amp;gt;&lt;br /&gt;
So above condition can be satisfied iff &lt;br /&gt;
:&amp;lt;math&amp;gt;J_{ij}=J_{ji}&amp;lt;/math&amp;gt;&lt;br /&gt;
:&amp;lt;math&amp;gt;J_{ii}=0&amp;lt;/math&amp;gt;&lt;br /&gt;
and the associated equilibrium distribution is Boltzmann distribution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==相关wiki==&lt;br /&gt;
*[[Ising模型]]&lt;br /&gt;
*[[ISING模型的重正化]]&lt;br /&gt;
*[[Ising模型与最大熵分布]]&lt;br /&gt;
*[[From dynamics to equilibrium]]&lt;br /&gt;
*[[Cavity method and belief Propagation for the Ising model]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:复杂系统]]&lt;br /&gt;
[[category:旧词条迁移]]&lt;/div&gt;</summary>
		<author><name>思无涯咿呀咿呀</name></author>
	</entry>
</feed>