<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">MEASURE_AVERAGE is compute the average among all sites, i.e. a scalar value.<div class="">MEASURE_LOCAL returns a list of measurements on all sites.</div><div class=""><br class=""></div><div class="">Best,</div><div class="">Michele</div><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">--</div><div class="">ETH Zurich</div><div class=""><span style="text-align: -webkit-auto;" class="">Dr.</span><span style="text-align: -webkit-auto;" class=""> </span>Michele Dolfi</div><div class="">Institute for Theoretical Physics</div><div class="">HIT G 32.4</div><div class="">Wolfgang-Pauli-Str. 27</div><div class="">8093 Zurich</div><div class="">Switzerland</div><div class=""><br class=""></div><div class=""><a href="mailto:dolfim@phys.ethz.ch" class="">dolfim@phys.ethz.ch</a></div><div class=""><a href="http://www.itp.phys.ethz.ch" class="">www.itp.phys.ethz.ch</a></div><div class=""><br class=""></div><div class="">+41 44 633 78 56 phone</div><div class="">+41 44 633 11 15 fax </div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 6 Feb 2017, at 08:50, Robertson Esperanza <<a href="mailto:robbie.esperanza@gmail.com" class="">robbie.esperanza@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Oh, I forgot to mention that I'm using mps_optim application. How does the result of MEASURE_AVERAGE differ from MEASURE_LOCAL, if let's say I use "n" for these parameters? Thanks<br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, Feb 6, 2017 at 3:08 PM, Michele Dolfi <span dir="ltr" class=""><<a href="mailto:dolfim@phys.ethz.ch" target="_blank" class="">dolfim@phys.ethz.ch</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Hello,<div class=""><br class=""></div><div class="">Could you please be a bit more specific about the application you are running?</div><div class=""><br class=""></div><div class="">You are right about the local measurement, but you need MEASURE_LOCAL, since you want to value at each site. Since the n_i^2 operator is not yet defined in the model library, you need to add it yourself. Basically I would do as follow:</div><div class="">1. Copy the file models.xml from ALPS_ROOT/lib/xml/models.xml, where ALPS_ROOT is the root location of your alps installation.</div><div class=""><br class=""></div><div class="">2. Add this definition to your local copy, it defines the n^2 operator</div><div class=""><SITEOPERATOR name=“n_squared"<wbr class=""> site="x"><br class="">  n(x)*n(x)<br class=""></SITEOPERATOR><br class=""><br class=""></div><div class="">3. In your input parameters you have now to link to your new model file.</div><div class="">MODEL_LIBRARY=“path/to/models.<wbr class="">xml”</div><div class=""><br class=""></div><div class="">4. And add your measurement</div><div class="">MEASURE_LOCAL[Density^2] = “ n_squared"</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Hope this helps.</div><div class=""><br class=""></div><div class="">Best,</div><div class="">Michele</div><div class=""><br class=""><div class="">
<div style="font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><div class="">--</div><div class="">ETH Zurich</div><div class=""><span style="text-align:-webkit-auto" class="">Dr.</span><span style="text-align:-webkit-auto" class=""> </span>Michele Dolfi</div><div class="">Institute for Theoretical Physics</div><div class="">HIT G 32.4</div><div class="">Wolfgang-Pauli-Str. 27</div><div class="">8093 Zurich</div><div class="">Switzerland</div><div class=""><br class=""></div><div class=""><a href="mailto:dolfim@phys.ethz.ch" target="_blank" class="">dolfim@phys.ethz.ch</a></div><div class=""><a href="http://www.itp.phys.ethz.ch/" target="_blank" class="">www.itp.phys.ethz.ch</a></div><div class=""><br class=""></div><div class=""><a href="tel:+41%2044%20633%2078%2056" value="+41446337856" target="_blank" class="">+41 44 633 78 56</a> phone</div><div class=""><a href="tel:+41%2044%20633%2011%2015" value="+41446331115" target="_blank" class="">+41 44 633 11 15</a> fax </div></div>
</div>
<br class=""><div class=""><blockquote type="cite" class=""><div class=""><div class="h5"><div class="">On 6 Feb 2017, at 07:26, Robertson Esperanza <<a href="mailto:robbie.esperanza@gmail.com" target="_blank" class="">robbie.esperanza@gmail.com</a>> wrote:</div><br class="m_6600635778920913090Apple-interchange-newline"></div></div><div class=""><div class=""><div class="h5"><div dir="ltr" class=""><div class="">Hello,<br class=""><br class="">I only started studying many-body physics, so there might be gaps in my knowledge. When using the MEASURE_CORRELATION, why does the measurement goes for only site i<j, is it because there will be "blowing up"? <br class=""><br class="">Alternatively, to measure for i=j, i think I could use MEASURE_AVERAGE, of let's say (n_i)^2 where n - n_up + n_down. How could I define such measurement, where you use an operator successively? Thank you for replying<br class=""><br class=""></div>Robertson Esperanza<br class=""></div>
<br class=""><br class=""></div></div>----<br class="">Comp-phys-alps-users Mailing List for the ALPS Project<br class=""><a href="http://alps.comp-phys.org/" target="_blank" class="">http://alps.comp-phys.org/</a><br class=""><br class="">List info: <a href="https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users" target="_blank" class="">https://lists.phys.ethz.ch//<wbr class="">listinfo/comp-phys-alps-users</a><br class="">Archive: <a href="https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users" target="_blank" class="">https://lists.phys.ethz.ch//<wbr class="">pipermail/comp-phys-alps-users</a><br class=""><br class="">Unsubscribe by writing a mail to <a href="mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch" target="_blank" class="">comp-phys-alps-users-leave@<wbr class="">lists.phys.ethz.ch</a>.</div></blockquote></div><br class=""></div></div><br class=""><br class="">
<br class="">
----<br class="">
Comp-phys-alps-users Mailing List for the ALPS Project<br class="">
<a href="http://alps.comp-phys.org/" rel="noreferrer" target="_blank" class="">http://alps.comp-phys.org/</a><br class="">
<br class="">
List info: <a href="https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users" rel="noreferrer" target="_blank" class="">https://lists.phys.ethz.ch//<wbr class="">listinfo/comp-phys-alps-users</a><br class="">
Archive: <a href="https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users" rel="noreferrer" target="_blank" class="">https://lists.phys.ethz.ch//<wbr class="">pipermail/comp-phys-alps-users</a><br class="">
<br class="">
Unsubscribe by writing a mail to <a href="mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch" class="">comp-phys-alps-users-leave@<wbr class="">lists.phys.ethz.ch</a>.<br class=""></blockquote></div><br class=""></div>
<br class=""><br class="">----<br class="">Comp-phys-alps-users Mailing List for the ALPS Project<br class=""><a href="http://alps.comp-phys.org/" class="">http://alps.comp-phys.org/</a><br class=""><br class="">List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users<br class="">Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users<br class=""><br class="">Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.ch.</div></blockquote></div><br class=""></div></body></html>