question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Alternate example for plot_bloch_multivector

See original GitHub issue

Environment

  • Qiskit Terra version: 0.19.1

What is happening?

The example for the plot_bloch_multivector doc looks broken - https://qiskit.org/documentation/stubs/qiskit.visualization.plot_bloch_multivector.html#qiskit.visualization.plot_bloch_multivector

The example is trying to visualize a bell state and the entanglement isn’t clearly visualizable with bloch sphere and hence there are 2 blank bloch spheres that may not depict the idea of the function clearly!

Screenshot from 2021-12-16 15-38-27

How can we reproduce the issue?

The issue can be checked out here! https://qiskit.org/documentation/stubs/qiskit.visualization.plot_bloch_multivector.html#qiskit.visualization.plot_bloch_multivector

LIne in docs - https://github.com/Qiskit/qiskit-terra/blob/4301fc47c73507e489dbafc7bae490ab29736daa/qiskit/visualization/state_visualization.py#L263-L277

What should happen?

An example that clearly depicts a use case for the plot_bloch_multivector for people checking out the documentation

Any suggestions?

Since the examples are uniform across all the sections of https://qiskit.org/documentation/apidoc/visualization.html#counts-and-state-visualizations, contributor may have to take into consideration that if at all this example is to be modified, the subsection docs plot_histogram , plot_state_city, plot_state_hinton, plot_state_paulivec and plot_state_qsphere may have to be similarly accommodated since currently all seem to be using the same example across to depict the visualisation ideas uniformly in their respective sections.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MaxMinerva123commented, Jan 4, 2022

Oh I see. I’m really new to Qiskit and Quantum Computing in general but yeah I didn’t know swapping the operands of cx doesn’t create an entangled state Thanks!

1reaction
jakelishmancommented, Dec 20, 2021

Sure, I’ll assign this one to you so people know you’re working on it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

qiskit.visualization.plot_bloch_multivector
Plot a Bloch sphere for each qubit. ... Examples. from qiskit import QuantumCircuit from qiskit.quantum_info import Statevector from qiskit.visualization ...
Read more >
Qiskit: Bloch Multi Vector Tutorial - Deep Learning University
Bloch Multi Vector is useful for visualizing the state of all the Qubits of a ... example, we will plot the following statevector...
Read more >
quantumcat: Docs, Tutorials, Reviews
quantumcat documentation, tutorials, reviews, alternatives, versions, dependencies ... Execute on All providers in one go circuit.compare_results(plot=True) ...
Read more >
(PDF) Bloch sphere model for two-qubit pure states
examples of Bloch coordinates of the maximally ... We plot the Bloch sphere trajectory of two-qubit gates.
Read more >
The Ultimate Guide to a Quantum Computing Certification with ...
For example, if your quantum circuit has two qubits (q0, q1) with the first qubit ... As an alternative, we can also plot...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found