-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from qutech/feature/update_examples_for_paper
Update examples for paper
- Loading branch information
Showing
13 changed files
with
39,465 additions
and
19,323 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.aux | ||
*.log | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
\documentclass[varwidth=false, border=10pt]{standalone} | ||
% compile with pdflatex -interaction batchmode .\qft.tex | ||
% convert with magick convert -density 300 .\qft.pdf .\qft.png | ||
\usepackage{qcircuit} | ||
\usepackage{physics} | ||
|
||
\begin{document} | ||
|
||
\Qcircuit @C=1em @R=1em { | ||
\lstick{3} & \qw & \qw & \qw & \qw & \qw & \ctrl{1} & \qswap & \qw & \qw & \qw & \qw & \qw & \qw & \qw & \qw & \qw & \qwa & \rstick{0} \\ | ||
\lstick{2} & \qw & \qw & \qw & \ctrl{1} & \qswap & \gate{R_4} & \qswap\qwx & \qw & \qw & \qw & \ctrl{1} & \qswap & \qw & \qw & \qw & \qw & \qwa & \rstick{1} \\ | ||
\lstick{1} & \qw & \ctrl{1} & \qswap & \gate{R_3} & \qswap\qwx & \qw & \qw & \qw & \ctrl{1} & \qswap & \gate{R_3} & \qswap\qwx & \qw & \ctrl{1} & \qswap & \qw & \qwa & \rstick{2} \\ | ||
\lstick{0} & \gate{H} & \gate{R_2} & \qswap\qwx & \qw & \qw & \qw & \qw & \gate{H} & \gate{R_2} & \qswap\qwx & \qw & \qw & \gate{H} & \gate{R_2} & \qswap\qwx & \gate{H} & \qwa & \rstick{3} | ||
} | ||
|
||
\end{document} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
\documentclass[varwidth=false, border=10pt]{standalone} | ||
% compile with pdflatex -interaction batchmode .\qft_HR2R3_boxed.tex | ||
% convert with magick convert -density 300 .\qft_HR2R3_boxed.pdf .\qft_HR2R3_boxed.png | ||
\usepackage{qcircuit} | ||
\usepackage{physics} | ||
|
||
\begin{document} | ||
|
||
\Qcircuit @C=1em @R=1em { | ||
\lstick{3} & \qw & \qw & \qw & \qw & \qw & \ctrl{1} & \qswap & \qw & \qw & \qw & \qw & \qw & \qw & \qw & \qw & \qw & \qwa & \rstick{0} \\ | ||
\lstick{2} & \qw & \qw & \qw & \ctrl{1} & \qswap & \gate{R_4} & \qswap\qwx & \qw & \qw & \qw & \ctrl{1} & \qswap & \qw & \qw & \qw & \qw & \qwa & \rstick{1} \\ | ||
\lstick{1} & \qw & \ctrl{1} & \qswap & \gate{R_3} & \qswap\qwx & \qw & \qw & \qw & \ctrl{1} & \qswap & \gate{R_3} & \qswap\qwx & \qw & \ctrl{1} & \qswap & \qw & \qwa & \rstick{2} \\ | ||
\lstick{0} & \gate{H} & \gate{R_2} & \qswap\qwx & \qw & \qw & \qw & \qw & \gate{H} & \gate{R_2} & \qswap\qwx & \qw & \qw & \gate{H} & \gate{R_2} & \qswap\qwx & \gate{H} & \qwa & \rstick{3} | ||
\gategroup{3}{2}{4}{4}{1em}{--} | ||
\gategroup{2}{5}{3}{6}{1em}{--} | ||
\gategroup{3}{9}{4}{11}{1em}{--} | ||
\gategroup{2}{12}{3}{13}{1em}{--} | ||
\gategroup{3}{14}{4}{16}{1em}{--} | ||
} | ||
|
||
\end{document} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
\documentclass[varwidth=false, border=10pt]{standalone} | ||
% compile with pdflatex -interaction batchmode .\qft_HR2R3_boxed_separately.tex | ||
% convert with magick convert -density 300 .\qft_HR2R3_boxed_separately.pdf .\qft_HR2R3_boxed_separately.png | ||
\usepackage{qcircuit} | ||
\usepackage{physics} | ||
|
||
\begin{document} | ||
|
||
\Qcircuit @C=1em @R=1em { | ||
\lstick{3} & \qw & \qw & \qw & \qw & \qw & \ctrl{1} & \qswap & \qw & \qw & \qw & \qw & \qw & \qw & \qw & \qw & \qw & \qwa & \rstick{0} \\ | ||
\lstick{2} & \qw & \qw & \qw & \ctrl{1} & \qswap & \gate{R_4} & \qswap\qwx & \qw & \qw & \qw & \ctrl{1} & \qswap & \qw & \qw & \qw & \qw & \qwa & \rstick{1} \\ | ||
\lstick{1} & \qw & \ctrl{1} & \qswap & \gate{R_3} & \qswap\qwx & \qw & \qw & \qw & \ctrl{1} & \qswap & \gate{R_3} & \qswap\qwx & \qw & \ctrl{1} & \qswap & \qw & \qwa & \rstick{2} \\ | ||
\lstick{0} & \gate{H} & \gate{R_2} & \qswap\qwx & \qw & \qw & \qw & \qw & \gate{H} & \gate{R_2} & \qswap\qwx & \qw & \qw & \gate{H} & \gate{R_2} & \qswap\qwx & \gate{H} & \qwa & \rstick{3} | ||
\gategroup{2}{2}{4}{6}{1em}{--} | ||
\gategroup{2}{9}{4}{13}{1em}{--} | ||
} | ||
|
||
\end{document} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
\documentclass[varwidth=false, border=10pt]{standalone} | ||
% compile with pdflatex -interaction batchmode .\qft_with_echo.tex | ||
% convert with magick convert -density 300 .\qft_with_echo.pdf .\qft_with_echo.png | ||
\usepackage{qcircuit} | ||
|
||
\begin{document} | ||
|
||
\Qcircuit @C=1em @R=1em { | ||
\lstick{3} & \qw & \gate{X} & \qw & \gate{X} & \qw & \ctrl{1} & \qswap & \qw & \gate{X} & \qw & \gate{X} & \qw & \qw & \qw & \qw & \qw & \qwa & \rstick{0} \\ | ||
\lstick{2} & \qw & \qw & \qw & \ctrl{1} & \qswap & \gate{R_4} & \qswap\qwx & \qw & \qw & \qw & \ctrl{1} & \qswap & \qw & \qw & \qw & \qw & \qwa & \rstick{1} \\ | ||
\lstick{1} & \qw & \ctrl{1} & \qswap & \gate{R_3} & \qswap\qwx & \qw & \qw & \qw & \ctrl{1} & \qswap & \gate{R_3} & \qswap\qwx & \qw & \ctrl{1} & \qswap & \qw & \qwa & \rstick{2} \\ | ||
\lstick{0} & \gate{H} & \gate{R_2} & \qswap\qwx & \qw & \qw & \qw & \qw & \gate{H} & \gate{R_2} & \qswap\qwx & \qw & \qw & \gate{H} & \gate{R_2} & \qswap\qwx & \gate{H} & \qwa & \rstick{3} | ||
\gategroup{1}{3}{1}{3}{1em}{--} | ||
\gategroup{1}{5}{1}{5}{1em}{--} | ||
\gategroup{1}{10}{1}{10}{1em}{--} | ||
\gategroup{1}{12}{1}{12}{1em}{--} | ||
} | ||
|
||
\end{document} |
14,500 changes: 591 additions & 13,909 deletions
14,500
doc/source/examples/calculating_quantum_processes.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
43,273 changes: 37,915 additions & 5,358 deletions
43,273
doc/source/examples/quantum_fourier_transform.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters