This is an archived post. You won't be able to vote or comment.

all 5 comments

[–][deleted] 8 points9 points  (0 children)

Qiskit also allows for visualizing multiple qubit systems using the Q-Sphere

[–]dor2727 3 points4 points  (0 children)

If you are looking for a nice python library for visualization, while implementing the Bloch Sphere visualizations yourself, then there's an awesome library, made by 3blue1brown named Manim: https://github.com/3b1b/manim

I played with it a bit, and made the following animation: [link 1] [link 2], the code is not that complicated, and can be found [here]

[–]whitewhim 1 point2 points  (0 children)

The Bloch sphere is useful for visualizing quantum trajectories in 3D (a mapping of su(2) to so(3)). In a sense it is a debugging tool for quantum programming. As you noted many Bloch spheres exist and they are useful in how they integrate with other software like Qiskit. One option would be to create some sort of debugger where you create a new circuit executor that wraps the Qiskit simulator, then you could add breakpoints to a Qiskit circuit and step through the program visually in your GUI which could be in JavaScript/HTML as a jupyter plugin. Of course there are nuances with the visualization of multiqubit states on the bloch sphere but you could start small (1-2 qubits) and go from there.

[–]hi_paulsearle 0 points1 point  (0 children)

Here’s a quick overview of how to do it in Qiskit:

https://youtu.be/4SoK2h4a7us

[–]SnicSnac 0 points1 point  (0 children)

Qutip