<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Thanks so much for your reply! I will try it.</p>
<p><br>
</p>
<p>By the way, there are may be some missing <span style="font-size: 12pt;">INTEGER(HID_T) </span><span style="font-size: 12pt;">kind definitions of int data type at the Fortran source code about the tebd application, For example,</span></p>
<p>at tebd/core/Hdf5Interface.f90 </p>
<p>-------------------------------------------</p>
<p><br>
</p>
<p>INTEGER, INTENT(INOUT) :: groupId --> INTEGER(HID_T), INTENT(INOUT) :: groupId<br>
</p>
<p><br>
</p>
<p>-------------------------------------------</p>
<p><br>
</p>
<p>When I compile the source code, I met some int kind mismatch errors. These errors disappeared after I change the source code. It may be a bug about ALPS.</p>
<p><br>
</p>
<p>Best,</p>
<p>Rongyang</p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols, Helvetica, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;">
<p>-----------------------------------------------------------------</p>
<p>Rongyang Sun</p>
<p>Ph.D. Candidate</p>
<p>Theoretical Quantum Matter Physics</p>
<p>Institute for Advanced Study, Tsinghua University, Beijing 100084, China</p>
<p>E-mail: sunry15@mails.tsinghua.edu.cn; sun-rongyang@outlook.com</p>
<p> </p>
<p><br>
</p>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>发件人:</b> Comp-phys-alps-users <comp-phys-alps-users-bounces@lists.phys.ethz.ch> 代表 Michele Dolfi <michele.dolfi@gmail.com><br>
<b>发送时间:</b> 2017年9月1日 16:42:03<br>
<b>收件人:</b> comp-phys-alps-users@lists.phys.ethz.ch<br>
<b>主题:</b> Re: [ALPS-users] Total particle number can not be conserved using ALPS TEBD simulation</font>
<div> </div>
</div>
<div>I don’t really know the tebd code, but the mps_evolve has the same features and it is definitely able to conserve quantum numbers as well as running other models.
<div class=""><a href="https://alps.comp-phys.org/mediawiki/index.php/ALPS_2_Tutorials:_MPS-05_bhquench" class="">https://alps.comp-phys.org/mediawiki/index.php/ALPS_2_Tutorials:_MPS-05_bhquench</a></div>
<div class=""><br class="">
</div>
<div class="">We never really rewrote the text of the tutorial, but in the installation directory you will find a script that runs the bhquench example, as well as others.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">Best,<br class="">
<div class=""><span class="Apple-style-span" style="border-collapse: separate; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; line-height: normal; border-spacing: 0px;">
<div class="">Michele</div>
<div class=""><br class="">
</div>
</span><br class="Apple-interchange-newline">
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 27 Aug 2017, at 16:52, Sun Rongyang <<a href="mailto:sun-rongyang@outlook.com" class="">sun-rongyang@outlook.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div id="divtagdefaultwrapper" dir="ltr" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;" class="">
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Dear ALPS users,</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">When I follow the ALPS TEBD tutorial about hard-core boson model(<a href="http://alps.comp-phys.org/mediawiki/index.php/ALPS_2_Tutorials:TEBD-01_bhquench" class="OWAAutoLink" id="LPlnk305156" previewremoved="true">http://alps.comp-phys.org/mediawiki/index.php/ALPS_2_Tutorials:TEBD-01_bhquench</a>)
 by Python, I measured the average particle number for each site, i.e. 'Avg Number' except the<span class="Apple-converted-space"> </span><span style="font-size: 12pt;" class="">'Loschmidt Echo' and 'V' by the following python code:</span></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="font-size: 12pt;" class=""><br class="">
</span></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">data = pyalps.load.loadTimeEvolution(pyalps.getResultFiles(prefix='1D_HardcoreBosonModel'), measurements=['Loschmidt Echo', 'V', 'Avg Number'])<span style="font-size: 12pt;" class=""><br class="">
</span></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Then I found the <span style="font-size: 12pt;" class="">'Avg Number' equals 0.3! This means that the total particle number is 0.3*10=3, not 5. In the tutorial, the conserved quantum number is 'N_total':
 5. When I change the 'N_total' to 1 and 10, I got the same 'Avg Number'=0.3</span></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><span style="font-size: 12pt;" class=""><br class="">
</span></div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Can any one give me some help? Thanks a lot!</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Best regards,</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Rongyang Sun</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
<div id="Signature" class="">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols, Helvetica, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;" class="">
<div style="margin-top: 0px; margin-bottom: 0px;" class="">-----------------------------------------------------------------</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Rongyang Sun</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Ph.D. Candidate</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Theoretical Quantum Matter Physics</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Institute for Advanced Study, Tsinghua University, Beijing 100084, China</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">E-mail:<span class="Apple-converted-space"> </span><a href="mailto:sunry15@mails.tsinghua.edu.cn" class="">sunry15@mails.tsinghua.edu.cn</a>;<span class="Apple-converted-space"> </span><a href="mailto:sun-rongyang@outlook.com" class="">sun-rongyang@outlook.com</a></div>
<p style="margin-top: 0px; margin-bottom: 0px;" class=""> </p>
<div style="margin-top: 0px; margin-bottom: 0px;" class=""><br class="">
</div>
</div>
</div>
</div>
<br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">----</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Comp-phys-alps-users
 Mailing List for the ALPS Project</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<a href="http://alps.comp-phys.org/" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">http://alps.comp-phys.org/</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">List
 info:<span class="Apple-converted-space"> </span></span><a href="https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Archive:<span class="Apple-converted-space"> </span></span><a href="https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Unsubscribe
 by writing a mail to<span class="Apple-converted-space"> </span></span><a href="mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">comp-phys-alps-users-leave@lists.phys.ethz.ch</a><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">.</span></div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>