<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="">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" 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.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="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 07:26, 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=""><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="">----<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>