![在 xymatrix 环境中插入 qcircuit](https://linux22.com/image/348649/%E5%9C%A8%20xymatrix%20%E7%8E%AF%E5%A2%83%E4%B8%AD%E6%8F%92%E5%85%A5%20qcircuit.png)
答案1
我认为你不能嵌套\Qcircuit
。\xymatrix
不过你可以使用盒子。
\documentclass{article}
\usepackage{amsmath}
\usepackage[all,cmtip]{xy}
\usepackage{qcircuit}
\newsavebox{\cicabox}
\begin{document}
\[
\sbox\cicabox{%
\Qcircuit @C=1em @R=.7em {
& \multimeasureD{1}{\text{Bell}} &\\
& \ghost{\text{Bell}}
}%
}
\xymatrix@C+=3cm@R=0pt{
A \ar@{~)}@<1ex>[r] &
B
\ar@{=>}@<1ex>[l]
\\
&\rlap{\hspace{-1em}\usebox{\cicabox}}
}
\]
\end{document}