\documentclass{lib/cel-thesis/cel-thesis}

\usepackage[a4paper,left=3cm,right=3cm,top=2.5cm,bottom=2.5cm]{geometry}
\usepackage{float}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{mleftright}
\usepackage{bm}
\usepackage{bbm}
\usepackage{tikz}
\usepackage{xcolor}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\usepackage{acro}
\usepackage{braket}
\usepackage{listings}
\usepackage{caption}
% \usepackage[
%     backend=biber,
%     style=ieee,
%     sorting=nty,
% ]{biblatex}
% \usepackage{todonotes}
\usepackage{quantikz}
\usepackage{stmaryrd}
\usepackage{algorithm}
\usepackage[noEnd=false]{algpseudocodex}
\usepackage{nicematrix}
\usepackage{colortbl}
\usepackage{cleveref}
\usepackage{lipsum}
\usepackage{booktabs}

\usetikzlibrary{calc, positioning, arrows, fit}
\usetikzlibrary{external}
\tikzexternalize

% \makeatletter
% \renewcommand{\todo}[2][]{\tikzexternaldisable\@todo[#1]{#2}\tikzexternalenable}
% \makeatother

\setcounter{MaxMatrixCols}{20}

\Crefname{equation}{}{}
\Crefname{section}{Section}{Sections}
\Crefname{subsection}{Section}{Sections}
\Crefname{figure}{Figure}{Figures}

%
%
% Custom commands
%
%

\newcommand{\red}[1]{\textcolor{red}{#1}}
\newcommand{\content}[1]{\noindent\indent\red{[#1]\\}}

\newcommand{\figwidth}{10cm}
\newcommand{\figheight}{7.5cm}

%
%
% Acronyms
%
%

\input{acronyms.tex}

\usepackage{babelbib}
\setlanguage

\usepackage{caption}
\usepackage{bm}
\usepackage{subcaption}
\usepackage{todonotes} % great for draft annotations
\DeclareCaptionLabelFormat{bf-nodot}{\textbf{#1}~\textbf{#2}}
\captionsetup{labelformat=bf-nodot,labelsep=colon}

%
%
% Content
%
%

\thesisTitle{Fault Tolerant Quantum Error Correction}
\thesisType{Master's Thesis}
\thesisAuthor{Andreas Tsouchlos}
\thesisAdvisor{Prof. Dr.-Ing. Laurent Schmalen}
\thesisHeadOfInstitute{Prof. Dr.-Ing. Laurent Schmalen}
% \thesisHeadOfInstitute{Prof. Dr.-Ing. Peter Rost}
%\thesisHeadOfInstitute{Prof. Dr.-Ing. Peter Rost\\Prof. Dr.-Ing.
% Laurent Schmalen}
\thesisSupervisor{Dr.-Ing. Hedongliang Liu\\ && M.Sc. Jonathan Mandelbaum}
\thesisStartDate{Nov. 1st, 2025}
\thesisEndDate{May 4th, 2026}
\thesisSignatureDate{May 4th, 2026}
\thesisSignature{res/Unterschrift_AT_blue.png}
\thesisSignatureHeight{2.4cm}
\thesisLanguage{english}

\begin{document}
\pagenumbering{roman}  % all the preliminaries should be counted roman style

\maketitle
\newpage

\include{chapters/abstract}

\cleardoublepage
\pagenumbering{arabic}

\newgeometry{a4paper,left=3cm,right=3cm,top=2cm,bottom=2.5cm}                               
\addtocontents{toc}{\protect\vspace*{-9mm}}
\tableofcontents                                                                            
\cleardoublepage
\restoregeometry                                                                            

\input{chapters/1_introduction.tex}
\input{chapters/2_fundamentals.tex}
\input{chapters/3_fault_tolerant_qec.tex}
\input{chapters/4_decoding_under_dems.tex}
\input{chapters/5_conclusion_and_outlook.tex}

% \appendix
% \listoffigures
% \listoftables
% \include{abbreviations}

\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{List of Abbreviations}
\printacronyms

\bibliography{lib/cel-thesis/IEEEabrv,src/thesis/bibliography}

\end{document}

