Closed till-m closed 2 years ago
You write nobit {} q2;
, but as the error message says, the nobit
initializer does not allow for a value parameter (nobit
does not really draw anything, so you cannot put a text at the "position where nothing is drawn"). Just remove it and the error should go away (nobit q2;
).
By the way, I always recommend using the latest version, which currently is 0.5 (and I'm working on 0.6 currently).
Thank you, that was easier than expected and makes a lot of sense. What was tripping me up was the the compiler noted that the error occurred on a different line.
Yes, this is indeed an issue. I'll have to look into whether there is any way at all to make TeX error messages more helpful, but I don't have too much hope. Somehow, I'd have to capture the file and line before TeX gives control to yquant (while still also giving the original information, as everything might also be due to a bug). I don't know whether this is possible (perhaps there are some 2e commands), but I'll look into it.
Thanks for the package @projekter, I really like it. I also realize that this error is most likely due to a mistake on my part and not a bug in the package.
Describe the bug I am trying to draw a circuit for Grover's algorithm. To that end, I would like the gates in the Grover operator to be encapsulated in a box such that I can let the reader know that the subcircuit needs to be repeated several times.
To Reproduce
Log:
Package yquant.sty Error: Placeholder initialization must not have value. } (-);
Expected output The circuit that yquant renders is in fact the circuit I want to produce. Essentially I would just like to get rid of the error which I assume comes from the
nobit
in the middle of the circuit.Screenshots![image](https://user-images.githubusercontent.com/36440677/147453055-4bbad506-c341-4988-9fc6-af7fecdd285d.png)
Environment Compiled using PdfLaTeX with yquant 0.4 and tikz v3.1.8b.