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

Bugfix: use layout when placing tikz operations for nq gates #754

Conversation

braised-babbage
Copy link
Contributor

This fixes an issue with placing of non-controlled nq (n > 1) gates in the circuit rendering algorithm. The basic problem was that something like "FOO p q r" would have the Tikz operator \gate[wires=3]{FOO} placed on the qubit line for p, even if that line happened to be below the lines for either q or r in the diagram. This is not valid as far as quantikz is concerned. Now we should have the operator placed on whatever qubit line happens to be first, with respect to our layout. Note that this happened to sneak under the radar because the only n > 1 qubit gates I had tested with happened to have special handling (e.g. CNOT).

@stylewarning stylewarning merged commit 66e7130 into quil-lang:master Oct 25, 2021
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

Successfully merging this pull request may close these issues.

2 participants