0

Sorry I am not very familiar with this.

I am using quantikz package to draw quantum circuits. There is an otherwise undocumented feature

\begin{tikzcd}
& \makeebit[-60][blue]{test} & \qw & \qw \\
& & \qw & \qw
\end{tikzcd}

I would like to modify the command so that it can connect not the two consecutive lines but let's say line 1 and 3 with something in between.

I tried to look into the sourcecode:

\DeclareDocumentCommand{\makeebit}{O{-45}O{}m}{
    \arrow[arrows,line cap=round,to path={(\tikztostart) -- ($(\tikztostart)!{0.5/cos(#1)}!#1:(\tikztotarget)$) node [anchor=east,style={#2}]{#3} -- (\tikztotarget) }]{d}
}

However, I am not sure how it works with nodes. Can someone please give me an advice or direct me?

Best wishes

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.