Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
1 answer
797 views

How to implement subplots (several blochsphere plots) using qiskit?

Qiskit seems to use matplotlib for rendering bloch spheres under the hood. Therefore, it would be nice if we could also make use of matplotlib's subplot technique. I would like to implement subplots, ...
Eldar Sultanow's user avatar
2 votes
1 answer
329 views

How to implement SU(2) rotation with qiskit?

Before I start, I would like to say sorry for this possibly stupid question of mine. I just recently got into the topic of quantum computing and try me there. I'm currently trying to display a SU(2) ...
Fation's user avatar
  • 50
2 votes
1 answer
939 views

When using Qiskit's plot_bloch_vector function, how can I set colors for vectors?

I am able to visualize vectors on a bloch sphere using Qiskit as follows: ...
Eldar Sultanow's user avatar
2 votes
1 answer
98 views

Efficient Representation of Qubits on a Digital Simulator

I was wondering about quantum simulators recently, and I was thinking about how a qubit could be represented on a digital machine. This Stack Overflow post seems to say that one will need at least $a2^...
William Ryman's user avatar
5 votes
2 answers
1k views

Bloch Sphere of Qiskit logo

Trying to plot the Bloch Sphere of the IBM Qiskit logo ...
Van Peer's user avatar
  • 577
1 vote
1 answer
90 views

How the arguments of $U_3$ gate are converted when they're not lying in the expected range?

From the qiskit documentation (here), a general form of a single qubit unitary is $$ U(\theta, \phi, \lambda) = \begin{pmatrix} \cos\left(\frac{\theta}{2}\right) & -e^{i\lambda} \sin\left(\frac{\...
ZR-'s user avatar
  • 2,408
2 votes
0 answers
79 views

Why there're two axis of rotation when I'm trying to visualize this time-evolution?

This is a follow-up question of the problem I posted earlier. The following diagram illustrates my question: I'm trying to perform the time evolution of a random Hamiltonian. The green vector ...
ZR-'s user avatar
  • 2,408
3 votes
1 answer
271 views

Can I plot a bigger Bloch sphere using kaleidoscope?

I'm plotting a vector on the Bloch sphere using kaleidoscope: from kaleidoscope import bloch_sphere Is there a way I can make the plot bigger? (Instead of zooming ...
ZR-'s user avatar
  • 2,408
6 votes
1 answer
759 views

Can I simultaneously plot 2 vectors on a single Bloch sphere and rotate the angle of visualization?

I'm trying to plot 2 vectors on the same Bloch sphere. From the qiskit documentation here, we can find ...
ZR-'s user avatar
  • 2,408
1 vote
1 answer
1k views

how to plot probability histogram and/or bloch sphere of single qubit in multi-qubit quantum circuit in Qiskit?

How can I get statevector and/or blochsphere representation of qubits of my choice. For example I have 3 qubits with different gates being applied on each qubit. the qiskit state_vector simulator ...
Muhammad Kashif's user avatar
2 votes
1 answer
63 views

Numerical optimization of QRAC

I need to optimize a general version of 3$\rightarrow$1 QRAC where Bob is asked to retrieve one of the XOR combinations of the bits( If ABC is the given string to Alice, then Bob would be asked to ...
Vaisakh M's user avatar
4 votes
1 answer
218 views

What is the corresponding code for finding the state of a qubit on the Bloch sphere?

To find the state of a qubit on the Bloch sphere we use the following formula: \begin{equation} |\psi\rangle=\mathrm{cos}\frac{\theta}{2}|0\rangle+\mathrm{e}^{i\phi}\mathrm{sin}\frac{\theta}{2}|1\...
Coder's user avatar
  • 293
3 votes
0 answers
93 views

How to add states on the Bloch sphere from a master equation?

Can you please help me to find an answer to this question: I am using qutip for the study of quantum systems. suppose I have calculated the solution of the master equation using the ...
Jack's user avatar
  • 71
4 votes
1 answer
983 views

Plotting Bloch sphere in QuTiP

Is there anyone who reproduced the Bloch sphere given in the paper QuTiP: An open-source Python framework for the dynamics of open quantum systems by J. R. Johansson, P. D. Nation, Franco Nori? I am ...
Jack's user avatar
  • 71
6 votes
1 answer
796 views

Drawing tangent vectors to the Bloch sphere with qutip

I need to plot drawings of qubit dynamics on the Bloch sphere. I know QuTip allows to do such drawings but I specifically need to represent evolution velocities on the Bloch sphere so I need to draw ...
MrRobot's user avatar
  • 253
5 votes
1 answer
345 views

Flying qubits compared with stationary qubits

In a previous question I asked how stationary bits could be processed by logic gates. I casually mentioned that I could visualize qubits traversing stationary logic gates, and @DaftWullie said “It ...
John Fistere's user avatar
7 votes
2 answers
1k views

From Q# measurements to Bloch sphere

I would like to represent the state of a qubit on a Bloch sphere from the measurements made with Q#. According the documentation, it is possible to measure a qubit in the different Pauli bases (...
JRial95's user avatar
  • 93