Converter from Conformal Bootstrap Equations to Semidefinite Programming.
Sum of operators may run over not only infinite range [lb, infty)
but also finite one [lb, ub)
.
For more information, see An Automated Generation of Bootstrap Equations for Numerical Study of Critical Phenomena.
Some codes are taken from cboot.
- cmake (
3.12.4+
)
-
mpir (You must build
lib_mpir_gc
andlib_mpir_cxx
) -
Visual Studio (
2017+
)
Please build mpir
and mpfr
in both Debug
and Release
mode.
If you cloned mpir
and mpfr
in C:\somewhere\mpir
and C:\somewhere\mpfr
,
you will have
C:\somewhere\mpir\lib\x64\Debug\gmpxx.h
C:\somewhere\mpir\lib\x64\Release\gmpxx.h
C:\somewhere\mpfr\lib\x64\Debug\mpfr.h
C:\somewhere\mpir\lib\x64\Release\gmpxx.h
mkdir qboot/build && cd qboot/build
cmake .. -DMPFR_ROOT=/path/to/mpfr -DGMP_ROOT=/path/to/gmp -DCMAKE_INSTALL_PREFIX=/somewhere/you/like
make
make install
To build in Debug
or Release
mode, call cmake
with -DCMAKE_BUILD_TYPE=Debug
or -DCMAKE_BUILD_TYPE=Release
.
You have to ensure the exsistence of:
MPFR_ROOT/include/mpfr.h
MPFR_ROOT/lib/libmpfr.a
GMP_ROOT/include/gmpxx.h
GMP_ROOT/lib/libgmpxx.a
In Windows, use cmake-gui to build.
- Create
qboot\build
folder. - Set "Where is the source code:" to the path of
qboot
folder, "Where to build the binaries:" to the path ofqboot\build
folder. - Push
Add Entry
to setGMP_ROOT
,MPFR_ROOT
andCMAKE_INSTALL_PREFIX
. - Push
Configure
button andGenerate
button. - Open
qboot.sln
inqboot\build
folder and buildINSTALL
project.
You have to ensure the exsistence of:
MPFR_ROOT\Debug\mpfr.h
,MPFR_ROOT\Release\mpfr.h
MPFR_ROOT\Debug\mpfr.lib
,MPFR_ROOT\Release\mpfr.lib
GMP_ROOT\Debug\gmpxx.h
,GMP_ROOT\Release\gmpxx.h
GMP_ROOT\Debug\mpirxx.lib
,GMP_ROOT\Release\mpirxx.lib
The typical value for GMP_ROOT
is C:\somewhere\mpir\lib\x64
and for MPFR_ROOT
C:\somewhere\mpfr\lib\x64
.
You can set CMAKE_INSTALL_PREFIX
to anywhere you like.
sample folder is a sample project which use installed qboot
.
You can copy this folder to anywhere you like.
Once you have installed qboot
with -DCMAKE_INSTALL_PREFIX=/some/where
, you can build this sample by:
cd sample
mkdir build
cd build
cmake .. -DQBoot_ROOT=/some/where -DCMAKE_BUILD_TYPE=Debug
make
And you can execute sample/build/bin/sample
.
Of course, you can build also in Windows.
- Create
sample\build
folder. - Set "Where is the source code:" to the path of
sample
folder, "Where to build the binaries:" to the path ofsample\build
folder. - Push
Add Entry
to setQBoot_DIR
to/some/where
. - Push
Configure
button andGenerate
button.
You can build sample.sln
in sample\build
folder.
Docker for qboot can be obtained from selpo/qboot, which was built using Dockerfile. We also have a simple sample using this container in sample/Dockerfile.
cd qboot/sample
docker build -t qboot.sample .
docker run -it --rm qboot.sample
./build/bin/sample-debug