You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
% \documentclass[preview]{standalone}% If the image is too large to fit on this documentclass use\documentclass[draft]{beamer}
% img_width = 2, img_depth = 4\usepackage[size=custom,height=10,width=12,scale=0.7]{beamerposter}
% instead and customize the height and width (in cm) to fit.% Large images may run out of memory quickly.% To fix this use the LuaLaTeX compiler, which dynamically% allocates memory.\usepackage[braket, qm]{qcircuit}
\usepackage{amsmath}
\pdfmapfile{+sansmathaccent.map}
% \usepackage[landscape]{geometry}% Comment out the above line if using the beamer documentclass.\begin{document}
\begin{equation*}
\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{equation*}
\end{document}
I'm aware that qcircuit and standalonedo not play well together. However, I still thing would it be possible to hack the way around while waiting for a solution in that front. For example (I did not test this solution extensibly), this code produces this image (which is correctly cropped):
Hi @1ucian0! Don't you think that #2015 should be fixed/discussed beforehand? Adding to the arguments discussed there, I never had any problem using standalone with quantikz.
@tnemoz#2015 seems stalled to me and, even if the outcome of that discussion is to change to quantikz in the future, I don't see that happening any time soon. So, in that context and for the sake of avoiding blockers, I think moving forward here is easier.
@1ucian0 In that case, would you mind if I were to work in this direction (that is, switching from qcircuit to quantikz)? Or do you prefer to wait for this issue to be closed?
The output of
QuantumCircuit.draw('latex_source')
notstandalone
, creating a full page. This creates an effect of a lot of spacing around it (like in here https://quantumcomputing.stackexchange.com/questions/17573/saving-vectorized-circuits-in-qiskit ). Additionally, many of the output code is not necessary and might look intimidating:Currently, this is the output:
It would be great if could look more like this:
I'm aware that
qcircuit
andstandalone
do not play well together. However, I still thing would it be possible to hack the way around while waiting for a solution in that front. For example (I did not test this solution extensibly), this code produces this image (which is correctly cropped):The text was updated successfully, but these errors were encountered: