-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
test plot_state_hinton #3090
Comments
|
Hi @1ucian0! I would like to start contributing to Qiskit and this looks like a good first issue to begin with. I read the contributions guidelines for testing visualization and I'm able to run the notebook test/ipynb/mpl_tester.ipynb in Binder. All the shown tests run successfuly, in particular I see the following result for tests about the Graph Matplotlib Drawer. def test_plot_state_hinton(self):
"""test plot_state_hinton"""
circuit = QuantumCircuit(1)
circuit.x(0)
# getting the state using backend
backend = BasicAer.get_backend("statevector_simulator")
result = execute(circuit, backend).result()
state = result.get_statevector(circuit)
self.graph_state_drawer(state=state, output="hinton", filename="hinton.png") but it does not appear in the notebook result as you can see in the image above. The same happens for all the tests which rely on the |
Hi @1ucian0 I'm looking to tackle adding these tests in the MPL drawer, from what I see plot_state_hinton is already being tested and I can see it in the binder. |
Thanks everyone for the heads up! Indeed, this is already checked by snapshot testing. The next step is to add the snapshot tests as part of the CI/coverage, in the #6427 direction. |
We dont have a test for
plot_state_hinton
inqiskit/visualization/state_visualization.py
The text was updated successfully, but these errors were encountered: