summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-05-24 22:24:25 +0000
committerKarl Berry <karl@freefriends.org>2023-05-24 22:24:25 +0000
commitc120c202572ae8fa00fd883567ae1b5a8b4d4c14 (patch)
treee67a7ae5c88e83e93f6577916a017f4d0197ac1f /Master/texmf-dist/doc/latex
parent0f91fd5ec72378010d640a614bf5e9f68e174995 (diff)
quantikz (25may23)
git-svn-id: svn://tug.org/texlive/trunk@67206 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex')
-rw-r--r--Master/texmf-dist/doc/latex/quantikz/README.md4
-rw-r--r--Master/texmf-dist/doc/latex/quantikz/quantikz.pdfbin676349 -> 680113 bytes
-rw-r--r--Master/texmf-dist/doc/latex/quantikz/quantikz.tex17
3 files changed, 18 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/quantikz/README.md b/Master/texmf-dist/doc/latex/quantikz/README.md
index bd869cdbebd..5210c711450 100644
--- a/Master/texmf-dist/doc/latex/quantikz/README.md
+++ b/Master/texmf-dist/doc/latex/quantikz/README.md
@@ -4,4 +4,6 @@ The package is quantikz, written by Alastair Kay. Its purpose is to extend tikz
It is covered by a CC-BY 4.0 license.
-Please see the manual for detailed usage. \ No newline at end of file
+Please see the manual for detailed usage.
+
+Two versions are provided: quantikz (v. 0.9.8) as for legacy purposes, and quantikz2, the current release. \ No newline at end of file
diff --git a/Master/texmf-dist/doc/latex/quantikz/quantikz.pdf b/Master/texmf-dist/doc/latex/quantikz/quantikz.pdf
index c7ffea7fb30..b3ad72f4a2f 100644
--- a/Master/texmf-dist/doc/latex/quantikz/quantikz.pdf
+++ b/Master/texmf-dist/doc/latex/quantikz/quantikz.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/quantikz/quantikz.tex b/Master/texmf-dist/doc/latex/quantikz/quantikz.tex
index 6f2a7710f88..7f6b5ee15a8 100644
--- a/Master/texmf-dist/doc/latex/quantikz/quantikz.tex
+++ b/Master/texmf-dist/doc/latex/quantikz/quantikz.tex
@@ -336,7 +336,7 @@ You can also slice every step by using option \verb!slice all!, and the labels w
If you need to adjust where the last slice is, use the optional parameter \verb!remove end slices!, which counts the number of columns fewer to add slices to. You can also change the title of each of the slices, by setting \verb!slice titles!. Include the macro \verb!\col! in your specification if you want to use the step number. Note, however, that the columns won't automatically space themselves out to accommodate a very wide label. You can style the slicing lines with the \verb!slice style! key, and the labels with \verb!slice label style!. These can be used to rotate the labels and create a bit more space!
\begin{Code}
\begin{quantikz}[slice all,remove end slices=1,slice titles=slice \col,slice style=blue,slice label style={inner sep=1pt,anchor=south west,rotate=40}]
-& \gate{H} & \ctrl{1} & \meter{} && \\
+& \gate{H} & \ctrl{1} & \meter{} &\setwiretype{n}& \\
& & \targ{} & \ctrl{1} & \gate{H} & \\
& & & \targ{} & &
\end{quantikz}
@@ -465,6 +465,19 @@ Places a quantum wire that occupies that same space as a single-qubit gate with
\end{quantikz}
\end{Code}
+\item [\textbackslash ghost{[w][h]}\{l\}]
+Creates an invisible quantum gate that has the same height as \verb!\gate[][w][h]{l}!. Just like any other gate command, this should come before any other commands in a cell, and cannot be in the same cell as another gate command.
+\begin{Code}
+\begin{quantikz}
+%give the wires the same vertical space as if they had H gates on them
+&&\ghost{H} \\
+&& \ghost{H}
+\end{quantikz}=\begin{quantikz}
+ & \gate{H} & \\
+ & \gate{H} &
+\end{quantikz}
+\end{Code}
+
\item [\textbackslash phase{[s]}\{l\}]
Creates a phase gate (black circle) with label \texttt{l}. The optional parameter \texttt{s} controls the styling via the parameters
@@ -696,7 +709,7 @@ Draw a wave along an entire row. \texttt{s} is standard tikz formatting commands
Present the text in label \texttt{l} as vertically stacked. Can be helpful for slices.
\item [\textbackslash ket\{l\}, \textbackslash bra\{l\}, \textbackslash proj\{l\}, \textbackslash braket\{l\}\{m\}]
-Typeset Dirac notation $\ket{l}$, $\bra{l}$, $\proj{l}$ and $\braket{l}{m}$ respectively. These commands do not require math mode, and the braces will automatically resize to the argument. They are defined to behave well with other packages (e.g.\ physics) that may define the same commands. If you wish to ensure that you are using the version that this package defines, run \textbackslash forceredefine at the end of your preamble (after all packages have loaded). You may also need to be careful of the order in which you load those packages.
+Typeset Dirac notation $\ket{l}$, $\bra{l}$, $\proj{l}$ and $\braket{l}{m}$ respectively. These commands do not require math mode, and the braces will automatically resize to the argument. They are defined to behave well with other packages (e.g.\ physics) that may define the same commands. You may need to be careful of the order in which you load those packages: load quantikz \emph{after} the other package --- if quantikz sees that those commands are already defined, it does not redefine them. If you wish to ensure that you are using the version that this package defines, run \textbackslash forceredefine at the end of your preamble (after all packages have loaded).
% % \item [\textbackslash alias\{n\}]
% % Used in an otherwise empty cell, that gives the current row a name \texttt{n}. This is useful for referring to it for the purposes of vertical positioning.