Qiskit / qiskit

Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and primitives.
https://www.ibm.com/quantum/qiskit
Apache License 2.0
5.05k stars 2.33k forks source link

qiskit/visualization/bloch.py needs testing #2304

Open 1ucian0 opened 5 years ago

1ucian0 commented 5 years ago

The code in qiskit/visualization/bloch.py needs testing. Current coverage is:

file statements missing coverage
qiskit/visualization/bloch.py 275 275 0%

(This is a follow up from https://github.com/Qiskit/qiskit-terra/issues/300#issuecomment-489324685)

1ucian0 commented 5 years ago

Still true: https://coveralls.io/builds/24960860/source?filename=qiskit/visualization/bloch.py

1ucian0 commented 5 years ago

on hold until #2968 is decided.

1ucian0 commented 4 years ago

Removing on hold. The testing should be on binder, like in https://github.com/Qiskit/qiskit-terra/pull/4544

mlarocca commented 4 years ago

@1ucian0 do you think I could help with this one?

1ucian0 commented 3 years ago

Yes! Probably following the same style than in https://github.com/Qiskit/qiskit-terra/pull/4544

mlarocca commented 3 years ago

Sounds good, thanks! I'll give it a try

javabster commented 3 years ago

Hi @mlarocca are you still working on this? There are more details here about how to run snapshot tests for visualisations. And you can check coverage for a specific file by running coverage3 report -m <filepath> in your terminal. Let us know if you have any questions 😄

timsinashok commented 3 years ago

I am new to the world of quantum computing and open source. I have good familiarity with python. I would love to work on this issue.

javabster commented 3 years ago

Hi @a-freakish as @mlarocca hasn't replied I will re-assign this to you, let us know if you have any questions 😄

mlarocca commented 3 years ago

Hello @javabster, sorry for the late reply! I hadn't had a chance to make a lot of progress on this back in September, and then for some reason we forgot about this (I think in favor of other tasks). It was an interesting one and I'd have loved to pick it up again, but at the same time I'm swamped right now and for a few more weeks, so I also meant to say that if @a-freakish has the time to tackle this right now, it makes sense I step aside.

If later or at any point you need help, please feel free to let me know!

Thanks!

javabster commented 3 years ago

Thanks for the update @mlarocca! 😃

mrvee-qC commented 2 years ago

Update for Santa:elf:- QGoGP

✅ bloch.py still lacks its own dedicated testing and has no-one assigned to it - Issue exists

As I understand, the functions of bloch.py are directly used in plot_bloch_vector,plot_bloch_multivector,plot_state_qsphere and visualize_transition including any functions that depend on any of these 4 functions

plot_state_qsphere and plot_bloch_multivector are tested in test/ipynb/mpl/graph/test_graph_matplotlib_drawer.py

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

Python version 3.9.7 qiskit-terra version: 0.19.1

1ucian0 commented 2 years ago

According with coverall, the file is 49% covered. Still some testing is needed, but much better than the original situation.

1ucian0 commented 2 years ago

did you have any chance to have a look @a-freakish ?

1ucian0 commented 2 years ago

unassigning to return the isssue to the pool of bugs for new comers.

orangekame3 commented 1 year ago

@1ucian0 Hi, if nobody has been assigned to this task, I'm interested in it.

1ucian0 commented 1 year ago

Assigned @orangekame3! Thanks!

orangekame3 commented 1 year ago

record the current coverage for reference. (before starting)

tox -ecoverage && .tox/coverage/bin/coverage3 html

Name Stmts Miss Cover
qiskit/visualization/bloch.py 286 145 49%
sjbokhari commented 11 months ago

@1ucian0 Hi is there still help needed with this one? :) I would really like to contribute.

orangekame3 commented 11 months ago

I haven't made any progress on this, so if it's okay, I'd like to pass it on to @sjbokhari .

1ucian0 commented 11 months ago

reassigning. Thanks both!

aabennak commented 8 months ago

I would like to contribute on this issue if no progress has been done.

sjbokhari commented 8 months ago

@aabennak I am currently working on it, but if you want to you can take over :)

aabennak commented 8 months ago

@sjbokhari Thank you so much for your kind reply :) but I can't do that if you're currently still working on it. Good luck!

edit: I understand that the learning curve is a thing, so me butting in would destroy that time that you have invested in understanding the code.

1ucian0 commented 4 months ago

any news @sjbokhari ?

sjbokhari commented 1 month ago

Hey @1ucian0 I am still on it I will give an update asap :) Thank you for your patience