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

Easy way to add parts of quantum circuits #178

Open
jvdwetering opened this issue Nov 10, 2023 · 1 comment
Open

Easy way to add parts of quantum circuits #178

jvdwetering opened this issue Nov 10, 2023 · 1 comment
Labels
Edit Mode Issues and enhancements related to Edit mode enhancement New feature or request

Comments

@jvdwetering
Copy link
Collaborator

I think we should have an easy way to import a quantum circuit into ZXLive. For instance, right now if I want to make a cnot I have to laboriously add a z node, an x node, and then connect them, and also connect them to neighbours. Some possible suggestions for what we can do to make it easier:

  • Have a text window where you can type some simple qasm-like code to add it to your diagram. Maybe something like, press ctrl+Q, and you get a pop up. You then type CNOT 1 2; CNOT 2 3; and press enter and it adds the appropriate ZX diagram to your current working diagram.
  • In addition to the generators you can add in the side bar, have a collection of 'widgets' or 'patterns' that you can drag and drop onto your working window.
  • Something that might also help: right now if I want to add an identity spider I would have to disconnect two spiders, add an identity in the middle, and then reconnect this identity to both original spiders. In proof mode we can use magic wand to do the work for us, so maybe we could also allow that in Edit mode. Alternatively we could have a 'snap to edge' option where if you are adding generators, it automatically replaces the connectivity if you place it on top or very close to an existing edge.
@jvdwetering jvdwetering added enhancement New feature or request Edit Mode Issues and enhancements related to Edit mode labels Nov 10, 2023
@RazinShaikh
Copy link
Collaborator

There is now qasm circuit input text window but it would more useful to have the widgets/patterns in the sidebar. A user can have a folder called 'widgets' and zxlive can automatically load a list of graphs from there in the sidebar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Edit Mode Issues and enhancements related to Edit mode enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants