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

Plot_city_state central plane not drawn behind all positive columns #3315

Closed
dime10 opened this issue Oct 24, 2019 · 2 comments · Fixed by #10590
Closed

Plot_city_state central plane not drawn behind all positive columns #3315

dime10 opened this issue Oct 24, 2019 · 2 comments · Fixed by #10590
Assignees
Labels
bug Something isn't working priority: low

Comments

@dime10
Copy link
Contributor

dime10 commented Oct 24, 2019

Information

  • Qiskit Terra version: 0.10.0
  • Python version: 3.7.4
  • Operating system: Windows 10

What is the current behavior?

As seen in this image, the plane at z=0 is drawn in front of some of the positive columns. Surprisingly most, but not all, of the columns are drawn this way.
66311970-fe324780-e90f-11e9-8c39-cf8aaff16559
Other examples:
image

Steps to reproduce the problem

Plot a state vector with positive amplitudes.

What is the expected behavior?

Positive columns (z>0) should be drawn in front of the plane, negative columns behind it (this second part seems to work already).

Suggested solutions

Don't know what is causing this.

@mrvee-qC
Copy link

Update for Santa - QGoGP

✅ Issue still reproducible as per original author. Any plot with positive and negative columns should reproduce the issue. Example code to reproduce first image:

from qiskit.tools.visualization import plot_state_city
plot_state_city([0.5+0.5j , 0.5 +0.5j ,0.5 +0.5j ,-0.5-0.5j],
     title="Ghosts from qiskit past")

Screenshot_83

Not sure if the right section but it seems to completely mess up for different states! (State vectors are on top of the ss)

Anomaly 1 - Statevector [0.191 + 0.462j , 0.191 + 0.462.j , -0.191 + 0.462j , -0.191 + 0.462j]

Screenshot_82

Anomaly 2 - Statevector [0.354 + 0.354j , 0.5 + 0.j , 0.354 + 0.354j , 0.5 + 0.j]

Screenshot_81

Will update comment/add more comments if cause is found/fixed.

Python version 3.9.7
qiskit-terra version: 0.19.1

@AlexanderGroeger
Copy link
Contributor

I'm already working on the other mentioned issue. I could easily tack this on to my work changes. Would someone please assign this task to me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority: low
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants