Dear alps users, I am currently installing alps-2.2.b3-r7462-src-with-boost in Linux, 4.4.0-47-generic #68-Ubuntu, x86_64, GNU/Linux. I first followed the instruction and ran the command:
cmake -D Boost_ROOT_DIR=/opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost -DCMAKE_INSTALL_PREFIX=/opt/alps-2.2 /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/alps It ran without any problem.After that when I ran make i got some error for installation: /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/atomic/atomic.hpp:202:16: error: ‘uintptr_t’ was not declared in this scope typedef atomic<uintptr_t> atomic_uintptr_t; ^ /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/atomic/atomic.hpp:202:25: error: template argument 1 is invalid typedef atomic<uintptr_t> atomic_uintptr_t; ^In file included from /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/thread/once.hpp:20:0, from /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/libs/thread/src/pthread/./once_atomic.cpp:9, from /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/libs/thread/src/pthread/once.cpp:8: /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/thread/pthread/once_atomic.hpp:120:37: warning: variadic templates only available with -std=c++11 or -std=gnu++11 template<typename Function, class ...ArgTypes> ^ /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/thread/pthread/once_atomic.hpp:121:108: warning: variadic templates only available with -std=c++11 or -std=gnu++11 inline void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)... args) ^ src/boost/CMakeFiles/boost.dir/build.make:3302: recipe for target 'src/boost/CMakeFiles/boost.dir/__/__/boost/libs/thread/src/pthread/once.cpp.o' failedmake[2]: *** [src/boost/CMakeFiles/boost.dir/__/__/boost/libs/thread/src/pthread/once.cpp.o] Error 1CMakeFiles/Makefile2:1081: recipe for target 'src/boost/CMakeFiles/boost.dir/all' failedmake[1]: *** [src/boost/CMakeFiles/boost.dir/all] Error 2Makefile:160: recipe for target 'all' failedmake: *** [all] Error 2 Please help me to install this code in Ubuntu in my pc. Thanking you, Dr. Santu BaidyaSeoul National UniversitySouth korea
Dear Santu,
If you install the package in the 'opt' directory you have to use 'sudo'. Did you try to write in the terminal : sudo make test, sudo make install etc ...
Julien
Dear Julien, Thank you for your reply. I first logged in as root in my pc and then changed directory to /opt/. Then ran the commandcmake -D Boost_ROOT_DIR=/opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost -DCMAKE_INSTALL_PREFIX=/opt/alps-2.2 /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/alps It worked fine. After that I ran "make " and got the error as attached in my previous mail. Again I found a website http://linuxtoolkit.blogspot.kr/2011/11/installing-alps-20-from-source-on.ht... where they suggested to use "make -j 8 " instead of simply "make" Unfortunately I again some errors : applications/dmrg/mps/CMakeFiles/mps_models.dir/build.make:86: recipe for target 'applications/dmrg/mps/CMakeFiles/mps_models.dir/framework/dmrg/models/factory/model_factory_nu1.cpp.o' failedmake[2]: *** [applications/dmrg/mps/CMakeFiles/mps_models.dir/framework/dmrg/models/factory/model_factory_nu1.cpp.o] Error 1CMakeFiles/Makefile2:5599: recipe for target 'applications/dmrg/mps/CMakeFiles/mps_models.dir/all' failedmake[1]: *** [applications/dmrg/mps/CMakeFiles/mps_models.dir/all] Error 2 applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/build.make:206: recipe for target 'applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/interaction_expansion/splines.cpp.o' failedmake[2]: *** [applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/interaction_expansion/splines.cpp.o] Error 1CMakeFiles/Makefile2:5987: recipe for target 'applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/all' failed make[1]: *** [applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/all] Error 2 Makefile:160: recipe for target 'all' failedmake: *** [all] Error 2 Please help me to install alps properly in my pc. Thanking you, Dr. Santu Baidya
On Thu, Dec 1, 2016 5:52 PM, Julien julien.despres@institutoptique.fr wrote: Dear Santu,
If you install the package in the 'opt' directory you have to use 'sudo'. Did you try to write in the terminal : sudo make test, sudo make install etc ...
Julien
I can't see the root cause for the error message you posted. The lines you showed seem to be consecutive errors of some root error message that is not visible. -j 8 enables parallel building, using 8 threads instead of only 1 for the build process. If your build fails with a simple make it will fail with a make -j 8 too. In fact you should use only "make" since it is simpler to debug.
In general it is a good idea not to compile as root but as a regular user.
If the total error messages are too long for an email, please post them using a service like pastebin. Also please provide information about your OS version, compilers used, etc.
If you are unfamiliar with compiling programs from source I can offer to send you a link to a virtualbox image containing a fresh working install of alps and vistrails.
All the best
Benedikt
________________________________ From: Comp-phys-alps-users comp-phys-alps-users-bounces@lists.phys.ethz.ch on behalf of Santu Baidya santubaidya2009@gmail.com Sent: Thursday, December 1, 2016 7:45:47 PM To: comp-phys-alps-users@lists.phys.ethz.ch Subject: Re: [ALPS-users] Installation problem of alps-2.2 version in Ubuntu
Dear Julien, Thank you for your reply. I first logged in as root in my pc and then changed directory to /opt/. Then ran the command cmake -D Boost_ROOT_DIR=/opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost -DCMAKE_INSTALL_PREFIX=/opt/alps-2.2 /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/alps
It worked fine. After that I ran "make " and got the error as attached in my previous mail.
Again I found a website http://linuxtoolkit.blogspot.kr/2011/11/installing-alps-20-from-source-on.ht... where they suggested to use "make -j 8 " instead of simply "make"
Unfortunately I again some errors :
applications/dmrg/mps/CMakeFiles/mps_models.dir/build.make:86: recipe for target 'applications/dmrg/mps/CMakeFiles/mps_models.dir/framework/dmrg/models/factory/model_factory_nu1.cpp.o' failed make[2]: *** [applications/dmrg/mps/CMakeFiles/mps_models.dir/framework/dmrg/models/factory/model_factory_nu1.cpp.o] Error 1 CMakeFiles/Makefile2:5599: recipe for target 'applications/dmrg/mps/CMakeFiles/mps_models.dir/all' failed make[1]: *** [applications/dmrg/mps/CMakeFiles/mps_models.dir/all] Error 2 applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/build.make:206: recipe for target 'applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/interaction_expansion/splines.cpp.o' failed make[2]: *** [applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/interaction_expansion/splines.cpp.o] Error 1 CMakeFiles/Makefile2:5987: recipe for target 'applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/all' failed make[1]: *** [applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2
Please help me to install alps properly in my pc.
Thanking you,
Dr. Santu Baidya
On Thu, Dec 1, 2016 5:52 PM, Julien julien.despres@institutoptique.frmailto:julien.despres@institutoptique.fr wrote:
Dear Santu,
If you install the package in the 'opt' directory you have to use 'sudo'. Did you try to write in the terminal : sudo make test, sudo make install etc ...
Julien
-- __________________________________
DESPRES Julien Ph.D. student
Atom Optics group Quantum Matter Theory team Laboratoire Charles Fabry Institut d'Optique Graduate School 2 Avenue Augustin Fresnel 91127 Palaiseau Cedex
Office : R2.29 (1st floor) Phone: +33 1 64 53 33 49 __________________________________
On 01/12/2016 05:46, Santu Baidya wrote: Dear alps users,
I am currently installing alps-2.2.b3-r7462-src-with-boost in Linux, 4.4.0-47-generic #68-Ubuntu, x86_64, GNU/Linux. I first followed the instruction and ran the command:
cmake -D Boost_ROOT_DIR=/opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost -DCMAKE_INSTALL_PREFIX=/opt/alps-2.2 /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/alps
It ran without any problem. After that when I ran make i got some error for installation:
/opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/atomic/atomic.hpp:202:16: error: ‘uintptr_t’ was not declared in this scope typedef atomic<uintptr_t> atomic_uintptr_t; ^ /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/atomic/atomic.hpp:202:25: error: template argument 1 is invalid typedef atomic<uintptr_t> atomic_uintptr_t; ^ In file included from /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/thread/once.hpp:20:0, from /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/libs/thread/src/pthread/./once_atomic.cpp:9, from /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/libs/thread/src/pthread/once.cpp:8: /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/thread/pthread/once_atomic.hpp:120:37: warning: variadic templates only available with -std=c++11 or -std=gnu++11 template<typename Function, class ...ArgTypes> ^ /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/thread/pthread/once_atomic.hpp:121:108: warning: variadic templates only available with -std=c++11 or -std=gnu++11 inline void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)... args) ^ src/boost/CMakeFiles/boost.dir/build.make:3302: recipe for target 'src/boost/CMakeFiles/boost.dir/__/__/boost/libs/thread/src/pthread/once.cpp.o' failed make[2]: *** [src/boost/CMakeFiles/boost.dir/__/__/boost/libs/thread/src/pthread/once.cpp.o] Error 1 CMakeFiles/Makefile2:1081: recipe for target 'src/boost/CMakeFiles/boost.dir/all' failed make[1]: *** [src/boost/CMakeFiles/boost.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2
Please help me to install this code in Ubuntu in my pc.
Thanking you,
Dr. Santu Baidya Seoul National University South korea
---- Comp-phys-alps-users Mailing List for the ALPS Project http://alps.comp-phys.org/
List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users
Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.chmailto:comp-phys-alps-users-leave@lists.phys.ethz.ch.
Dear Benedikt, Thank you for your reply. Yes, I am not expert in compiling and installing packages. I have attached The information about the compilers, OS in the file Information.txt (which I got after running "cmake …. " command). The Errors appeared after running "make" is attached in the file Make-Error-Details.txt. This time I did not compile as root. I compiled as user. So please see if you find the error and suggest me what should I do. Also, as you said you can provide me a link to a virtualbox image containing a fresh working install of alps and vistrails. I shall try with that too. Thanking you, Dr. Santu Baidya
On Fri, Dec 2, 2016 10:10 AM, Brandt, Benedikt B benbra@gatech.edu wrote: I can't see the root cause for the error message you posted. The lines you showed seem to be consecutive errors of some root error message that is not visible. -j 8 enables parallel building, using 8 threads instead of only 1 for the build process. If your build fails with a simple make it will fail with a make -j 8 too. In fact you should use only "make" since it is simpler to debug.
In general it is a good idea not to compile as root but as a regular user.
If the total error messages are too long for an email, please post them using a service like pastebin. Also please provide information about your OS version, compilers used, etc.
If you are unfamiliar with compiling programs from source I can offer to send you a link to a virtualbox image containing a fresh working install of alps and vistrails.
All the best
Benedikt
--------------------------------------------------------------------------------
From: Comp-phys-alps-users comp-phys-alps-users-bounces@lists.phys.ethz.ch on behalf of Santu Baidya santubaidya2009@gmail.com Sent: Thursday, December 1, 2016 7:45:47 PM To: comp-phys-alps-users@lists.phys.ethz.ch Subject: Re: [ALPS-users] Installation problem of alps-2.2 version in Ubuntu Dear Julien, Thank you for your reply. I first logged in as root in my pc and then changed directory to /opt/. Then ran the commandcmake -D Boost_ROOT_DIR=/opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost -DCMAKE_INSTALL_PREFIX=/opt/alps-2.2 /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/alps It worked fine. After that I ran "make " and got the error as attached in my previous mail. Again I found a website http://linuxtoolkit.blogspot.kr/2011/11/installing-alps-20-from-source-on.ht... where they suggested to use "make -j 8 " instead of simply "make" Unfortunately I again some errors : applications/dmrg/mps/CMakeFiles/mps_models.dir/build.make:86: recipe for target 'applications/dmrg/mps/CMakeFiles/mps_models.dir/framework/dmrg/models/factory/model_factory_nu1.cpp.o' failedmake[2]: *** [applications/dmrg/mps/CMakeFiles/mps_models.dir/framework/dmrg/models/factory/model_factory_nu1.cpp.o] Error 1CMakeFiles/Makefile2:5599: recipe for target 'applications/dmrg/mps/CMakeFiles/mps_models.dir/all' failedmake[1]: *** [applications/dmrg/mps/CMakeFiles/mps_models.dir/all] Error 2 applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/build.make:206: recipe for target 'applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/interaction_expansion/splines.cpp.o' failedmake[2]: *** [applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/interaction_expansion/splines.cpp.o] Error 1CMakeFiles/Makefile2:5987: recipe for target 'applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/all' failed make[1]: *** [applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/all] Error 2 Makefile:160: recipe for target 'all' failedmake: *** [all] Error 2 Please help me to install alps properly in my pc. Thanking you, Dr. Santu Baidya
On Thu, Dec 1, 2016 5:52 PM, Julien julien.despres@institutoptique.fr wrote: Dear Santu,
If you install the package in the 'opt' directory you have to use 'sudo'. Did you try to write in the terminal : sudo make test, sudo make install etc ...
Julien
Sorry I forgot to attach the files which are attached below.
Dear Benedikt, Thank you for your reply. Yes, I am not expert in compiling and installing packages. I have attached The information about the compilers, OS in the file Information.txt (which I got after running "cmake …. " command). The Errors appeared after running "make" is attached in the file Make-Error-Details.txt. This time I did not compile as root. I compiled as user. So please see if you find the error and suggest me what should I do. Also, as you said you can provide me a link to a virtualbox image containing a fresh working install of alps and vistrails. I shall try with that too. Thanking you, Dr. Santu Baidya
On Fri, Dec 2, 2016 11:16 AM, Santu Baidya santubaidya2009@gmail.com wrote: Dear Benedikt, Thank you for your reply. Yes, I am not expert in compiling and installing packages. I have attached The information about the compilers, OS in the file Information.txt (which I got after running "cmake …. " command). The Errors appeared after running "make" is attached in the file Make-Error-Details.txt. This time I did not compile as root. I compiled as user. So please see if you find the error and suggest me what should I do. Also, as you said you can provide me a link to a virtualbox image containing a fresh working install of alps and vistrails. I shall try with that too. Thanking you, Dr. Santu Baidya
On Fri, Dec 2, 2016 10:10 AM, Brandt, Benedikt B benbra@gatech.edu wrote: I can't see the root cause for the error message you posted. The lines you showed seem to be consecutive errors of some root error message that is not visible. -j 8 enables parallel building, using 8 threads instead of only 1 for the build process. If your build fails with a simple make it will fail with a make -j 8 too. In fact you should use only "make" since it is simpler to debug.
In general it is a good idea not to compile as root but as a regular user.
If the total error messages are too long for an email, please post them using a service like pastebin. Also please provide information about your OS version, compilers used, etc.
If you are unfamiliar with compiling programs from source I can offer to send you a link to a virtualbox image containing a fresh working install of alps and vistrails.
All the best
Benedikt
--------------------------------------------------------------------------------
From: Comp-phys-alps-users comp-phys-alps-users-bounces@lists.phys.ethz.ch on behalf of Santu Baidya santubaidya2009@gmail.com Sent: Thursday, December 1, 2016 7:45:47 PM To: comp-phys-alps-users@lists.phys.ethz.ch Subject: Re: [ALPS-users] Installation problem of alps-2.2 version in Ubuntu Dear Julien, Thank you for your reply. I first logged in as root in my pc and then changed directory to /opt/. Then ran the commandcmake -D Boost_ROOT_DIR=/opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost -DCMAKE_INSTALL_PREFIX=/opt/alps-2.2 /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/alps It worked fine. After that I ran "make " and got the error as attached in my previous mail. Again I found a website http://linuxtoolkit.blogspot.kr/2011/11/installing-alps-20-from-source-on.ht... where they suggested to use "make -j 8 " instead of simply "make" Unfortunately I again some errors : applications/dmrg/mps/CMakeFiles/mps_models.dir/build.make:86: recipe for target 'applications/dmrg/mps/CMakeFiles/mps_models.dir/framework/dmrg/models/factory/model_factory_nu1.cpp.o' failedmake[2]: *** [applications/dmrg/mps/CMakeFiles/mps_models.dir/framework/dmrg/models/factory/model_factory_nu1.cpp.o] Error 1CMakeFiles/Makefile2:5599: recipe for target 'applications/dmrg/mps/CMakeFiles/mps_models.dir/all' failedmake[1]: *** [applications/dmrg/mps/CMakeFiles/mps_models.dir/all] Error 2 applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/build.make:206: recipe for target 'applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/interaction_expansion/splines.cpp.o' failedmake[2]: *** [applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/interaction_expansion/splines.cpp.o] Error 1CMakeFiles/Makefile2:5987: recipe for target 'applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/all' failed make[1]: *** [applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/all] Error 2 Makefile:160: recipe for target 'all' failedmake: *** [all] Error 2 Please help me to install alps properly in my pc. Thanking you, Dr. Santu Baidya
On Thu, Dec 1, 2016 5:52 PM, Julien julien.despres@institutoptique.fr wrote: Dear Santu,
If you install the package in the 'opt' directory you have to use 'sudo'. Did you try to write in the terminal : sudo make test, sudo make install etc ...
Julien
Hi Santu
The source of your error is: atomic.hpp:202:16: error: ‘uintptr_t’ was not declared in this scope
This has been a know problem with boost around version 1.54, see for instance (https://svn.boost.org/trac/boost/ticket/8973). It is surprising that boost version 1.58 (which I believe is shipped with alps) still exhibits this error but ok. The bottom line for this is that your compiler (and maybe libc) is too new. I would recommend you install boost using apt-get:
sudo apt-get install libboost-all-dev
Afterwards you should be able to compile using (simply omit the Boost_ROOT_DIR variable):
cmake -DCMAKE_INSTALL_PREFIX=/home/cces/Downloads/alps-2.2 /home/cces/Downloads/alps-2.2/alps-2.2.b3-r7462-src-with-boost/alps
If it doesn't work check out, it might be that you are running into further incompatibility issues with your version of gcc and libc. This is a general issue that comes up from time to time when you are trying to compile code on a newer machine. In such cases it can be advice-able to compile the latest development version of the program. In the case of alps you can obtain the latest version from their svn repository (that version compiled fine for me using ubuntu 16.04).
In case you are running into further problems (the integration of alps with vistrails can be tricky too), here is the link to the virtualbox image that has everything included:
You can import it, the password for the user b1 is testtest. You find alps in the directory alps_bin and vistrails in the directory vistrails2.2.2. Everything should work as is. For instance try
python ~/alps_bin/tutorials/ed-02-gaps/tutorial2a.py
or
All the best
Benedikt
________________________________ From: Comp-phys-alps-users comp-phys-alps-users-bounces@lists.phys.ethz.ch on behalf of Santu Baidya santubaidya2009@gmail.com Sent: Thursday, December 1, 2016 9:18:45 PM To: comp-phys-alps-users@lists.phys.ethz.ch Subject: Re: [ALPS-users] Installation problem of alps-2.2 version in Ubuntu
Sorry I forgot to attach the files which are attached below.
Dear Benedikt,
Thank you for your reply. Yes, I am not expert in compiling and installing packages. I have attached The information about the compilers, OS in the file Information.txt (which I got after running "cmake …. " command). The Errors appeared after running "make" is attached in the file Make-Error-Details.txt. This time I did not compile as root. I compiled as user.
So please see if you find the error and suggest me what should I do.
Also, as you said you can provide me a link to a virtualbox image containing a fresh working install of alps and vistrails. I shall try with that too.
Thanking you,
Dr. Santu Baidya
On Fri, Dec 2, 2016 11:16 AM, Santu Baidya santubaidya2009@gmail.commailto:santubaidya2009@gmail.com wrote: Dear Benedikt,
Thank you for your reply. Yes, I am not expert in compiling and installing packages. I have attached The information about the compilers, OS in the file Information.txt (which I got after running "cmake …. " command). The Errors appeared after running "make" is attached in the file Make-Error-Details.txt. This time I did not compile as root. I compiled as user.
So please see if you find the error and suggest me what should I do.
Also, as you said you can provide me a link to a virtualbox image containing a fresh working install of alps and vistrails. I shall try with that too.
Thanking you,
Dr. Santu Baidya
On Fri, Dec 2, 2016 10:10 AM, Brandt, Benedikt B benbra@gatech.edumailto:benbra@gatech.edu wrote:
I can't see the root cause for the error message you posted. The lines you showed seem to be consecutive errors of some root error message that is not visible. -j 8 enables parallel building, using 8 threads instead of only 1 for the build process. If your build fails with a simple make it will fail with a make -j 8 too. In fact you should use only "make" since it is simpler to debug.
In general it is a good idea not to compile as root but as a regular user.
If the total error messages are too long for an email, please post them using a service like pastebin. Also please provide information about your OS version, compilers used, etc.
If you are unfamiliar with compiling programs from source I can offer to send you a link to a virtualbox image containing a fresh working install of alps and vistrails.
All the best
Benedikt
________________________________ From: Comp-phys-alps-users comp-phys-alps-users-bounces@lists.phys.ethz.ch on behalf of Santu Baidya santubaidya2009@gmail.com Sent: Thursday, December 1, 2016 7:45:47 PM To: comp-phys-alps-users@lists.phys.ethz.ch Subject: Re: [ALPS-users] Installation problem of alps-2.2 version in Ubuntu
Dear Julien, Thank you for your reply. I first logged in as root in my pc and then changed directory to /opt/. Then ran the command cmake -D Boost_ROOT_DIR=/opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost -DCMAKE_INSTALL_PREFIX=/opt/alps-2.2 /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/alps
It worked fine. After that I ran "make " and got the error as attached in my previous mail.
Again I found a website http://linuxtoolkit.blogspot.kr/2011/11/installing-alps-20-from-source-on.ht... where they suggested to use "make -j 8 " instead of simply "make"
Unfortunately I again some errors :
applications/dmrg/mps/CMakeFiles/mps_models.dir/build.make:86: recipe for target 'applications/dmrg/mps/CMakeFiles/mps_models.dir/framework/dmrg/models/factory/model_factory_nu1.cpp.o' failed make[2]: *** [applications/dmrg/mps/CMakeFiles/mps_models.dir/framework/dmrg/models/factory/model_factory_nu1.cpp.o] Error 1 CMakeFiles/Makefile2:5599: recipe for target 'applications/dmrg/mps/CMakeFiles/mps_models.dir/all' failed make[1]: *** [applications/dmrg/mps/CMakeFiles/mps_models.dir/all] Error 2 applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/build.make:206: recipe for target 'applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/interaction_expansion/splines.cpp.o' failed make[2]: *** [applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/interaction_expansion/splines.cpp.o] Error 1 CMakeFiles/Makefile2:5987: recipe for target 'applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/all' failed make[1]: *** [applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2
Please help me to install alps properly in my pc.
Thanking you,
Dr. Santu Baidya
On Thu, Dec 1, 2016 5:52 PM, Julien julien.despres@institutoptique.frmailto:julien.despres@institutoptique.fr wrote:
Dear Santu,
If you install the package in the 'opt' directory you have to use 'sudo'. Did you try to write in the terminal : sudo make test, sudo make install etc ...
Julien
-- __________________________________
DESPRES Julien Ph.D. student
Atom Optics group Quantum Matter Theory team Laboratoire Charles Fabry Institut d'Optique Graduate School 2 Avenue Augustin Fresnel 91127 Palaiseau Cedex
Office : R2.29 (1st floor) Phone: +33 1 64 53 33 49 __________________________________
On 01/12/2016 05:46, Santu Baidya wrote: Dear alps users,
I am currently installing alps-2.2.b3-r7462-src-with-boost in Linux, 4.4.0-47-generic #68-Ubuntu, x86_64, GNU/Linux. I first followed the instruction and ran the command:
cmake -D Boost_ROOT_DIR=/opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost -DCMAKE_INSTALL_PREFIX=/opt/alps-2.2 /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/alps
It ran without any problem. After that when I ran make i got some error for installation:
/opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/atomic/atomic.hpp:202:16: error: ‘uintptr_t’ was not declared in this scope typedef atomic<uintptr_t> atomic_uintptr_t; ^ /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/atomic/atomic.hpp:202:25: error: template argument 1 is invalid typedef atomic<uintptr_t> atomic_uintptr_t; ^ In file included from /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/thread/once.hpp:20:0, from /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/libs/thread/src/pthread/./once_atomic.cpp:9, from /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/libs/thread/src/pthread/once.cpp:8: /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/thread/pthread/once_atomic.hpp:120:37: warning: variadic templates only available with -std=c++11 or -std=gnu++11 template<typename Function, class ...ArgTypes> ^ /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/thread/pthread/once_atomic.hpp:121:108: warning: variadic templates only available with -std=c++11 or -std=gnu++11 inline void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)... args) ^ src/boost/CMakeFiles/boost.dir/build.make:3302: recipe for target 'src/boost/CMakeFiles/boost.dir/__/__/boost/libs/thread/src/pthread/once.cpp.o' failed make[2]: *** [src/boost/CMakeFiles/boost.dir/__/__/boost/libs/thread/src/pthread/once.cpp.o] Error 1 CMakeFiles/Makefile2:1081: recipe for target 'src/boost/CMakeFiles/boost.dir/all' failed make[1]: *** [src/boost/CMakeFiles/boost.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2
Please help me to install this code in Ubuntu in my pc.
Thanking you,
Dr. Santu Baidya Seoul National University South korea
---- Comp-phys-alps-users Mailing List for the ALPS Project http://alps.comp-phys.org/
List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users
Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.chmailto:comp-phys-alps-users-leave@lists.phys.ethz.ch.
my apologizes - here is the complete message:
Hi Santu
The source of your error is: atomic.hpp:202:16: error: ‘uintptr_t’ was not declared in this scope
This has been a know problem with boost around version 1.54, see for instance (https://svn.boost.org/trac/boost/ticket/8973). It is surprising that boost version 1.58 (which I believe is shipped with alps) still exhibits this error but ok. The bottom line for this is that your compiler (and maybe libc) is too new. I would recommend you install boost using apt-get:
sudo apt-get install libboost-all-dev
Afterwards you should be able to compile using (simply omit the Boost_ROOT_DIR variable):
cmake -DCMAKE_INSTALL_PREFIX=/home/cces/Downloads/alps-2.2 /home/cces/Downloads/alps-2.2/alps-2.2.b3-r7462-src-with-boost/alps
If it doesn't work check out, it might be that you are running into further incompatibility issues with your version of gcc and libc. This is a general issue that comes up from time to time when you are trying to compile code on a newer machine. In such cases it can be advice-able to compile the latest development version of the program. In the case of alps you can obtain the latest version from their svn repository (that version compiled fine for me using ubuntu 16.04).
In case you are running into further problems (the integration of alps with vistrails can be tricky too), here is the link to the virtualbox image that has everything included (link will expire at the end of December):
https://www.dropbox.com/s/sxdpx9oq510x8xw/alps_dev_password_testtest.ova?dl=...
You can import it, the password for the user b1 is testtest. You find alps in the directory alps_bin and ~/vistrails in the directory ~/vistrails2.2.2. Everything should work as is. For instance try
python ~/alps_bin/tutorials/ed-02-gaps/tutorial2a.py
or
python ~/vistrails2.2.2/vistrails/run.py
All the best
Benedikt
________________________________ From: Comp-phys-alps-users comp-phys-alps-users-bounces@lists.phys.ethz.ch on behalf of Brandt, Benedikt B benbra@gatech.edu Sent: Friday, December 2, 2016 12:06:11 AM To: comp-phys-alps-users@lists.phys.ethz.ch Subject: Re: [ALPS-users] Installation problem of alps-2.2 version in Ubuntu
Hi Santu
The source of your error is: atomic.hpp:202:16: error: ‘uintptr_t’ was not declared in this scope
This has been a know problem with boost around version 1.54, see for instance (https://svn.boost.org/trac/boost/ticket/8973). It is surprising that boost version 1.58 (which I believe is shipped with alps) still exhibits this error but ok. The bottom line for this is that your compiler (and maybe libc) is too new. I would recommend you install boost using apt-get:
sudo apt-get install libboost-all-dev
Afterwards you should be able to compile using (simply omit the Boost_ROOT_DIR variable):
cmake -DCMAKE_INSTALL_PREFIX=/home/cces/Downloads/alps-2.2 /home/cces/Downloads/alps-2.2/alps-2.2.b3-r7462-src-with-boost/alps
If it doesn't work check out, it might be that you are running into further incompatibility issues with your version of gcc and libc. This is a general issue that comes up from time to time when you are trying to compile code on a newer machine. In such cases it can be advice-able to compile the latest development version of the program. In the case of alps you can obtain the latest version from their svn repository (that version compiled fine for me using ubuntu 16.04).
In case you are running into further problems (the integration of alps with vistrails can be tricky too), here is the link to the virtualbox image that has everything included:
You can import it, the password for the user b1 is testtest. You find alps in the directory alps_bin and vistrails in the directory vistrails2.2.2. Everything should work as is. For instance try
python ~/alps_bin/tutorials/ed-02-gaps/tutorial2a.py
or
All the best
Benedikt
________________________________ From: Comp-phys-alps-users comp-phys-alps-users-bounces@lists.phys.ethz.ch on behalf of Santu Baidya santubaidya2009@gmail.com Sent: Thursday, December 1, 2016 9:18:45 PM To: comp-phys-alps-users@lists.phys.ethz.ch Subject: Re: [ALPS-users] Installation problem of alps-2.2 version in Ubuntu
Sorry I forgot to attach the files which are attached below.
Dear Benedikt,
Thank you for your reply. Yes, I am not expert in compiling and installing packages. I have attached The information about the compilers, OS in the file Information.txt (which I got after running "cmake …. " command). The Errors appeared after running "make" is attached in the file Make-Error-Details.txt. This time I did not compile as root. I compiled as user.
So please see if you find the error and suggest me what should I do.
Also, as you said you can provide me a link to a virtualbox image containing a fresh working install of alps and vistrails. I shall try with that too.
Thanking you,
Dr. Santu Baidya
On Fri, Dec 2, 2016 11:16 AM, Santu Baidya santubaidya2009@gmail.commailto:santubaidya2009@gmail.com wrote: Dear Benedikt,
Thank you for your reply. Yes, I am not expert in compiling and installing packages. I have attached The information about the compilers, OS in the file Information.txt (which I got after running "cmake …. " command). The Errors appeared after running "make" is attached in the file Make-Error-Details.txt. This time I did not compile as root. I compiled as user.
So please see if you find the error and suggest me what should I do.
Also, as you said you can provide me a link to a virtualbox image containing a fresh working install of alps and vistrails. I shall try with that too.
Thanking you,
Dr. Santu Baidya
On Fri, Dec 2, 2016 10:10 AM, Brandt, Benedikt B benbra@gatech.edumailto:benbra@gatech.edu wrote:
I can't see the root cause for the error message you posted. The lines you showed seem to be consecutive errors of some root error message that is not visible. -j 8 enables parallel building, using 8 threads instead of only 1 for the build process. If your build fails with a simple make it will fail with a make -j 8 too. In fact you should use only "make" since it is simpler to debug.
In general it is a good idea not to compile as root but as a regular user.
If the total error messages are too long for an email, please post them using a service like pastebin. Also please provide information about your OS version, compilers used, etc.
If you are unfamiliar with compiling programs from source I can offer to send you a link to a virtualbox image containing a fresh working install of alps and vistrails.
All the best
Benedikt
________________________________ From: Comp-phys-alps-users comp-phys-alps-users-bounces@lists.phys.ethz.ch on behalf of Santu Baidya santubaidya2009@gmail.com Sent: Thursday, December 1, 2016 7:45:47 PM To: comp-phys-alps-users@lists.phys.ethz.ch Subject: Re: [ALPS-users] Installation problem of alps-2.2 version in Ubuntu
Dear Julien, Thank you for your reply. I first logged in as root in my pc and then changed directory to /opt/. Then ran the command cmake -D Boost_ROOT_DIR=/opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost -DCMAKE_INSTALL_PREFIX=/opt/alps-2.2 /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/alps
It worked fine. After that I ran "make " and got the error as attached in my previous mail.
Again I found a website http://linuxtoolkit.blogspot.kr/2011/11/installing-alps-20-from-source-on.ht... where they suggested to use "make -j 8 " instead of simply "make"
Unfortunately I again some errors :
applications/dmrg/mps/CMakeFiles/mps_models.dir/build.make:86: recipe for target 'applications/dmrg/mps/CMakeFiles/mps_models.dir/framework/dmrg/models/factory/model_factory_nu1.cpp.o' failed make[2]: *** [applications/dmrg/mps/CMakeFiles/mps_models.dir/framework/dmrg/models/factory/model_factory_nu1.cpp.o] Error 1 CMakeFiles/Makefile2:5599: recipe for target 'applications/dmrg/mps/CMakeFiles/mps_models.dir/all' failed make[1]: *** [applications/dmrg/mps/CMakeFiles/mps_models.dir/all] Error 2 applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/build.make:206: recipe for target 'applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/interaction_expansion/splines.cpp.o' failed make[2]: *** [applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/interaction_expansion/splines.cpp.o] Error 1 CMakeFiles/Makefile2:5987: recipe for target 'applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/all' failed make[1]: *** [applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2
Please help me to install alps properly in my pc.
Thanking you,
Dr. Santu Baidya
On Thu, Dec 1, 2016 5:52 PM, Julien julien.despres@institutoptique.frmailto:julien.despres@institutoptique.fr wrote:
Dear Santu,
If you install the package in the 'opt' directory you have to use 'sudo'. Did you try to write in the terminal : sudo make test, sudo make install etc ...
Julien
-- __________________________________
DESPRES Julien Ph.D. student
Atom Optics group Quantum Matter Theory team Laboratoire Charles Fabry Institut d'Optique Graduate School 2 Avenue Augustin Fresnel 91127 Palaiseau Cedex
Office : R2.29 (1st floor) Phone: +33 1 64 53 33 49 __________________________________
On 01/12/2016 05:46, Santu Baidya wrote: Dear alps users,
I am currently installing alps-2.2.b3-r7462-src-with-boost in Linux, 4.4.0-47-generic #68-Ubuntu, x86_64, GNU/Linux. I first followed the instruction and ran the command:
cmake -D Boost_ROOT_DIR=/opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost -DCMAKE_INSTALL_PREFIX=/opt/alps-2.2 /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/alps
It ran without any problem. After that when I ran make i got some error for installation:
/opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/atomic/atomic.hpp:202:16: error: ‘uintptr_t’ was not declared in this scope typedef atomic<uintptr_t> atomic_uintptr_t; ^ /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/atomic/atomic.hpp:202:25: error: template argument 1 is invalid typedef atomic<uintptr_t> atomic_uintptr_t; ^ In file included from /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/thread/once.hpp:20:0, from /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/libs/thread/src/pthread/./once_atomic.cpp:9, from /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/libs/thread/src/pthread/once.cpp:8: /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/thread/pthread/once_atomic.hpp:120:37: warning: variadic templates only available with -std=c++11 or -std=gnu++11 template<typename Function, class ...ArgTypes> ^ /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/thread/pthread/once_atomic.hpp:121:108: warning: variadic templates only available with -std=c++11 or -std=gnu++11 inline void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)... args) ^ src/boost/CMakeFiles/boost.dir/build.make:3302: recipe for target 'src/boost/CMakeFiles/boost.dir/__/__/boost/libs/thread/src/pthread/once.cpp.o' failed make[2]: *** [src/boost/CMakeFiles/boost.dir/__/__/boost/libs/thread/src/pthread/once.cpp.o] Error 1 CMakeFiles/Makefile2:1081: recipe for target 'src/boost/CMakeFiles/boost.dir/all' failed make[1]: *** [src/boost/CMakeFiles/boost.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2
Please help me to install this code in Ubuntu in my pc.
Thanking you,
Dr. Santu Baidya Seoul National University South korea
---- Comp-phys-alps-users Mailing List for the ALPS Project http://alps.comp-phys.org/
List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users
Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.chmailto:comp-phys-alps-users-leave@lists.phys.ethz.ch.
Dear all,
I'm not sure about something concerning the measurements in the MPS code. For instance, I consider the one-dimensional Bose-Hubbard model and then I measure the density-density correlations by the following line : model['MEASURE_CORRELATIONS[Density-density correlations]'] = 'n:n'. As an output, I get a vector of L*L - L components with L the number of sites (I agree due to the fact that we don't have access to the <n_i n_j> values where the index 'i' is equal to 'j', we have to define a new operator n^2) but I haven't seen in the doc how this vector is organized. More precisely, which index is modify first? Do we have something like : d.y[0][:] = (<n0n1>, <n0n2>, ...,<n0,NL-1>, <n1n0>, <n1n2>, ...) .
Thanks in advance,
Julien
The data also includes labels, which tell your for each entry which sites the correlation is for
Matthias
On Dec 15, 2016, at 11:39, Julien julien.despres@institutoptique.fr wrote:
Dear all,
I'm not sure about something concerning the measurements in the MPS code. For instance, I consider the one-dimensional Bose-Hubbard model and then I measure the density-density correlations by the following line : model['MEASURE_CORRELATIONS[Density-density correlations]'] = 'n:n'. As an output, I get a vector of L*L - L components with L the number of sites (I agree due to the fact that we don't have access to the <n_i n_j> values where the index 'i' is equal to 'j', we have to define a new operator n^2) but I haven't seen in the doc how this vector is organized. More precisely, which index is modify first? Do we have something like : d.y[0][:] = (<n0n1>, <n0n2>, ...,<n0,NL-1>, <n1n0>, <n1n2>, ...) .
Thanks in advance,
Julien
-- __________________________________
DESPRES Julien Ph.D. student
Atom Optics group Quantum Matter Theory team Laboratoire Charles Fabry Institut d'Optique Graduate School 2 Avenue Augustin Fresnel 91127 Palaiseau Cedex
Office : R2.29 (1st floor) Phone: +33 1 64 53 33 49 __________________________________
Comp-phys-alps-users Mailing List for the ALPS Project http://alps.comp-phys.org/
List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users
Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.ch.
Hi Julien,
Non-scalar measurements are stored together with labels describing each entry. There is no order documented, because there is no order imposed. For example, because of implementation details, the local density measurements is stored in “lexical order”, i.e. 1, 10, 11, …, 2, 3, 4,…
The bottomline is that non-scalar measurements are in a flat vector d.y and there is another (higher dimensional) vector describing each entry in d.x
The file tutorials/mps-04-correlations/spin_one_half.py provides an example on how to iterate through a correlation measurement.
Note that the representation of d.x is also not trivial and is a bit different between one- and two-dimensional lattices. For example d.x = [ [coords_11, coords_12], [coords_21, coords_22], [coords_31, coords_32], [coords_41, coords_42], ... ]
where with coords_ij I mean the coordinate of the operators j and this is the i-th entry.
Coords_ij is the actual lattice coordinate. In 1d it is just a scalar, in 2d it is a pair of coordinates (x,y).
Best, Michele
-- ETH Zurich Dr. Michele Dolfi Institute for Theoretical Physics HIT G 32.4 Wolfgang-Pauli-Str. 27 8093 Zurich Switzerland
dolfim@phys.ethz.ch www.itp.phys.ethz.ch
+41 44 633 78 56 phone +41 44 633 11 15 fax
On Dec 15, 2016, at 11:39 AM, Julien julien.despres@institutoptique.fr wrote:
Dear all,
I'm not sure about something concerning the measurements in the MPS code. For instance, I consider the one-dimensional Bose-Hubbard model and then I measure the density-density correlations by the following line : model['MEASURE_CORRELATIONS[Density-density correlations]'] = 'n:n'. As an output, I get a vector of L*L - L components with L the number of sites (I agree due to the fact that we don't have access to the <n_i n_j> values where the index 'i' is equal to 'j', we have to define a new operator n^2) but I haven't seen in the doc how this vector is organized. More precisely, which index is modify first? Do we have something like : d.y[0][:] = (<n0n1>, <n0n2>, ...,<n0,NL-1>, <n1n0>, <n1n2>, ...) .
Thanks in advance,
Julien
-- __________________________________
DESPRES Julien Ph.D. student
Atom Optics group Quantum Matter Theory team Laboratoire Charles Fabry Institut d'Optique Graduate School 2 Avenue Augustin Fresnel 91127 Palaiseau Cedex
Office : R2.29 (1st floor) Phone: +33 1 64 53 33 49 __________________________________
Comp-phys-alps-users Mailing List for the ALPS Project http://alps.comp-phys.org/
List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users
Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.ch.
Thanks for your answers!
Julien
On 15/12/2016 12:04, Michele Dolfi wrote:
Hi Julien,
Non-scalar measurements are stored together with labels describing each entry. There is no order documented, because there is no order imposed. For example, because of implementation details, the local density measurements is stored in “lexical order”, i.e. 1, 10, 11, …, 2, 3, 4,…
The bottomline is that non-scalar measurements are in a flat vector d.y and there is another (higher dimensional) vector describing each entry in d.x
The file tutorials/mps-04-correlations/spin_one_half.py provides an example on how to iterate through a correlation measurement.
Note that the representation of d.x is also not trivial and is a bit different between one- and two-dimensional lattices. For example d.x = [ [coords_11, coords_12], [coords_21, coords_22], [coords_31, coords_32], [coords_41, coords_42], ... ]
where with coords_ij I mean the coordinate of the operators j and this is the i-th entry.
Coords_ij is the actual lattice coordinate. In 1d it is just a scalar, in 2d it is a pair of coordinates (x,y).
Best, Michele
-- ETH Zurich Dr. Michele Dolfi Institute for Theoretical Physics HIT G 32.4 Wolfgang-Pauli-Str. 27 8093 Zurich Switzerland
dolfim@phys.ethz.ch mailto:dolfim@phys.ethz.ch www.itp.phys.ethz.ch http://www.itp.phys.ethz.ch
+41 44 633 78 56 phone +41 44 633 11 15 fax
On Dec 15, 2016, at 11:39 AM, Julien <julien.despres@institutoptique.fr mailto:julien.despres@institutoptique.fr> wrote:
Dear all,
I'm not sure about something concerning the measurements in the MPS code. For instance, I consider the one-dimensional Bose-Hubbard model and then I measure the density-density correlations by the following line : model['MEASURE_CORRELATIONS[Density-density correlations]'] = 'n:n'. As an output, I get a vector of L*L - L components with L the number of sites (I agree due to the fact that we don't have access to the <n_i n_j> values where the index 'i' is equal to 'j', we have to define a new operator n^2) but I haven't seen in the doc how this vector is organized. More precisely, which index is modify first? Do we have something like : d.y[0][:] = (<n0n1>, <n0n2>, ...,<n0,NL-1>, <n1n0>, <n1n2>, ...) .
Thanks in advance,
Julien
-- __________________________________
DESPRES Julien Ph.D. student
Atom Optics group Quantum Matter Theory team Laboratoire Charles Fabry Institut d'Optique Graduate School 2 Avenue Augustin Fresnel 91127 Palaiseau Cedex
Office : R2.29 (1st floor) Phone: +33 1 64 53 33 49 __________________________________
Comp-phys-alps-users Mailing List for the ALPS Project http://alps.comp-phys.org/
List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users
Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.ch.
Comp-phys-alps-users Mailing List for the ALPS Project http://alps.comp-phys.org/
List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users
Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.ch.
comp-phys-alps-users@lists.phys.ethz.ch