Dear ALPS developers, It can be found that lots of ALPS tutorials are written by python codes and the ALPS essentially written by C++. As far as I know, python can co-work with C++ by SWIG or Cpython. But It seem that ALPS does not use such two tools. I want to know: How does python co-work with C++ in ALPS?
Regards, Bo Li
Hi Bo Li,
ALPS uses Boost.Python.
Matthias Troyer
On May 30, 2012, at 4:32, Bo Li libo622@gmail.com wrote:
Dear ALPS developers, It can be found that lots of ALPS tutorials are written by python codes and the ALPS essentially written by C++. As far as I know, python can co-work with C++ by SWIG or Cpython. But It seem that ALPS does not use such two tools. I want to know: How does python co-work with C++ in ALPS?
Regards, Bo Li
Dear Matthias Thank you.
2012/5/30 Matthias Troyer troyer@phys.ethz.ch
Hi Bo Li,
ALPS uses Boost.Python.
Matthias Troyer
On May 30, 2012, at 4:32, Bo Li libo622@gmail.com wrote:
Dear ALPS developers, It can be found that lots of ALPS tutorials are written by
python codes and the ALPS essentially written by C++. As far as I know, python can co-work with C++ by SWIG or Cpython. But It seem that ALPS does not use such two tools. I want to know: How does python co-work with C++ in ALPS?
Regards, Bo Li
Dear Matthias, The Hamiltonian is defined by XML file. Which XML parser the ALPS use, Xerces-c++ parser or Boost-c++ parser?
2012/5/30 Bo Li libo622@gmail.com
Dear Matthias Thank you.
2012/5/30 Matthias Troyer troyer@phys.ethz.ch
Hi Bo Li,
ALPS uses Boost.Python.
Matthias Troyer
On May 30, 2012, at 4:32, Bo Li libo622@gmail.com wrote:
Dear ALPS developers, It can be found that lots of ALPS tutorials are written by
python codes and the ALPS essentially written by C++. As far as I know, python can co-work with C++ by SWIG or Cpython. But It seem that ALPS does not use such two tools. I want to know: How does python co-work with C++ in ALPS?
Regards, Bo Li
comp-phys-alps-users@lists.phys.ethz.ch