This Repository implements the Benchmark test used in the paper.
Run everything from inside src/ (paths are relative).
cd srcjulia --versionTested with Julia 1.12.6 (ITensors/ITensorMPS need ≥1.9).
julia setup_env.jl→ creates ../.env, installs all important libs
Requires precompile_script.jl in the same folder.
julia --project=../.env build_image.jl→ produces itensors_image.so.
Rscript r_setup.RInstalls ggplot2, dplyr, tidyr, stringr, ggh4x, readr, patchwork, tikzDevice. Checks for pdflatex (needed by tikzDevice) — install TeX Live / MacTeX if missing.
mkdir -p ../data/DMRG_QUBO ../data/DMRG_PUBO ../data/SA_QUBO ../data/SA_PUBOjulia -t <number of thread> --project=../.env -Jitensors_image.so DMRG_pipeline.jl --mode <qubo,pubo> --maxfiles <1-90> --total_runs <N> julia -t <number of thread> --project=../.env -Jitensors_image.so SA_pipeline.jl --mode <qubo,pubo> --maxfiles <1-90> --total_runs <N>| Flag | Meaning |
|---|---|
-t 256 |
thread count — set to your actual core count |
-Jitensors_image.so |
load precompiled sysimage |
--mode qubo/pubo |
encoding |
--maxfiles N |
limit instances processed |
--total_runs N |
repeats per instance |
https://github.com/lfd/QSW25-SAT-Strikes-Back
-
.env/created -
itensors_image.sobuilt - R packages +
pdflatexOK - output dirs exist
-
-tmatches CPU cores