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: state equation display #467

Open
bvandergiessen opened this issue Dec 11, 2020 · 2 comments
Open

Feature request: state equation display #467

bvandergiessen opened this issue Dec 11, 2020 · 2 comments

Comments

@bvandergiessen
Copy link

bvandergiessen commented Dec 11, 2020

Thanks for this brilliant tool.

A display for the quantum state of the selected qubits, e.g. 0.57735|001⟩ + 0.57735i|010⟩ - 0.57735|100⟩, would be helpful for those who, like me, feel it gives an immediate overview of the state in a formal description known from Physics. There could be a resizable Display item, perhaps showing this state on mouse-over (its label could simply be |ψ⟩).

Obviously the information is all available from the Amps display, but the user has to collect it by mousing over the parts. An overview in one formula allows for immediate insight into relative phases etc.

@Strilanc
Copy link
Owner

This is quite a funny suggestion to me, because the amplitude display is an "immediate overview of the state". It sounds more like you want a very detailed dive into the state.

It would be possible to make a display that showed the largest few components of the superposition as text, but it's unfortunately not something that I plan to do. It's difficult to put into words what the issue is; it just feels not in the spirit of the tool to me. Avoiding excessive numbers in the output was part of the original design intent, because they can't be read at a glance and because I'd already seen the issues with them in tools like https://wybiral.github.io/quantum/ .

@bvandergiessen
Copy link
Author

Understood. I thought about why the Amps graphic doesn't feel like an immediate overview to me, and I think it is because which square refers to which state's amplitude is not intuitive.

If the two-state amp graphic had three vertical layers, with |00⟩ at the top, |01⟩ and |10⟩ in the middle and |11⟩ at the bottom, it would be more intuitive. The vertical position would then have a physical meaning (the z-spin or something), so you'd recognise states by their position. But that might screw up the layout, particularly with more qubits (e.g. with 3 qubits you'd have 4 layers: |000⟩; |001⟩ |010⟩ |100⟩; |011⟩ |101⟩ |110⟩; and |111⟩).

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