From 85771405db2ca213c6c9804df5965d8abf9ead08 Mon Sep 17 00:00:00 2001 From: Andreas Tsouchlos Date: Sat, 25 Apr 2026 14:14:41 +0200 Subject: [PATCH] Add noise model figures --- src/thesis/chapters/3_fault_tolerant_qec.tex | 117 +++++++++++++++++++ src/thesis/main.tex | 8 +- 2 files changed, 121 insertions(+), 4 deletions(-) diff --git a/src/thesis/chapters/3_fault_tolerant_qec.tex b/src/thesis/chapters/3_fault_tolerant_qec.tex index 4914b74..06623bf 100644 --- a/src/thesis/chapters/3_fault_tolerant_qec.tex +++ b/src/thesis/chapters/3_fault_tolerant_qec.tex @@ -12,3 +12,120 @@ \subsection{Practical Methodology} \subsection{Stim} +\begin{figure}[H] + \centering + + \newcommand{\xerr}{\gate[style={fill=KITblue!50}]{\phantom{1}}} + \newcommand{\xyzerr}{\gate[style={ + draw=black, + fill=KITred, + path picture={ + % tex-fmt: off + \fill[KITblue!60] + ($(path picture bounding box.south west)+(0,0)$) + -- ($(path picture bounding box.north west)+(0,0)$) + -- ($(path picture bounding box.north west)+(0.28,0)$) + -- cycle; + \fill[KITorange!60] + ($(path picture bounding box.north east)+(0,0)$) + -- ($(path picture bounding box.south east)+(0,0)$) + -- ($(path picture bounding box.south east)+(-0.28,0)$) + -- cycle; + \fill[KITred!60] + ($(path picture bounding box.north east)+(0,0)$) + -- ($(path picture bounding box.south east)+(-0.28,0)$) + -- ($(path picture bounding box.south west)+(0,0)$) + -- ($(path picture bounding box.north west)+(0.28,0)$) + -- cycle; + % tex-fmt: on + } + }]{\phantom{1}}} + + \begin{subfigure}{0.48\textwidth} + \centering + % tex-fmt: off + \begin{quantikz}[row sep=4mm, column sep=4mm] + & \xyzerr & \ctrl{3} & & & & & \\ + \lstick{$\ket{\psi}$} & \xyzerr & & \ctrl{2} & \ctrl{3} & & & \\ + & \xyzerr & & & & \ctrl{2} & & \\ + \lstick{$\ket{0}_{\text{A}_1}$} & & \targ{} & \targ{} & & & \meter{} & \setwiretype{c} \\ + \lstick{$\ket{0}_{\text{A}_2}$} & & & & \targ{} & \targ{} & \meter{} & \setwiretype{c} + \end{quantikz} + % tex-fmt: on + + \caption{Depolarizing channel.} + \end{subfigure}% + \begin{subfigure}{0.48\textwidth} + \centering + % tex-fmt: off + \begin{quantikz}[row sep=4mm, column sep=4mm] + & \xerr & \ctrl{3} & & & & & & \\ + \lstick{$\ket{\psi}$} & \xerr & & \ctrl{2} & \ctrl{3} & & & & \\ + & \xerr & & & & \ctrl{2} & & & \\ + \lstick{$\ket{0}_{\text{A}_1}$} & & \targ{} & \targ{} & & & \xerr & \meter{} & \setwiretype{c} \\ + \lstick{$\ket{0}_{\text{A}_2}$} & & & & \targ{} & \targ{} & \xerr & \meter{} & \setwiretype{c} + \end{quantikz} + % tex-fmt: on + + \caption{Phenomenological noise.} + \end{subfigure} + + \vspace*{3mm} + \centering + \begin{subfigure}[c]{0.75\textwidth} + \centering + % tex-fmt: off + \begin{quantikz}[row sep=4mm, column sep=2mm] + & \xyzerr & \ctrl{3} & \xyzerr \wire[d][3]{q} & & & & & & & & & \\ + \lstick{$\ket{\psi}$} & \xyzerr & & & \ctrl{2} & \xyzerr \wire[d][2]{q} & \ctrl{3} & \xyzerr \wire[d][3]{q} & & & & & \\ + & \xyzerr & & & & & & & \ctrl{2} & \xyzerr \wire[d][2]{q} & & & \\ + \lstick{$\ket{0}_{\text{A}_1}$} & \xyzerr & \targ{} & \xyzerr & \targ{} & \xyzerr & & & & & \xerr & \meter{} & \setwiretype{c} \\ + \lstick{$\ket{0}_{\text{A}_2}$} & \xyzerr & & & & & \targ{} & \xyzerr & \targ{} & \xyzerr & \xerr & \meter{} & \setwiretype{c} + \end{quantikz} + % tex-fmt: on + + \caption{Circuit-level noise.} + \end{subfigure}% + \hfill% + \begin{subfigure}[c]{0.25\textwidth} + \centering + % tex-fmt: off + \begin{quantikz}[row sep=4mm, column sep=2mm] + \setwiretype{n} & \xerr & \gate[style={right, draw=none, xshift=-15mm}]{\text{X error}} \\ + \setwiretype{n} & \xyzerr & \gate[style={right, draw=none, xshift=-15mm}]{\text{X,Z, or Y error}} \\ + \setwiretype{n} & \gate{\phantom{1}}\wire[d][1]{q} & \gate[style={right, draw=none, xshift=-15mm},2]{\text{Correlated error}} \\ + \setwiretype{n} & \gate{\phantom{1}} & + \end{quantikz} + % tex-fmt: on + \end{subfigure} + + \caption{Types of noise models.} + \label{fig:Types of noise models.} +\end{figure} + +\begin{figure}[H] + \centering + + \begin{tikzpicture} + \node[rectangle, draw, fill=orange!20, minimum + height=2cm, minimum width=2.5cm, align=left] at (0,0) + (internal) {Internal\\ Errors}; + + \node[signal, draw, fill=orange!20, minimum height=2cm, + minimum width=2.5cm, align=left, signal pointer angle=140] + at (-2.45, 0) (input) {Input\\ Errors}; + + \node at (1.97,0) {\huge =}; + + \node[rectangle, draw, fill=orange!20, minimum height=2cm, + minimum width=2.5cm, align=left] at (4,0) (output) + {Output\\ Errors}; + + \node[above] at (input.north) {\small Input State}; + \node[above] at (internal.north) {\small QEC}; + \node[above] at (output.north) {\small Output State}; + \end{tikzpicture} + + \caption{Sources of error in a fault-tolerant \ac{qec} system.} +\end{figure} + diff --git a/src/thesis/main.tex b/src/thesis/main.tex index 032ade0..a6c3316 100644 --- a/src/thesis/main.tex +++ b/src/thesis/main.tex @@ -98,11 +98,11 @@ \tableofcontents \cleardoublepage -\input{chapters/1_introduction.tex} -\input{chapters/2_fundamentals.tex} +% \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} +% \input{chapters/4_decoding_under_dems.tex} +% \input{chapters/5_conclusion_and_outlook.tex} % \appendix % \listoffigures