I enter python and import pyalps at 22:52 Mar 21 2013, here is the result of ls -lR /home/jiang/opt/alps/lib/:

/home/jiang/opt/alps/lib/:
total 11600
-rw-r--r-- 1 jiang jiang  889600 2013-03-21 14:30 libalps_fortran.a
lrwxrwxrwx 1 jiang jiang      12 2013-03-21 15:12 libalps.so -> libalps.so.2
lrwxrwxrwx 1 jiang jiang      16 2013-03-21 15:12 libalps.so.2 -> libalps.so.2.1.1
-rw-r--r-- 1 jiang jiang 7439614 2013-03-21 14:29 libalps.so.2.1.1
-rw-r--r-- 1 jiang jiang 3530420 2013-03-21 14:20 libboost.so
drwxr-xr-x 2 jiang jiang    4096 2013-03-21 15:12 pyalps
drwxr-xr-x 3 jiang jiang    4096 2013-03-21 15:12 python
drwxr-xr-x 2 jiang jiang    4096 2013-03-21 15:12 xml

/home/jiang/opt/alps/lib/pyalps:
total 3744
-rw-r--r-- 1 jiang jiang    1245 2012-04-27 15:55 alea_detail.py
-rw-r--r-- 1 jiang jiang     178 2013-03-21 07:29 alea_detail.pyc
-rw-r--r-- 1 jiang jiang    5950 2012-04-27 15:55 alea.py
-rw-r--r-- 1 jiang jiang    5507 2013-03-21 07:29 alea.pyc
-rw-r--r-- 1 jiang jiang   29656 2012-05-22 22:56 apptest.py
-rw-r--r-- 1 jiang jiang   20518 2012-05-23 06:05 apptest.pyc
-rw-r--r-- 1 jiang jiang    2319 2012-04-27 15:55 dataset.py
-rw-r--r-- 1 jiang jiang    2134 2013-03-21 07:29 dataset.pyc
-rw-r--r-- 1 jiang jiang    2382 2012-04-27 15:55 dict_intersect.py
-rw-r--r-- 1 jiang jiang    1427 2013-03-21 07:29 dict_intersect.pyc
-rw-r--r-- 1 jiang jiang    1840 2012-04-27 15:55 fit_wrapper.py
-rw-r--r-- 1 jiang jiang    1791 2013-03-21 07:29 fit_wrapper.pyc
-rw-r--r-- 1 jiang jiang    9722 2012-04-27 15:55 floatwitherror.py
-rw-r--r-- 1 jiang jiang   11704 2013-03-21 07:29 floatwitherror.pyc
-rw-r--r-- 1 jiang jiang    1563 2012-04-27 15:55 hdf5.py
-rw-r--r-- 1 jiang jiang    1061 2013-03-21 07:29 hdf5.pyc
-rw-r--r-- 1 jiang jiang    4927 2012-04-27 15:55 hlist.py
-rw-r--r-- 1 jiang jiang    6080 2013-03-21 07:29 hlist.pyc
-rw-r--r-- 1 jiang jiang    1601 2012-04-27 15:55 __init__.py
-rw-r--r-- 1 jiang jiang     626 2013-03-21 07:29 __init__.pyc
-rw-r--r-- 1 jiang jiang    1802 2012-04-27 15:55 lattice.py
-rw-r--r-- 1 jiang jiang    1670 2012-04-28 06:05 lattice.pyc
-rw-r--r-- 1 jiang jiang   31453 2012-04-27 15:55 load.py
-rw-r--r-- 1 jiang jiang   22467 2013-03-21 07:29 load.pyc
-rw-r--r-- 1 jiang jiang    1967 2012-04-27 15:55 math.py
-rw-r--r-- 1 jiang jiang     932 2013-03-21 07:29 math.pyc
-rw-r--r-- 1 jiang jiang    1445 2012-05-03 22:56 mpi.py
-rw-r--r-- 1 jiang jiang     378 2012-05-03 23:33 mpi.pyc
-rw-r--r-- 1 jiang jiang 1000143 2013-03-21 14:21 mpi.so
-rw-r--r-- 1 jiang jiang    1311 2012-04-27 15:55 mpl_setup_macosx.py
-rw-r--r-- 1 jiang jiang     219 2012-04-28 06:05 mpl_setup_macosx.pyc
-rw-r--r-- 1 jiang jiang    1311 2012-04-27 15:55 mpl_setup_qt.py
-rw-r--r-- 1 jiang jiang     215 2012-04-28 06:05 mpl_setup_qt.pyc
-rw-r--r-- 1 jiang jiang    1311 2012-04-27 15:55 mpl_setup_tk.py
-rw-r--r-- 1 jiang jiang     215 2012-04-28 06:05 mpl_setup_tk.pyc
-rw-r--r-- 1 jiang jiang     942 2012-04-27 15:55 natural_sort.py
-rw-r--r-- 1 jiang jiang    1465 2013-03-21 07:29 natural_sort.pyc
-rw-r--r-- 1 jiang jiang    4123 2012-04-27 15:55 ngs.py
-rw-r--r-- 1 jiang jiang    3657 2012-04-28 06:05 ngs.pyc
-rw-r--r-- 1 jiang jiang   16379 2012-04-27 15:55 plot_core.py
-rw-r--r-- 1 jiang jiang   12759 2013-03-21 07:29 plot_core.pyc
-rw-r--r-- 1 jiang jiang   10730 2012-04-27 15:55 plot.py
-rw-r--r-- 1 jiang jiang    7616 2013-03-21 07:29 plot.pyc
-rw-r--r-- 1 jiang jiang 1314358 2013-03-21 14:30 pyalea_c.so
-rw-r--r-- 1 jiang jiang  346017 2013-03-21 14:30 pyhdf5_c.so
-rw-r--r-- 1 jiang jiang  632351 2013-03-21 14:30 pymcdata_c.so
-rw-r--r-- 1 jiang jiang   81409 2013-03-21 14:30 pytools_c.so
-rw-r--r-- 1 jiang jiang    1338 2012-04-27 15:55 pytools.py
-rw-r--r-- 1 jiang jiang     283 2013-03-21 07:29 pytools.pyc
-rw-r--r-- 1 jiang jiang   51832 2012-05-03 14:26 tools.py
-rw-r--r-- 1 jiang jiang   41341 2013-03-21 07:29 tools.pyc

/home/jiang/opt/alps/lib/python:
total 4
drwxr-xr-x 2 jiang jiang 4096 2013-03-21 15:12 alps

/home/jiang/opt/alps/lib/python/alps:
total 36
-rw-r--r-- 1 jiang jiang  1817 2013-03-21 14:16 config.py
-rw-r--r-- 1 jiang jiang  7215 2012-04-27 15:55 license.py
-rw-r--r-- 1 jiang jiang 23635 2012-04-27 15:55 preview.py

/home/jiang/opt/alps/lib/xml:
total 116
-rw-r--r-- 1 jiang jiang 17912 2012-05-22 22:56 ALPS.xsl
-rw-r--r-- 1 jiang jiang  8532 2012-04-27 15:55 archive2plot.xsl
-rw-r--r-- 1 jiang jiang   595 2012-04-27 15:55 changestylesheet.xsl
-rw-r--r-- 1 jiang jiang  3040 2012-04-27 15:55 helpers.xsl
-rw-r--r-- 1 jiang jiang 16305 2013-03-21 14:15 lattices.xml
-rw-r--r-- 1 jiang jiang 19407 2013-03-21 14:15 models.xml
-rw-r--r-- 1 jiang jiang  4904 2012-04-27 15:55 plot2gp.xsl
-rw-r--r-- 1 jiang jiang  2594 2012-04-27 15:55 plot2mpl.xsl
-rw-r--r-- 1 jiang jiang  1219 2012-04-27 15:55 plot2text.xsl
-rw-r--r-- 1 jiang jiang  1188 2012-04-27 15:55 plot2xmgr.xsl
-rw-r--r-- 1 jiang jiang 12230 2012-04-27 15:55 plot2xsl.xsl
-rw-r--r-- 1 jiang jiang  4685 2012-04-27 15:55 QMCXML2text.xsl



2013/3/21 <comp-phys-alps-users-request@lists.phys.ethz.ch>
Send Comp-phys-alps-users mailing list submissions to
        comp-phys-alps-users@lists.phys.ethz.ch

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.phys.ethz.ch/listinfo/comp-phys-alps-users
or, via email, send a message with subject or body 'help' to
        comp-phys-alps-users-request@lists.phys.ethz.ch

You can reach the person managing the list at
        comp-phys-alps-users-owner@lists.phys.ethz.ch

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Comp-phys-alps-users digest..."


Today's Topics:

   1. Re: tebd error (Matthias Troyer)
   2. error import pyalps (Bo-Nan JIANG)
   3. Re: error import pyalps (Matthias Troyer)
   4. Question about the spin-orbit coupling term (Chen Ahai)
   5. Re: linux and ALPS (Matthias Troyer) (???)
   6. Re: Question about the spin-orbit coupling term (Matthias Troyer)


----------------------------------------------------------------------

Message: 1
Date: Wed, 20 Mar 2013 08:23:45 -0700
From: Matthias Troyer <troyer@phys.ethz.ch>
To: Bo-Nan JIANG <bonanjiang@gmail.com>
Cc: comp-phys-alps-users@lists.phys.ethz.ch
Subject: Re: [ALPS-users] tebd error
Message-ID: <B2AD0D0D-41C1-4E93-BBBF-86ADE2C8E32A@phys.ethz.ch>
Content-Type: text/plain; charset=iso-8859-1

You use ccmake to set the variable CMAKE_Fortran_FLAGS to -fopenmp

On Mar 20, 2013, at 7:54 AM, Bo-Nan JIANG <bonanjiang@gmail.com> wrote:

> Hi,Matthias
> Thanks for your reply:
> "Which Fortran compiler are you using? If it is gfortran you need to add -fopenmp to the Fortran compiler flags."
>
> I do use gfortran. But I really have no idea how to add it.
> Can you be so kind to show me how to do this in Lucid?
> And in which stage shall I add this (cmake stage? make stage?)
>
> Bo-Nan
>
> --
> Stay foolish,Stay hungry.



------------------------------

Message: 2
Date: Thu, 21 Mar 2013 08:50:38 +0800
From: Bo-Nan JIANG <bonanjiang@gmail.com>
To: "comp-phys-alps-users@lists.phys.ethz.ch"
        <comp-phys-alps-users@lists.phys.ethz.ch>
Subject: [ALPS-users] error import pyalps
Message-ID:
        <CADqUQBOQ46_vsVQ1mt7rqtTLO95u9jfn3QR3f=PZevnLvJB3CA@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi, all
With kind help of Matthias, I finally compile all functions of ALPS2.1.1
and install it on my Ubuntu 10.02 Lucid. And in my system, it is python
2.6.5, and no VisTrails or ALPS vistrails extensions installed.

But I have got an extra problem:
When I am trying to run python file in tutorials via command line, it
always returns
---------------------------------error----------------------------------
Traceback (most recent call last):
  File "tutorial8a.py", line 28, in <module>
    import pyalps
ImportError: No module named pyalps
---------------------------------END----------------------------------

So, I run the test_py.py, all files in tutorials return the same error
mentioned above.(see attachment) Besides, before runing ALPS, I have
already added lines to /home/jiang/.bashrc as some users in ALPS-users
suggest

---------------------lines added to .bashrc-------------------
# ALPS
release_dir=/home/jiang/opt/alps (I am sure this is where I install the
ALPS)
export LD_LIBRARY_PATH=$release_dir/lib/
export PATH=$PATH:$release_dir/bin/
export PYTHONPATH=$release_dir/lib/
------------------------END-----------------------------------------

Any advice is welcome and helpful.

--
Stay foolish,Stay hungry.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.phys.ethz.ch/pipermail/comp-phys-alps-users/attachments/20130321/380f9f25/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pytest.log
Type: application/octet-stream
Size: 17716 bytes
Desc: not available
URL: <https://lists.phys.ethz.ch/pipermail/comp-phys-alps-users/attachments/20130321/380f9f25/attachment-0001.obj>

------------------------------

Message: 3
Date: Wed, 20 Mar 2013 18:00:38 -0700
From: Matthias Troyer <troyer@phys.ethz.ch>
To: comp-phys-alps-users@lists.phys.ethz.ch
Subject: Re: [ALPS-users] error import pyalps
Message-ID: <F6C11633-3BB0-424A-87D7-BDE920679205@phys.ethz.ch>
Content-Type: text/plain; charset=iso-8859-1

Please send the result of the following command: ls -lR $release_dir/lib/

On Mar 20, 2013, at 5:50 PM, Bo-Nan JIANG <bonanjiang@gmail.com> wrote:

> Hi, all
> With kind help of Matthias, I finally compile all functions of ALPS2.1.1 and install it on my Ubuntu 10.02 Lucid. And in my system, it is python 2.6.5, and no VisTrails or ALPS vistrails extensions installed.
>
> But I have got an extra problem:
> When I am trying to run python file in tutorials via command line, it always returns
> ---------------------------------error----------------------------------
> Traceback (most recent call last):
>   File "tutorial8a.py", line 28, in <module>
>     import pyalps
> ImportError: No module named pyalps
> ---------------------------------END----------------------------------
>
> So, I run the test_py.py, all files in tutorials return the same error mentioned above.(see attachment) Besides, before runing ALPS, I have already added lines to /home/jiang/.bashrc as some users in ALPS-users suggest
>
> ---------------------lines added to .bashrc-------------------
> # ALPS
> release_dir=/home/jiang/opt/alps (I am sure this is where I install the ALPS)
> export LD_LIBRARY_PATH=$release_dir/lib/
> export PATH=$PATH:$release_dir/bin/
> export PYTHONPATH=$release_dir/lib/
> ------------------------END-----------------------------------------
>
> Any advice is welcome and helpful.
>
> --
> Stay foolish,Stay hungry.
>
> <pytest.log>



------------------------------

Message: 4
Date: Thu, 14 Mar 2013 22:00:50 +0800
From: Chen Ahai <chenahaiphysics@gmail.com>
To: comp-phys-alps-users@lists.phys.ethz.ch
Subject: [ALPS-users] Question about the spin-orbit coupling term
Message-ID:
        <CAD-sLtMsi_j0G=AAmbJyXEXT-Wgvgx1F-aqzGx_ReMudNtYptg@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Dear all,

I am trying to add the spin-orbit coupling term to the 1D Hubbard model. I
use the standard files
for 1D Hubbard model in the library and add those codes:
-----------------------------------------------------------------------------------
<BONDOPERATOR name="SOC" source="x" target="y">

cdag_up(y)*c_down(x)-cdag_down(y)*c_up(x)+cdag_down(y)*c_up(x)-cdag_up(y)*c_down(x)
</BONDOPERATOR>
-----------------------------------------------------------------------------------
and
-----------------------------------------------------------------------------------
  <BONDTERM source="i" target="j">
    <PARAMETER name="t#" default="0"/>
    <PARAMETER name="alpha" default="0"/>
    -t*fermion_hop(i,j)-*alpha**SOC(i,j)
  </BONDTERM>
-----------------------------------------------------------------------------------
to the model XML file just like before. But it seems it does not work. The
results keep the same
when I change the parameter 'alpha' .

Can you give me some advices ? Thank you very much in advance.

With best wishes,
Ahai Chen
--------------------------------------------------------------------------
Ahai Chen
Department of Physics, Zhejiang Normal University
Jinhua, Zhejiang Province, 321004, China
e-mail: chenahaiphysics@gmail.com;
              chenahai@yahoo.cn
--------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.phys.ethz.ch/pipermail/comp-phys-alps-users/attachments/20130314/760ba332/attachment-0001.html>

------------------------------

Message: 5
Date: Mon, 18 Mar 2013 19:57:00 +0800 (CST)
From: ??? <hyx979@163.com>
To: comp-phys-alps-users@lists.phys.ethz.ch
Subject: Re: [ALPS-users] linux and ALPS (Matthias Troyer)
Message-ID: <5faaccc6.22803.13d7d5c1aa7.Coremail.hyx979@163.com>
Content-Type: text/plain; charset="gbk"

I think archlinux is a good choice. Arch is much more stable than ubuntu, at least in my opinion. And arch has the most powerful wiki than all of the other distribution. If you install yaourt, you could easily compile ALPS with the simple command: yaourt alps.








At 2013-03-18 19:00:05,comp-phys-alps-users-request@lists.phys.ethz.ch wrote:
>Send Comp-phys-alps-users mailing list submissions to
>       comp-phys-alps-users@lists.phys.ethz.ch
>
>To subscribe or unsubscribe via the World Wide Web, visit
>       https://lists.phys.ethz.ch/listinfo/comp-phys-alps-users
>or, via email, send a message with subject or body 'help' to
>       comp-phys-alps-users-request@lists.phys.ethz.ch
>
>You can reach the person managing the list at
>       comp-phys-alps-users-owner@lists.phys.ethz.ch
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of Comp-phys-alps-users digest..."
>
>
>Today's Topics:
>
>   1. Re: linux and ALPS (Matthias Troyer)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Sun, 17 Mar 2013 11:09:41 -0400
>From: Matthias Troyer <troyer@phys.ethz.ch>
>To: comp-phys-alps-users@lists.phys.ethz.ch
>Subject: Re: [ALPS-users] linux and ALPS
>Message-ID: <8A9A183C-EA44-4585-A678-2013E4C38ECF@phys.ethz.ch>
>Content-Type: text/plain; charset=iso-8859-1
>
>
>On Mar 17, 2013, at 4:11 AM, Bo-Nan JIANG <bonanjiang@gmail.com> wrote:
>
>> Hi,all
>>
>> We have a problem of choosing Linux operating system for our server. We want a system in which ALPS can work well and stably, but Ubuntu 12.04 is not very stable on our server. So, please give us a little advice that which kind of Linux system is suitable for ALPS?
>>
>> Bo-Nan
>>
>> Shanghai Institute of Fine and Optical Mechanics, C.A.S.
>
>ALPS should work on all recent Linux versions.
>
>
>
>
>End of Comp-phys-alps-users Digest, Vol 84, Issue 16
>****************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.phys.ethz.ch/pipermail/comp-phys-alps-users/attachments/20130318/8bc9d9d9/attachment-0001.html>

------------------------------

Message: 6
Date: Wed, 20 Mar 2013 18:07:04 -0700
From: Matthias Troyer <troyer@phys.ethz.ch>
To: comp-phys-alps-users@lists.phys.ethz.ch
Subject: Re: [ALPS-users] Question about the spin-orbit coupling term
Message-ID: <ABBF458F-549A-4F3E-98AE-196A90CE79CF@phys.ethz.ch>
Content-Type: text/plain; charset="iso-8859-1"

On Mar 14, 2013, at 7:00 AM, Chen Ahai <chenahaiphysics@gmail.com> wrote:

> Dear all,
>
> I am trying to add the spin-orbit coupling term to the 1D Hubbard model. I use the standard files
> for 1D Hubbard model in the library and add those codes:
> -----------------------------------------------------------------------------------
> <BONDOPERATOR name="SOC" source="x" target="y">
>   cdag_up(y)*c_down(x)-cdag_down(y)*c_up(x)+cdag_down(y)*c_up(x)-cdag_up(y)*c_down(x)
> </BONDOPERATOR>
> -----------------------------------------------------------------------------------
> and
> -----------------------------------------------------------------------------------
>   <BONDTERM source="i" target="j">
>     <PARAMETER name="t#" default="0"/>
>     <PARAMETER name="alpha" default="0"/>
>     -t*fermion_hop(i,j)-alpha*SOC(i,j)
>   </BONDTERM>
> -----------------------------------------------------------------------------------
> to the model XML file just like before. But it seems it does not work. The results keep the same
> when I change the parameter 'alpha' .
>
> Can you give me some advices ? Thank you very much in advance.

As usual, without full inputs and scripts nobody will be able to really tell you what is happening. My conjecture is that you have declared Sz as a conserved quantum number, and then this term actually never acts.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.phys.ethz.ch/pipermail/comp-phys-alps-users/attachments/20130320/8f22d449/attachment-0001.html>

End of Comp-phys-alps-users Digest, Vol 84, Issue 19
****************************************************



--
Stay foolish,Stay hungry.