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_gcandlib_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.hC:\somewhere\mpir\lib\x64\Release\gmpxx.hC:\somewhere\mpfr\lib\x64\Debug\mpfr.hC:\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 installTo 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.hMPFR_ROOT/lib/libmpfr.aGMP_ROOT/include/gmpxx.hGMP_ROOT/lib/libgmpxx.a
In Windows, use cmake-gui to build.
- Create
qboot\buildfolder. - Set "Where is the source code:" to the path of
qbootfolder, "Where to build the binaries:" to the path ofqboot\buildfolder. - Push
Add Entryto setGMP_ROOT,MPFR_ROOTandCMAKE_INSTALL_PREFIX. - Push
Configurebutton andGeneratebutton. - Open
qboot.slninqboot\buildfolder and buildINSTALLproject.
You have to ensure the exsistence of:
MPFR_ROOT\Debug\mpfr.h,MPFR_ROOT\Release\mpfr.hMPFR_ROOT\Debug\mpfr.lib,MPFR_ROOT\Release\mpfr.libGMP_ROOT\Debug\gmpxx.h,GMP_ROOT\Release\gmpxx.hGMP_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
makeAnd you can execute sample/build/bin/sample.
Of course, you can build also in Windows.
- Create
sample\buildfolder. - Set "Where is the source code:" to the path of
samplefolder, "Where to build the binaries:" to the path ofsample\buildfolder. - Push
Add Entryto setQBoot_DIRto/some/where. - Push
Configurebutton andGeneratebutton.
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