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

UI customization #470

Open
amirebrahimi opened this issue Dec 19, 2020 · 4 comments
Open

UI customization #470

amirebrahimi opened this issue Dec 19, 2020 · 4 comments

Comments

@amirebrahimi
Copy link

Hi @Strilanc. A few of us are working on a Quirk-related project as part of QOSF and we're needing to allow for some customization with regards to the UI. Specifically, it is being able to turn off/on whole Toolboxes (e.g. Toolbox_2), individual columns in the toolbox (e.g. Spinning), and displays on individual wires. Before embarking on this work I'd like to know two things:

  1. Are you open to the contribution?
  2. Can we agree on the approach (I can lay out further details in comments) prior to starting? Ideally, I'll want to match how you might do this yourself.

I'd much prefer working on this with the intention of contributing rather than maintaining a separate fork.

@Strilanc
Copy link
Owner

  1. Are you open to the contribution?

Yes, although I'll note that the toolboxes are one of the things I'm more sensitive about changing.

  1. [..] I'll want to match how you might do this yourself.

The toolbox entries are specified in AllGates.js

Gates.BottomToolboxGroups = [

Turning entries on and off would require some sort of menu, and also code changes to deal with things like the toolbox image being cached to avoid redrawing costs.

@amirebrahimi
Copy link
Author

Coming back to this now that we're wrapping up our QOSF projects for cohort 2. I'll likely start on this soon. If I determined that it isn't needed any more by our project, then I'll close out this issue.

The main project is a circuit and pulse dashboard that I'll post URLs for since Quirk is used for the circuit dashboard, but I'm still in the process of preparing those repos. For now, I'll post this auxiliary project that is standalone for anyone who wants to use Quirk in Jupyter with a little more control than the standard HTML widget: https://github.com/adgt/pyQuirk

@Strilanc
Copy link
Owner

That's pretty neat to use it as a UI element in a notebook.

@amirebrahimi
Copy link
Author

Here's the full project: https://github.com/adgt/qonduit

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

2 participants