Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qcircuit does not play nicely with standalone #41

Open
1ucian0 opened this issue May 20, 2021 · 0 comments
Open

qcircuit does not play nicely with standalone #41

1ucian0 opened this issue May 20, 2021 · 0 comments

Comments

@1ucian0
Copy link

1ucian0 commented May 20, 2021

The issue seems related with https://sourceforge.net/p/standalone/tickets/1/

The following latex produced a cropped PDF:

\documentclass{standalone}

\usepackage[braket, qm]{qcircuit}

\begin{document}
    \Qcircuit @C=1.0em @R=0.2em @!R {
                \lstick{ {q}_{0} :  } & \gate{\mathrm{H}} & \ctrl{1} & \qw & \qw\\
                \lstick{ {q}_{1} :  } & \qw & \targ & \qw & \qw\\
         }
\end{document}

Screenshot 2021-05-20 at 13 38 43

Notice that the $q_0$ and $q_1$ are fully cropped out. It seems a like a problem with bounding box setting. The data is there (see with \documentclass[border=20px]{standalone})

Screenshot 2021-05-20 at 13 58 28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant