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

Consider adding plotly functionalities #1276

Open
nathanshammah opened this issue May 26, 2020 · 7 comments
Open

Consider adding plotly functionalities #1276

nathanshammah opened this issue May 26, 2020 · 7 comments
Labels
code code-related, independently on the underlying physics simulation. ENH good first issue help wanted Help from anyone most welcome Q&A

Comments

@nathanshammah
Copy link
Member

nathanshammah commented May 26, 2020

Would the use of plotly to make the 3d plots better looking and reactive? I'm no expert but it seems very nice especially for 3D visualization in the browser that got integration with Jupyter notebooks (Another app that natively runs in the browser is Bokeh, but that may be more oriented toward data science visualization, while plotly seems more general). It also seems that plotly surpassed mayavi in recent times, with more users, features and more actively developed. This could be relevant for notebooks especially when on My Binder, etc.

@nathanshammah nathanshammah added ENH Q&A help wanted Help from anyone most welcome code code-related, independently on the underlying physics simulation. labels May 26, 2020
@araza6
Copy link
Member

araza6 commented Jun 10, 2020

I haven't tried, but Plotly seems nice. On top of Plotly's interactive features, it would be cool to have users hold and grad the qubit state across the Bloch sphere. Plotly's dragmode(https://plotly.com/python/reference/#layout-dragmode) might come in handy here

@nathanshammah
Copy link
Member Author

@araza6, this looks interesting.

Do you want to take ownership of this issue and be assigned to it, for completion over the Summer?

It is not high priority (that's the project), but it merges well with autodiff visualizations. I am happy to chip in and contribute too.
This could be structured as follows:

  • Begin with qgrad features only, not specifically on this repository.
  • Then we could look into what existing notebooks could be improved by these functionalities, also updating qutip-notebooks.
  • see if majavi can be replaced by plotly and if it makes sense, and affect also qutip/qutip.

@araza6
Copy link
Member

araza6 commented Jun 11, 2020

Sure, I can.

For autodiff visualizations, however, can you think of something that we can do better with plotly?

@BoxiLi BoxiLi assigned BoxiLi and unassigned BoxiLi Jun 11, 2020
@nonhermitian
Copy link
Member

Note that I have been working on some stuff, e.g. here https://nonhermitian.github.io/kaleidoscope/tutorials/interactive/bloch_sphere.html

Currently requires Qiskit, but for the interactive plots this is not true. I just haven't had time to redo the requirements and travis builds yet.

@nathanshammah
Copy link
Member Author

@0kd very cool!

@jwalaQ
Copy link

jwalaQ commented Jun 14, 2021

I'd like to contribute here! How may I get started?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code code-related, independently on the underlying physics simulation. ENH good first issue help wanted Help from anyone most welcome Q&A
Projects
None yet
Development

No branches or pull requests

6 participants