<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>I tested your file after modifying this line. It works <br>
</p>
<div class="moz-cite-prefix">On 07/02/2017 09:01, Julien wrote:<br>
</div>
<blockquote
cite="mid:b474191b-db87-9a58-eeae-001872e01bc4@institutoptique.fr"
type="cite">
<meta http-equiv="Context-Type" content="text/html;
charset=windows-1252">
<p>Hi, <br>
</p>
<p>there is a little problem in your python script; have a look to
the line where you include the xml file for the models.</p>
<p>Julien<br>
</p>
<br>
<pre class="moz-signature" cols="72">-
__________________________________
DESPRES Julien
Ph.D. student
Center for Theoretical Physics
Quantum Matter Theory team
Ecole Polytechnique
91128 Palaiseau Cedex
France, EU
Office : 00.10.06 (ground floor)
Phone : +33 1 64 33 42 81
Laboratoire Charles Fabry
Atom Optics group
Institut d'Optique Graduate School
2 Avenue Augustin Fresnel
91127 Palaiseau Cedex
France, EU
Office : R2.29 (1st floor)
Phone: +33 1 64 53 33 49
__________________________________</pre>
<br>
<div class="moz-cite-prefix">On 07/02/2017 04:24, Robertson
Esperanza wrote:<br>
</div>
<blockquote
cite="mid:CAKBy94NdNM-A+hawx41BMa9v4BNDuHVm+x-Owh+ixqdP9wxLEQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>I tried to print the result of taking the local
measurement for n_i^2 but it only shows <br>
</div>
x = [0], y = [0], instead of x = [0 1 2 3 4 5 6 7 8 9], y =
[10 scalar values] (since i'm using a 10-site open chain). I
attached my python script and mymodels.xml. Thank you for the
help.<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Feb 6, 2017 at 4:29 PM,
Julien <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:julien.despres@institutoptique.fr"
target="_blank">julien.despres@institutoptique.fr</a>></span>
wrote:<br>
<blockquote class="gmail_quote">
<div>
<p>Hi, <br>
</p>
<p>you can do it in this way but in your parameter file
you have to write :</p>
<p>model['MODEL_LIBRARY'] = 'my_own_models.xml'<br>
</p>
or you can put it wherever you want but in this case :<br>
<br>
model['MODEL_LIBRARY'] = 'path_to_the_xml_file'<br>
<br>
Julien
<div>
<div class="h5"><br>
<br>
<div class="m_-4302801829603841732moz-cite-prefix">On
06/02/2017 09:21, Robertson Esperanza wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">When creating a new model file, is
it necessary that the new model file be saved on
the same folder of the default models.xml file?<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Feb 6, 2017 at
3:55 PM, Michele Dolfi <span dir="ltr"><<a
moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:dolfim@phys.ethz.ch"><a class="moz-txt-link-abbreviated" href="mailto:dolfim@phys.ethz.ch">dolfim@phys.ethz.ch</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote">
<div>MEASURE_AVERAGE is compute the average
among all sites, i.e. a scalar value.
<div>MEASURE_LOCAL returns a list of
measurements on all sites.</div>
<div><br>
</div>
<div>Best,</div>
<div>Michele</div>
<div><span><br>
<div>
<div>
<div>--</div>
<div>ETH Zurich</div>
<div><span>Dr.</span><span> </span>Michele
Dolfi</div>
<div>Institute for Theoretical
Physics</div>
<div>HIT G 32.4</div>
<div>Wolfgang-Pauli-Str. 27</div>
<div>8093 Zurich</div>
<div>Switzerland</div>
<div><br>
</div>
<div><a moz-do-not-send="true"
href="mailto:dolfim@phys.ethz.ch"
target="_blank">dolfim@phys.ethz.ch</a></div>
<div><a moz-do-not-send="true"
href="http://www.itp.phys.ethz.ch"
target="_blank">www.itp.phys.ethz.ch</a></div>
<div><br>
</div>
<div><a moz-do-not-send="true"
href="tel:+41%2044%20633%2078%2056"
value="+41446337856"
target="_blank">+41 44 633 78
56</a> phone</div>
<div><a moz-do-not-send="true"
href="tel:+41%2044%20633%2011%2015"
value="+41446331115"
target="_blank">+41 44 633 11
15</a> fax </div>
</div>
</div>
<br>
</span>
<div>
<div class="m_-4302801829603841732h5">
<div>
<blockquote type="cite">
<div>On 6 Feb 2017, at 08:50,
Robertson Esperanza <<a
moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:robbie.esperanza@gmail.com"><a class="moz-txt-link-abbreviated" href="mailto:robbie.esperanza@gmail.com">robbie.esperanza@gmail.com</a></a>>
wrote:</div>
<br
class="m_-4302801829603841732m_-1402154255285421958Apple-interchange-newline">
<div>
<div dir="ltr">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>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On
Mon, Feb 6, 2017 at 3:08
PM, Michele Dolfi <span
dir="ltr"><<a
moz-do-not-send="true"
class="moz-txt-link-abbreviated" href="mailto:dolfim@phys.ethz.ch"><a class="moz-txt-link-abbreviated" href="mailto:dolfim@phys.ethz.ch">dolfim@phys.ethz.ch</a></a>></span>
wrote:<br>
<blockquote
class="gmail_quote">
<div>Hello,
<div><br>
</div>
<div>Could you please
be a bit more
specific about the
application you are
running?</div>
<div><br>
</div>
<div>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>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><br>
</div>
<div>2. Add this
definition to your
local copy, it
defines the n^2
operator</div>
<div><SITEOPERATOR name=“n_squared"<wbr> site="x"><br>
n(x)*n(x)<br>
</SITEOPERATOR><br>
<br>
</div>
<div>3. In your input
parameters you have
now to link to your
new model file.</div>
<div>MODEL_LIBRARY=“path/to/models.<wbr>xml”</div>
<div><br>
</div>
<div>4. And add your
measurement</div>
<div>MEASURE_LOCAL[Density^2]
= “ n_squared"</div>
<div><br>
</div>
<div><br>
</div>
<div>Hope this helps.</div>
<div><br>
</div>
<div>Best,</div>
<div>Michele</div>
<div><br>
<div>
<div>
<div>--</div>
<div>ETH Zurich</div>
<div><span>Dr.</span><span> </span>Michele
Dolfi</div>
<div>Institute
for
Theoretical
Physics</div>
<div>HIT G 32.4</div>
<div>Wolfgang-Pauli-Str.
27</div>
<div>8093 Zurich</div>
<div>Switzerland</div>
<div><br>
</div>
<div><a
moz-do-not-send="true"
class="moz-txt-link-abbreviated" href="mailto:dolfim@phys.ethz.ch"><a class="moz-txt-link-abbreviated" href="mailto:dolfim@phys.ethz.ch">dolfim@phys.ethz.ch</a></a></div>
<div><a
moz-do-not-send="true"
class="moz-txt-link-abbreviated" href="http://www.itp.phys.ethz.ch"><a class="moz-txt-link-abbreviated" href="http://www.itp.phys.ethz.ch">www.itp.phys.ethz.ch</a></a></div>
<div><br>
</div>
<div><a
moz-do-not-send="true"
href="tel:+41%2044%20633%2078%2056" value="+41446337856" target="_blank">+41
44 633 78 56</a>
phone</div>
<div><a
moz-do-not-send="true"
href="tel:+41%2044%20633%2011%2015" value="+41446331115" target="_blank">+41
44 633 11 15</a>
fax </div>
</div>
</div>
<br>
<div>
<blockquote
type="cite">
<div>
<div
class="m_-4302801829603841732m_-1402154255285421958h5">
<div>On 6 Feb
2017, at
07:26,
Robertson
Esperanza <<a
moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:robbie.esperanza@gmail.com"><a class="moz-txt-link-abbreviated" href="mailto:robbie.esperanza@gmail.com">robbie.esperanza@gmail.com</a></a>>
wrote:</div>
<br
class="m_-4302801829603841732m_-1402154255285421958m_6600635778920913090Apple-interchange-newline">
</div>
</div>
<div>
<div>
<div
class="m_-4302801829603841732m_-1402154255285421958h5">
<div dir="ltr">
<div>Hello,<br>
<br>
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>
<br>
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>
<br>
</div>
Robertson
Esperanza<br>
</div>
<br>
<br>
</div>
</div>
----<br>
Comp-phys-alps-users Mailing List for the ALPS Project<br>
<a
moz-do-not-send="true"
class="moz-txt-link-freetext" href="http://alps.comp-phys.org/"><a class="moz-txt-link-freetext" href="http://alps.comp-phys.org/">http://alps.comp-phys.org/</a></a><br>
<br>
List info: <a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://lists.phys.ethz.ch//li"><a class="moz-txt-link-freetext" href="https://lists.phys.ethz.ch//li">https://lists.phys.ethz.ch//li</a></a><wbr>stinfo/comp-phys-alps-users<br>
Archive: <a
moz-do-not-send="true"
class="moz-txt-link-freetext" href="https://lists.phys.ethz.ch//pi"><a class="moz-txt-link-freetext" href="https://lists.phys.ethz.ch//pi">https://lists.phys.ethz.ch//pi</a></a><wbr>permail/comp-phys-alps-users<br>
<br>
Unsubscribe by
writing a mail
to <a
moz-do-not-send="true"
href="mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch"
target="_blank">comp-phys-alps-users-leave@lis<wbr>ts.phys.ethz.ch</a>.</div>
</blockquote>
</div>
<br>
</div>
</div>
<br>
<br>
<br>
----<br>
Comp-phys-alps-users
Mailing List for the
ALPS Project<br>
<a
moz-do-not-send="true"
href="http://alps.comp-phys.org/" rel="noreferrer" target="_blank"><a class="moz-txt-link-freetext" href="http://alps.comp-phys.org/">http://alps.comp-phys.org/</a></a><br>
<br>
List info: <a
moz-do-not-send="true"
class="moz-txt-link-freetext" href="https://lists.phys.ethz.ch//li"><a class="moz-txt-link-freetext" href="https://lists.phys.ethz.ch//li">https://lists.phys.ethz.ch//li</a></a><wbr>stinfo/comp-phys-alps-users<br>
Archive: <a
moz-do-not-send="true"
class="moz-txt-link-freetext" href="https://lists.phys.ethz.ch//pi"><a class="moz-txt-link-freetext" href="https://lists.phys.ethz.ch//pi">https://lists.phys.ethz.ch//pi</a></a><wbr>permail/comp-phys-alps-users<br>
<br>
Unsubscribe by writing a
mail to <a
moz-do-not-send="true"
href="mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch"
target="_blank">comp-phys-alps-users-leave@lis<wbr>ts.phys.ethz.ch</a>.<br>
</blockquote>
</div>
<br>
</div>
<br>
<br>
----<br>
Comp-phys-alps-users Mailing
List for the ALPS Project<br>
<a moz-do-not-send="true"
href="http://alps.comp-phys.org/"
target="_blank">http://alps.comp-phys.org/</a><br>
<br>
List info: <a
moz-do-not-send="true"
class="moz-txt-link-freetext"
href="https://lists.phys.ethz.ch//li"><a class="moz-txt-link-freetext" href="https://lists.phys.ethz.ch//li">https://lists.phys.ethz.ch//li</a></a><wbr>stinfo/comp-phys-alps-users<br>
Archive: <a
moz-do-not-send="true"
class="moz-txt-link-freetext"
href="https://lists.phys.ethz.ch//pi"><a class="moz-txt-link-freetext" href="https://lists.phys.ethz.ch//pi">https://lists.phys.ethz.ch//pi</a></a><wbr>permail/comp-phys-alps-users<br>
<br>
Unsubscribe by writing a mail
to <a moz-do-not-send="true"
href="mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch"
target="_blank">comp-phys-alps-users-leave@lis<wbr>ts.phys.ethz.ch</a>.</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
<br>
<br>
<br>
----<br>
Comp-phys-alps-users Mailing List for the
ALPS Project<br>
<a moz-do-not-send="true"
href="http://alps.comp-phys.org/"
rel="noreferrer" target="_blank">http://alps.comp-phys.org/</a><br>
<br>
List info: <a moz-do-not-send="true"
href="https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users"
rel="noreferrer" target="_blank">https://lists.phys.ethz.ch//li<wbr>stinfo/comp-phys-alps-users</a><br>
Archive: <a moz-do-not-send="true"
href="https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users"
rel="noreferrer" target="_blank">https://lists.phys.ethz.ch//pi<wbr>permail/comp-phys-alps-users</a><br>
<br>
Unsubscribe by writing a mail to <a
moz-do-not-send="true"
href="mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch"
target="_blank">comp-phys-alps-users-leave@lis<wbr>ts.phys.ethz.ch</a>.<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset
class="m_-4302801829603841732mimeAttachmentHeader"></fieldset>
<br>
<pre>----
Comp-phys-alps-users Mailing List for the ALPS Project
<a moz-do-not-send="true" class="m_-4302801829603841732moz-txt-link-freetext" href="http://alps.comp-phys.org/" target="_blank">http://alps.comp-phys.org/</a>
List info: <a moz-do-not-send="true" class="m_-4302801829603841732moz-txt-link-freetext" href="https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users" target="_blank">https://lists.phys.ethz.ch//<wbr>listinfo/comp-phys-alps-users</a>
Archive: <a moz-do-not-send="true" class="m_-4302801829603841732moz-txt-link-freetext" href="https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users" target="_blank">https://lists.phys.ethz.ch//<wbr>pipermail/comp-phys-alps-users</a>
Unsubscribe by writing a mail to <a moz-do-not-send="true" class="m_-4302801829603841732moz-txt-link-abbreviated" href="mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch" target="_blank">comp-phys-alps-users-leave@<wbr>lists.phys.ethz.ch</a>.</pre>
</blockquote>
</div></div><pre class="m_-4302801829603841732moz-signature" cols="72">--
______________________________<wbr>____
DESPRES Julien
Ph.D. student
Center for Theoretical Physics
Quantum Matter Theory team
Ecole Polytechnique
91128 Palaiseau Cedex
France, EU
Office : 00.10.06 (ground floor)
Phone : <a moz-do-not-send="true" href="tel:+33%201%2064%2033%2042%2081" value="+33164334281" target="_blank">+33 1 64 33 42 81</a>
Laboratoire Charles Fabry
Atom Optics group
Institut d'Optique Graduate School
2 Avenue Augustin Fresnel
91127 Palaiseau Cedex
France, EU
Office : R2.29 (1st floor)
Phone: +33 1 64 53 33 49
______________________________<wbr>____
</pre>
</div>
----
Comp-phys-alps-users Mailing List for the ALPS Project
<a moz-do-not-send="true" href="http://alps.comp-phys.org/" rel="noreferrer" target="_blank">http://alps.comp-phys.org/</a>
List info: <a moz-do-not-send="true" href="https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users" rel="noreferrer" target="_blank">https://lists.phys.ethz.ch//<wbr>listinfo/comp-phys-alps-users</a>
Archive: <a moz-do-not-send="true" href="https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users" rel="noreferrer" target="_blank">https://lists.phys.ethz.ch//<wbr>pipermail/comp-phys-alps-users</a>
Unsubscribe by writing a mail to <a moz-do-not-send="true" href="mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch">comp-phys-alps-users-leave@<wbr>lists.phys.ethz.ch</a>.
</blockquote></div>
</div>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre wrap="">----
Comp-phys-alps-users Mailing List for the ALPS Project
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://alps.comp-phys.org/">http://alps.comp-phys.org/</a>
List info: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users">https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users</a>
Archive: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users">https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users</a>
Unsubscribe by writing a mail to <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch">comp-phys-alps-users-leave@lists.phys.ethz.ch</a>.</pre>
</blockquote>
<pre class="moz-signature" cols="72">-
</pre>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre wrap="">
----
Comp-phys-alps-users Mailing List for the ALPS Project
<a class="moz-txt-link-freetext" href="http://alps.comp-phys.org/">http://alps.comp-phys.org/</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users">https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users</a>
Archive: <a class="moz-txt-link-freetext" href="https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users">https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users</a>
Unsubscribe by writing a mail to <a class="moz-txt-link-abbreviated" href="mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch">comp-phys-alps-users-leave@lists.phys.ethz.ch</a>.</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
__________________________________
DESPRES Julien
Ph.D. student
Center for Theoretical Physics
Quantum Matter Theory team
Ecole Polytechnique
91128 Palaiseau Cedex
France, EU
Office : 00.10.06 (ground floor)
Phone : +33 1 64 33 42 81
Laboratoire Charles Fabry
Atom Optics group
Institut d'Optique Graduate School
2 Avenue Augustin Fresnel
91127 Palaiseau Cedex
France, EU
Office : R2.29 (1st floor)
Phone: +33 1 64 53 33 49
__________________________________
</pre></body></html>