texlive[48400] Master/texmf-dist: qcircuit (15aug18)

commits+karl at tug.org commits+karl at tug.org
Wed Aug 15 00:00:19 CEST 2018


Revision: 48400
          http://tug.org/svn/texlive?view=revision&revision=48400
Author:   karl
Date:     2018-08-15 00:00:19 +0200 (Wed, 15 Aug 2018)
Log Message:
-----------
qcircuit (15aug18)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/qcircuit/README.md
    trunk/Master/texmf-dist/doc/latex/qcircuit/qcircuit.pdf
    trunk/Master/texmf-dist/tex/latex/qcircuit/qcircuit.sty

Modified: trunk/Master/texmf-dist/doc/latex/qcircuit/README.md
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/qcircuit/qcircuit.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/tex/latex/qcircuit/qcircuit.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/qcircuit/qcircuit.sty	2018-08-14 00:18:06 UTC (rev 48399)
+++ trunk/Master/texmf-dist/tex/latex/qcircuit/qcircuit.sty	2018-08-14 22:00:19 UTC (rev 48400)
@@ -1,4 +1,4 @@
-%    qcircuit version 2.5.3
+%    qcircuit version 2.6.0
 %    Contributors: Steve Flammia, Bryan Eastin, Travis Scholten
 %    This program is free software; you can redistribute it and/or modify
 %    it under the terms of the GNU General Public License as published by
@@ -19,7 +19,7 @@
 % Thanks also to Dave Clader, Andrew Childs, Rafael Possignolo, Tyson Williams,
 % Sergio Boixo, Cris Moore, Jonas Anderson, and Stephan Mertens for helping us test 
 % and/or develop the new version.
-\ProvidesPackage{qcircuit}[2016/12/29]
+\ProvidesPackage{qcircuit}[2018/08/14]
 \RequirePackage{xy}
 
 \DeclareOption{braket}{
@@ -76,6 +76,13 @@
 \newcommand{\cds}[2]{*+<1em,.9em>{\hphantom{#2}} \POS [0,0].[#1,0]="e",!C *{#2};"e"+ R \qw}
     % Allows the insertion of text without a box and exands circuit around this text.
     % This is useful for such things as ... to indicate a generalized circuit.
+\newcommand{\barrier}[2][-0.95em]{\ar @{--}[#2,1]+<#1, -1em>;[0,1]+<#1, 1em>}
+    % Defines a barrier that is represented by a horizontal dashed line.
+    % It takes a a single argument to specify how many bits to cover
+    % To center the barrier between gates you can adjust the horizontal offset
+    % with an optional second parameter. This is the horizontal offset in em.
+    % It defaults to -0.95em
+    % WARNING: Be sure to place the barrier on the topmost bit it covers, it only propogates downwards
 \newcommand{\gate}[1]{*+<.6em>{#1} \POS ="i","i"+UR;"i"+UL **\dir{-};"i"+DL **\dir{-};"i"+DR **\dir{-};"i"+UR **\dir{-},"i" \qw}
     % Boxes the argument, making a gate.
 \newcommand{\sgate}[2]{\gate{#1}  \qwx[#2]}
@@ -137,6 +144,10 @@
 \newcommand{\ghost}[1]{*+<1em,.9em>{\hphantom{#1}} \qw}
     % Leaves space for \multigate on wires other than the one on which \multigate appears.  Without this command wires will cross your gate.
     % #1 should match the second argument in the corresponding \multigate.
+\newcommand{\cghost}[1]{*+<1em,.9em>{\hphantom{#1}} \cw}
+    % Same as ghost but with a classical incoming wire.
+\newcommand{\nghost}[1]{*+<1em,.9em>{\hphantom{#1}}}
+    % Same as ghost but with no incoming wire.
 \newcommand{\push}[1]{*{#1}}
     % Inserts #1, overriding the default that causes entries to have zero size.  This command takes the place of a gate.
     % Like a gate, it must precede any wire commands.
@@ -171,4 +182,4 @@
 \newcommand{\pureghost}[1]{*+<1em,.9em>{\hphantom{#1}}}
     % Same as \ghost except it omits the wire leading to the left. 
 
-\endinput
\ No newline at end of file
+\endinput



More information about the tex-live-commits mailing list