circuit_to_latex_using_qcircuit produces a diagram with bad margins #1487
Labels
area/latex
area/qcircuit
kind/bug-report
Something doesn't seem to work.
triage/accepted
A consensus emerged that this bug report, feature request, or other action should be worked on
I'm not actually sure whether this is a Cirq problem or a qcircuit problem or a jupyter notebook problem. I'm trying to plot a graphical representation of a Cirq circuit in a jupyter notebook using
circuit_to_latex_using_qcircuit
. However, the produced output has effectively negative margins, so that parts of the image are outside the borders (and thus are not displayed).Different circuits can have different parts cut off, but for a simple circuit the input and output labels are not visible. This is true whether the output is pdf or png.
Here is a repro case (if you take out the work-around of
border=25pt
which forces it to work for the particular example):https://gitlab.com/qosf/qml-mooc/merge_requests/14/diffs#9fb6ab7d0ea5d69d872cb08c4ff1e68861b7c397_173_193
The text was updated successfully, but these errors were encountered: