Skip to content
Snippets Groups Projects
Commit 8640cbc4 authored by Stefan Gehr's avatar Stefan Gehr
Browse files

handout

parent 768cf920
No related branches found
No related tags found
No related merge requests found
Pipeline #94682 passed
...@@ -6,8 +6,10 @@ compile_pdf: ...@@ -6,8 +6,10 @@ compile_pdf:
image: aergus/latex image: aergus/latex
script: script:
- make - make
- make handout
stage: build stage: build
artifacts: artifacts:
expire_in: 2 weeks expire_in: 2 weeks
paths: paths:
- "build/qmc-loop-algorithm-report.pdf" - "build/qmc-loop-algorithm-report.pdf"
- "build/qmc-loop-algorithm-report-handout.pdf"
...@@ -4,11 +4,19 @@ refs=src/references.bib ...@@ -4,11 +4,19 @@ refs=src/references.bib
default: build/$(name).pdf default: build/$(name).pdf
build/$(name).pdf: src/$(name).tex $(refs) fau-beamer/styles/beamerthemefau.sty buildstuff: $(refs) fau-beamer/styles/beamerthemefau.sty
mkdir -p build mkdir -p build
find fau-beamer/* -maxdepth 0 -type d -execdir ln -rsf "{}" ../build \; find fau-beamer/* -maxdepth 0 -type d -execdir ln -rsf "{}" ../build \;
cp $(refs) build cp $(refs) build
latexmk -pdf -output-directory=build src/$(name).tex
build/$(name).pdf: src/$(name).tex buildstuff
latexmk -pdf -output-directory=build $<
handout: build/$(name)-handout.pdf
build/$(name)-handout.pdf: src/$(name).tex buildstuff
sed -e 's/documentclass{/documentclass[handout]{/' $< > build/$(name)-handout.tex
latexmk -pdf -output-directory=build build/$(name)-handout.tex
clean: clean:
rm -rf build rm -rf build
...@@ -17,3 +25,6 @@ clean: ...@@ -17,3 +25,6 @@ clean:
show: build/$(name).pdf show: build/$(name).pdf
xdg-open build/$(name).pdf xdg-open build/$(name).pdf
show-handout: build/$(name)-handout.pdf
xdg-open build/$(name)-handout.pdf
...@@ -2,11 +2,12 @@ ...@@ -2,11 +2,12 @@
This is my presentation about the Quantum Monte Carlo Loop Algorithm. This is my presentation about the Quantum Monte Carlo Loop Algorithm.
The compiled PDF is available at [https://gitlab.cs.fau.de/oz73ifuv/qmc-loop-algorithm-report/-/jobs/artifacts/main/raw/build/qmc-loop-algorithm-report.pdf?job=compile_pdf](https://gitlab.cs.fau.de/oz73ifuv/qmc-loop-algorithm-report/-/jobs/artifacts/main/raw/build/qmc-loop-algorithm-report.pdf?job=compile_pdf). The handout is available at [https://gitlab.cs.fau.de/oz73ifuv/qmc-loop-algorithm-report/-/jobs/artifacts/main/raw/build/qmc-loop-algorithm-report-handout.pdf?job=compile_pdf](https://gitlab.cs.fau.de/oz73ifuv/qmc-loop-algorithm-report/-/jobs/artifacts/main/raw/build/qmc-loop-algorithm-report-handout.pdf?job=compile_pdf).
The presentation is available at [https://gitlab.cs.fau.de/oz73ifuv/qmc-loop-algorithm-report/-/jobs/artifacts/main/raw/build/qmc-loop-algorithm-report.pdf?job=compile_pdf](https://gitlab.cs.fau.de/oz73ifuv/qmc-loop-algorithm-report/-/jobs/artifacts/main/raw/build/qmc-loop-algorithm-report.pdf?job=compile_pdf).
If you want to compile the PDF yourself then do If you want to compile the PDF yourself then do
```sh ```sh
git clone --recurse-submodules https://gitlab.cs.fau.de/oz73ifuv/qmc-loop-algorithm-report.git git clone --recurse-submodules https://gitlab.cs.fau.de/oz73ifuv/qmc-loop-algorithm-report.git
cd qmc-loop-algorithm-report cd qmc-loop-algorithm-report
make show make show-handout
``` ```
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
\usepackage{physics} \usepackage{physics}
\usepackage{ragged2e} \usepackage{ragged2e}
\usepackage{bbm} \usepackage{bbm}
\usepackage{tikz}
\usepackage[separate-uncertainty=true, binary-units]{siunitx} \usepackage[separate-uncertainty=true, binary-units]{siunitx}
%\usepackage{algpseudocode} %\usepackage{algpseudocode}
\graphicspath{{../figures/}} \graphicspath{{../figures/}}
...@@ -68,7 +69,18 @@ ...@@ -68,7 +69,18 @@
\end{align*} \end{align*}
Most configurations \(\vec{\sigma}_i\) are highly unlikely Most configurations \(\vec{\sigma}_i\) are highly unlikely
\(w_{\vec{\sigma}_i}\approx 0\) \\ \(w_{\vec{\sigma}_i}\approx 0\) \\
\(\Rightarrow\) Only sample the important configurations \begin{minipage}{0.3\linewidth}
\Centering
\begin{tikzpicture}
\node[circle,draw,fill=lightgray,minimum size=3em] (c) at (0,0){};
\node[circle,draw,fill=red,minimum size=0.8em] (c) at (0.1,0.4){};
\end{tikzpicture}
\end{minipage}
\hfill
\begin{minipage}{0.65\linewidth}
{\color{lightgray} All possible configurations} \\
{\color{red} Significant configurations}
\end{minipage}
% TODO Tikz circle in circle % TODO Tikz circle in circle
\end{block} \end{block}
\begin{block}{Detailed Balance condition} \begin{block}{Detailed Balance condition}
...@@ -76,7 +88,7 @@ ...@@ -76,7 +88,7 @@
w_{\vec{\sigma}}\, p(\vec{\sigma} \to \vec{\sigma}') w_{\vec{\sigma}}\, p(\vec{\sigma} \to \vec{\sigma}')
= w_{\vec{\sigma}'}\, p(\vec{\sigma}' \to \vec{\sigma}) = w_{\vec{\sigma}'}\, p(\vec{\sigma}' \to \vec{\sigma})
\end{align*} \end{align*}
Assures configuration \(\vec{\sigma}\) is sampled with correct weight \(w_{\vec{\sigma}}\) Assures configuration \(\vec{\sigma}\) is sampled with weight \(w_{\vec{\sigma}}\)
\end{block} \end{block}
\begin{block}{Ergodicity} \begin{block}{Ergodicity}
All configurations should be reachable after finitely many steps All configurations should be reachable after finitely many steps
...@@ -107,10 +119,10 @@ ...@@ -107,10 +119,10 @@
\visible<2->{&\vec{\sigma}_1 \to \cdots \to \vec{\sigma}_A} \\ \visible<2->{&\vec{\sigma}_1 \to \cdots \to \vec{\sigma}_A} \\
\visible<3->{&\vec{\sigma}_A \overset{\text{change}}{\implies} \vec{\sigma}_B} \\ \visible<3->{&\vec{\sigma}_A \overset{\text{change}}{\implies} \vec{\sigma}_B} \\
\visible<4->{ \visible<4->{
&\begin{cases} &\die{} \begin{cases}
\visible<4->{\die{} \le \min\left(1,\frac{p_{\text{acc}}(\vec{\sigma}_A\to \vec{\sigma}_B)}{p_{\text{acc}}(\vec{\sigma}_B\to \vec{\sigma}_A)}\right) \\ \visible<4->{\le \min\left(1,\frac{p_{\text{acc}}(\vec{\sigma}_A\to \vec{\sigma}_B)}{p_{\text{acc}}(\vec{\sigma}_B\to \vec{\sigma}_A)}\right) \\
\implies \vec{\sigma}_1 \to \cdots \to \vec{\sigma}_A \to \vec{\sigma}_B} \\ \implies \vec{\sigma}_1 \to \cdots \to \vec{\sigma}_A \to \vec{\sigma}_B} \\
\visible<5->{\die{} > \min\left(1,\frac{p_{\text{acc}}(\vec{\sigma}_A\to \vec{\sigma}_j)}{p_{\text{acc}}(\vec{\sigma}_j\to \vec{\sigma}_A)}\right) \\ \visible<5->{> \min\left(1,\frac{p_{\text{acc}}(\vec{\sigma}_A\to \vec{\sigma}_j)}{p_{\text{acc}}(\vec{\sigma}_j\to \vec{\sigma}_A)}\right) \\
\implies \vec{\sigma}_1 \to \cdots \to \vec{\sigma}_A \to \vec{\sigma}_A} \implies \vec{\sigma}_1 \to \cdots \to \vec{\sigma}_A \to \vec{\sigma}_A}
\end{cases}} \end{cases}}
\end{align*} \end{align*}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment