summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/yquant/tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-12-25 03:01:07 +0000
committerNorbert Preining <norbert@preining.info>2022-12-25 03:01:07 +0000
commit90ef58ebc56f69220f860d466e1e21ed68ce9a55 (patch)
tree1b6ae8a0cb89728c9f71447236a171da28b786a1 /graphics/pgf/contrib/yquant/tex
parentda0bd16b0ba9d42d044af47137003788f0b7f773 (diff)
CTAN sync 202212250301
Diffstat (limited to 'graphics/pgf/contrib/yquant/tex')
-rw-r--r--graphics/pgf/contrib/yquant/tex/yquant-config.tex2
-rw-r--r--graphics/pgf/contrib/yquant/tex/yquant-lang.tex11
-rw-r--r--graphics/pgf/contrib/yquant/tex/yquant-shapes.tex20
-rw-r--r--graphics/pgf/contrib/yquant/tex/yquant.sty2
4 files changed, 34 insertions, 1 deletions
diff --git a/graphics/pgf/contrib/yquant/tex/yquant-config.tex b/graphics/pgf/contrib/yquant/tex/yquant-config.tex
index 6da9a4be66..4d7f9630bd 100644
--- a/graphics/pgf/contrib/yquant/tex/yquant-config.tex
+++ b/graphics/pgf/contrib/yquant/tex/yquant-config.tex
@@ -385,6 +385,8 @@
yquant@config@operator@subcircuit@manglingreset,
operators/every swap/.style=%
{shape=yquant-swap, radius=.75mm, draw},%
+ operators/every iswap/.style=%
+ {shape=yquant-ocross, radius=.75mm, draw},%
operators/every wave/.style=%
{shape=yquant-circle, radius=.5mm, fill},%
% every x is implicitly defined during gate declaration
diff --git a/graphics/pgf/contrib/yquant/tex/yquant-lang.tex b/graphics/pgf/contrib/yquant/tex/yquant-lang.tex
index 1b462d2d85..3463bc0e5a 100644
--- a/graphics/pgf/contrib/yquant/tex/yquant-lang.tex
+++ b/graphics/pgf/contrib/yquant/tex/yquant-lang.tex
@@ -499,6 +499,17 @@
}
\yquant@langhelper@setup@attrs{swap}{}{}
+% iswap
+\yquant@langhelper@declare@command%
+ {iswap}%
+ \yquant@register@get@multiassingle
+ {%
+ \yquant@prepare%
+ {}%
+ {/yquant/operators/every iswap}%
+ }
+\yquant@langhelper@setup@attrs{iswap}{}{}
+
% not
\yquant@langhelper@declare@command%
{not}%
diff --git a/graphics/pgf/contrib/yquant/tex/yquant-shapes.tex b/graphics/pgf/contrib/yquant/tex/yquant-shapes.tex
index e4cc01e63f..3e010938c3 100644
--- a/graphics/pgf/contrib/yquant/tex/yquant-shapes.tex
+++ b/graphics/pgf/contrib/yquant/tex/yquant-shapes.tex
@@ -388,6 +388,26 @@
\inheritclippath[from=yquant-circle]%
}
+\pgfdeclareshape{yquant-ocross}{%
+ \inheritsavedanchors[from=yquant-slash]%
+ \foreach \anc in {center, north, north east, east, south east, south, south west, west, north west} {%
+ \inheritanchor[from=yquant-circle]{\anc}%
+ }%
+ \inheritanchorborder[from=yquant-circle]%
+ \backgroundpath{%
+ \dimen2=.70710678\dimexpr\xradius\relax%
+ \dimen4=.70710678\dimexpr\yradius\relax
+ \pgfpathmoveto{\pgfqpoint{\dimen2}{\dimen4}}%
+ \pgfpathlineto{\pgfqpoint{-\dimen2}{-\dimen4}}%
+ \pgfpathmoveto{\pgfqpoint{-\dimen2}{\dimen4}}%
+ \pgfpathlineto{\pgfqpoint{\dimen2}{-\dimen4}}%
+ \pgfpathellipse{\pgfpointorigin}%
+ {\pgfqpoint{\xradius}{0pt}}%
+ {\pgfqpoint{0pt}{\yradius}}%
+ }%
+ \inheritclippath[from=yquant-circle]%
+}
+
\pgfdeclareshape{yquant-measure}{%
\saveddimen\xradius{%
\pgfmathsetlength\pgf@x{\pgfkeysvalueof{/tikz/x radius}}%
diff --git a/graphics/pgf/contrib/yquant/tex/yquant.sty b/graphics/pgf/contrib/yquant/tex/yquant.sty
index 2acb5d33b5..f62faf64be 100644
--- a/graphics/pgf/contrib/yquant/tex/yquant.sty
+++ b/graphics/pgf/contrib/yquant/tex/yquant.sty
@@ -15,7 +15,7 @@
%
% The Current Maintainer of this work is Benjamin Desef.
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{yquant}[2022/05/07 v0.7.1 Yet another quantum circuit library for LaTeX]
+\ProvidesPackage{yquant}[2022/12/24 v0.7.2 Yet another quantum circuit library for LaTeX]
\RequirePackage{etoolbox}[2018/02/11]
\RequirePackage{tikz}[2015/08/29]