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

Feature Request: Hide First Wire Option in \multigate #51

Open
Qmsla1 opened this issue Jan 29, 2024 · 1 comment
Open

Feature Request: Hide First Wire Option in \multigate #51

Qmsla1 opened this issue Jan 29, 2024 · 1 comment

Comments

@Qmsla1
Copy link

Qmsla1 commented Jan 29, 2024

Description:
I would like to propose a new feature for the qcircuit LaTeX package that would enhance the circuit diagram visualization. Inspired by the "ngost logic" feature, I suggest adding an option to hide the first wire in the \multigate command(\nmultigate?), similar to \ngost. This feature would improve the clarity of circuit diagrams, particularly when dealing with intricate circuits.

Use Case:
I often work with complex quantum circuits using qcircuit, and hiding the first wire in \multigate would significantly improve the overall readability of the diagrams.

Problem and Solution:
In complex circuits, the initial wire connection in \multigate can clutter the diagram and make it harder to interpret. Adding an option, similar to \nmultigate, to hide the first wire in \multigate would allow users to create cleaner and more concise circuit diagrams.

Title Suggestions:

  • Add Hide First Wire Option to \multigate
  • Enhance \multigate: Hide Initial Wire for Cleaner Diagrams
  • Request for \multigate Feature: Hide First Wire

Thank you for considering this feature request!

@Qmsla1
Copy link
Author

Qmsla1 commented Jan 29, 2024

implementation:
\newcommand{\nmultigate}[2]{*+<1em,.9em>{\hphantom{#2}} \POS [0,0]="i",[0,0].[#1,0]="e",!C *{#2},"e"+UR;"e"+UL **\dir{-};"e"+DL **\dir{-};"e"+DR **\dir{-};"e"+UR **\dir{-},"i" }
% Draws a multiple qubit gate starting at the current position and spanning #1 additional gates below. % #2 gives the label for the gate. % You must use an argument of the same width as #2 in \ghost for the wires to connect properly on the lower lines.

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