Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Phase kickback compendium page #31

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
\relax
\providecommand\hyper@newdestlabel[2]{}
\providecommand\HyperFirstAtBeginDocument{\AtBeginDocument}
\HyperFirstAtBeginDocument{\ifx\hyper@anchor\@undefined
\global\let\oldnewlabel\newlabel
\gdef\newlabel#1#2{\newlabelxx{#1}#2}
\gdef\newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}}
\AtEndDocument{\ifx\hyper@anchor\@undefined
\let\newlabel\oldnewlabel
\fi}
\fi}
\global\let\hyper@last\relax
\gdef\HyperFirstAtBeginDocument#1{#1}
\providecommand\HyField@AuxAddToFields[1]{}
\providecommand\HyField@AuxAddToCoFields[2]{}
\@writefile{nav}{\headcommand {\slideentry {0}{0}{1}{1/1}{}{0}}}
\@writefile{nav}{\headcommand {\beamer@framepages {1}{1}}}
\@writefile{nav}{\headcommand {\beamer@sectionpages {1}{1}}}
\@writefile{nav}{\headcommand {\beamer@subsectionpages {1}{1}}}
\@writefile{nav}{\headcommand {\sectionentry {1}{Outline}{2}{Outline}{0}}}
\@writefile{nav}{\headcommand {\slideentry {1}{0}{1}{2/2}{}{0}}}
\@writefile{nav}{\headcommand {\beamer@framepages {2}{2}}}
\@writefile{toc}{\beamer@sectionintoc {2}{Introduction}{3}{0}{1}}
\@writefile{nav}{\headcommand {\beamer@sectionpages {2}{2}}}
\@writefile{nav}{\headcommand {\beamer@subsectionpages {2}{2}}}
\@writefile{nav}{\headcommand {\sectionentry {2}{Introduction}{3}{Introduction}{0}}}
\@writefile{toc}{\beamer@subsectionintoc {2}{1}{Quantum CIrcuit Diagram}{3}{0}{1}}
\@writefile{nav}{\headcommand {\beamer@subsectionpages {3}{2}}}
\@writefile{nav}{\headcommand {\beamer@subsectionentry {0}{2}{1}{3}{Quantum CIrcuit Diagram}}}
\@writefile{nav}{\headcommand {\slideentry {2}{1}{1}{3/3}{Quantum CIrcuit Diagram}{0}}}
\@writefile{nav}{\headcommand {\beamer@framepages {3}{3}}}
\@writefile{nav}{\headcommand {\slideentry {2}{1}{2}{4/4}{Quantum CIrcuit Diagram}{0}}}
\@writefile{nav}{\headcommand {\beamer@framepages {4}{4}}}
\@writefile{nav}{\headcommand {\slideentry {2}{1}{3}{5/5}{Quantum CIrcuit Diagram}{0}}}
\@writefile{nav}{\headcommand {\beamer@framepages {5}{5}}}
\@writefile{nav}{\headcommand {\slideentry {2}{1}{4}{6/6}{Quantum CIrcuit Diagram}{0}}}
\@writefile{nav}{\headcommand {\beamer@framepages {6}{6}}}
\@writefile{nav}{\headcommand {\slideentry {2}{1}{5}{7/7}{Quantum CIrcuit Diagram}{0}}}
\@writefile{nav}{\headcommand {\beamer@framepages {7}{7}}}
\@writefile{nav}{\headcommand {\beamer@partpages {1}{7}}}
\@writefile{nav}{\headcommand {\beamer@subsectionpages {3}{7}}}
\@writefile{nav}{\headcommand {\beamer@sectionpages {3}{7}}}
\@writefile{nav}{\headcommand {\beamer@documentpages {7}}}
\@writefile{nav}{\headcommand {\gdef \inserttotalframenumber {7}}}
\gdef \@abspage@last{7}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
\headcommand {\slideentry {0}{0}{1}{1/1}{}{0}}
\headcommand {\beamer@framepages {1}{1}}
\headcommand {\beamer@sectionpages {1}{1}}
\headcommand {\beamer@subsectionpages {1}{1}}
\headcommand {\sectionentry {1}{Outline}{2}{Outline}{0}}
\headcommand {\slideentry {1}{0}{1}{2/2}{}{0}}
\headcommand {\beamer@framepages {2}{2}}
\headcommand {\beamer@sectionpages {2}{2}}
\headcommand {\beamer@subsectionpages {2}{2}}
\headcommand {\sectionentry {2}{Introduction}{3}{Introduction}{0}}
\headcommand {\beamer@subsectionpages {3}{2}}
\headcommand {\beamer@subsectionentry {0}{2}{1}{3}{Quantum CIrcuit Diagram}}
\headcommand {\slideentry {2}{1}{1}{3/3}{Quantum CIrcuit Diagram}{0}}
\headcommand {\beamer@framepages {3}{3}}
\headcommand {\slideentry {2}{1}{2}{4/4}{Quantum CIrcuit Diagram}{0}}
\headcommand {\beamer@framepages {4}{4}}
\headcommand {\slideentry {2}{1}{3}{5/5}{Quantum CIrcuit Diagram}{0}}
\headcommand {\beamer@framepages {5}{5}}
\headcommand {\slideentry {2}{1}{4}{6/6}{Quantum CIrcuit Diagram}{0}}
\headcommand {\beamer@framepages {6}{6}}
\headcommand {\slideentry {2}{1}{5}{7/7}{Quantum CIrcuit Diagram}{0}}
\headcommand {\beamer@framepages {7}{7}}
\headcommand {\beamer@partpages {1}{7}}
\headcommand {\beamer@subsectionpages {3}{7}}
\headcommand {\beamer@sectionpages {3}{7}}
\headcommand {\beamer@documentpages {7}}
\headcommand {\gdef \inserttotalframenumber {7}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
\BOOKMARK [2][]{Outline0.1}{\376\377\000O\000u\000t\000l\000i\000n\000e}{}% 1
\BOOKMARK [2][]{Outline0.2}{\376\377\000I\000n\000t\000r\000o\000d\000u\000c\000t\000i\000o\000n}{}% 2
\BOOKMARK [3][]{Outline0.2.1.3}{\376\377\000Q\000u\000a\000n\000t\000u\000m\000\040\000C\000I\000r\000c\000u\000i\000t\000\040\000D\000i\000a\000g\000r\000a\000m}{Outline0.2}% 3
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
\documentclass{beamer}

% \usepackage{beamerthemesplit} // Activate for custom appearance
\usepackage{tikz}
\usetikzlibrary{quantikz}

\title{Quantum Circuits}
\author{Jacob Watkins}
\date{\today}

\begin{document}

\frame{\titlepage}

\section[Outline]{}
\frame{\tableofcontents}

\section{Introduction}
\subsection{Quantum CIrcuit Diagram}

\frame
{
\frametitle{Standard controlled gate}
\begin{center}
\begin{quantikz} [column sep=1cm]
\lstick{control}\qwbundle[alternate]{}&\ctrlbundle{1}&\qwbundle[alternate]{}\\
\lstick{target}\qwbundle[alternate=2]{}&\gate[nwires=1]{G}\qwbundle[alternate=2]{}& \qwbundle[alternate=2]{}
\end{quantikz}
\end{center}
}

\frame
{
\frametitle{Flipped diagonal gate}

\begin{center}
\begin{quantikz} [column sep=1cm,align equals at=1.5]
\qwbundle[alternate]{}&\ctrlbundle{1}&\qwbundle[alternate]{}\\
\qwbundle[alternate]{}&\gate[nwires=1]{D}\qwbundle[alternate]{}& \qwbundle[alternate]{}
\end{quantikz}
=
\begin{quantikz} [column sep=1cm,align equals at=1.5]
\qwbundle[alternate]{}&\gate{D'}\qwbundle[alternate]{}&\qwbundle[alternate]{}\\
\qwbundle[alternate]{}&\ctrlbundle{-1}\qwbundle[alternate]{}& \qwbundle[alternate]{}
\end{quantikz}
\end{center}
}

\frame
{
\frametitle{Flipped CZ}

\begin{center}
\begin{quantikz} [column sep=1cm,align equals at=1.5]
\qw&\ctrl{1}&\qw\\
\qw&\gate{Z}\qw& \qw
\end{quantikz}
=
\begin{quantikz} [column sep=1cm,align equals at=1.5]
\qw&\gate{Z}\qw&\qw\\
\qw&\ctrl{-1}\qw& \qw
\end{quantikz}
\end{center}
}

\frame
{
\frametitle{Symmetric CZ}

\begin{center}
\begin{quantikz} [column sep=.7cm, row sep = 1cm]
\qw&\ctrl{1}&\qw\\
\qw&\control{}&\qw
\end{quantikz}
\end{center}
}

\frame
{
\frametitle{General kickback}

\begin{center}
\begin{quantikz} [column sep=.6cm, align equals at=1.5]
\qwbundle[alternate]{}&\ctrlbundle{1}&\qwbundle[alternate]{}\\
\qwbundle[alternate]{}&\gate[nwires=1]{U}\qwbundle[alternate]{}& \qwbundle[alternate]{}
\end{quantikz}
\;\;\;=
\begin{quantikz} [column sep=.3cm,align equals at=1.5]
&\qwbundle[alternate]{}&\ctrlbundle{1}&\qwbundle[alternate]{}&\qwbundle[alternate]{}\\
\qwbundle[alternate]{}&\gate[nwires=3]{S^\dagger}\qwbundle[alternate]{}&\gate[nwires=3]{D}\qwbundle[alternate]{}& \gate[nwires=3]{S}\qwbundle[alternate]{}&\qwbundle[alternate]{}
\end{quantikz}
\;\;\;=
\begin{quantikz} [column sep=.3cm,align equals at=1.5]
&\qwbundle[alternate]{}&\gate[nwires=3]{D'}\qwbundle[alternate]{}&\qwbundle[alternate]{}&\qwbundle[alternate]{}\\
\qwbundle[alternate]{}&\gate[nwires=3]{S^\dagger}\qwbundle[alternate]{}&\ctrlbundle{-1}& \gate[nwires=3]{S}\qwbundle[alternate]{}&\qwbundle[alternate]{}
\end{quantikz}
\end{center}
}
\end{document}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
\beamer@sectionintoc {2}{Introduction}{3}{0}{1}
\beamer@subsectionintoc {2}{1}{Quantum CIrcuit Diagram}{3}{0}{1}
24 changes: 24 additions & 0 deletions notebooks/compendium/phase-kickback/images/cx-example-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions notebooks/compendium/phase-kickback/images/cx-identity.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading