from qutip import *import numpy as npfrom math import *b = Bloch()xp = [np.cos(th) for th in np.linspace(0, 2*pi, 20)]yp = [sin(th) for th in np.linspace(0, 2*pi, 20)]zp = np.zeros(20)pnts = [xp, yp, zp]b.add_points(pnts,'m') # <-- add a 'm' string to signify 'multi' colored pointsb.show()
QuTiP Version: 3.1.0Numpy Version: 1.11.1Scipy Version: 0.18.0Cython Version: 0.23.4Matplotlib Version: 1.5.1Fortran mcsolver: Falsescikits.umfpack: FalsePython Version: 2.7.12Platform Info: Windows (AMD64)Installation path: C:\Anaconda2\lib\site-packages\qutip
--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Bloch data: ----------- Number of points: 2 Number of vectors: 0 Bloch sphere properties: ------------------------ font_color: black font_size: 20 frame_alpha: 0.2 frame_color: gray frame_width: 1 point_color: ['b', 'r', 'g', '#CC6600'] point_marker: ['o', 's', 'd', '^'] point_size: [25, 32, 35, 45] sphere_alpha: 0.2 sphere_color: #FFDDDD figsize: [5, 5] vector_color: ['g', '#CC6600', 'b', 'r'] vector_width: 3 vector_style: -|> vector_mutation: 20 view: [-60, 30] xlabel: ['$x$', ''] xlpos: [1.2, -1.2] ylabel: ['$y$', ''] ylpos: [1.2, -1.2] zlabel: ['$\\left|0\\right>$', '$\\left|1\\right>$'] zlpos: [1.2, -1.2]
April 1, 2017 at 21:02
--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
March 21, 2017 at 21:44
I get the exact same plot as the documentation.
--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
September 30, 2016 at 12:22
I want to change color of symbols in Bloch sphere.There are official examples to do this thing as bellow link, but they don't work.Concretely, I wrote bellow code as same as the examples.
from qutip import *import numpy as np
from math import *b = Bloch()
xp = [np.cos(th) for th in np.linspace(0, 2*pi, 20)]
yp = [sin(th) for th in np.linspace(0, 2*pi, 20)]
zp = np.zeros(20)pnts = [xp, yp, zp]
b.add_points(pnts,'m') # <-- add a 'm' string to signify 'multi' colored pointsb.show()
Usually, 'm' option in b.add_points(pnts,'m') works for multi color option, but it doesn't work with no error message.I also tried "b.add_points(pnts, meth='m')".Furthermore, I added points one by one by the command "b.add_points( )".Usually, added points are shown in different color automatically as described in the examples.But it also doesn't work with no error message.However I can change color of vectors automatically as same as the examples.How should I do?I use qutip in follow conditions.QuTiP Version: 3.1.0Numpy Version: 1.11.1Scipy Version: 0.18.0Cython Version: 0.23.4Matplotlib Version: 1.5.1Fortran mcsolver: Falsescikits.umfpack: FalsePython Version: 2.7.12Platform Info: Windows (AMD64)Installation path: C:\Anaconda2\lib\site-packages\qutip
--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
March 21, 2017 at 21:44
I get the exact same plot as the documentation.--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
March 21, 2017 at 21:44
I get the exact same plot as the documentation.--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "QuTiP: Quantum Toolbox in Python" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qutip+un...@googlegroups.com.
QuTiP: Quantum Toolbox in Python Copyright (c) 2011 and later. A. J. Pitchford, P. D. Nation, R. J. Johansson, A. Grimsmo, and C. Granade QuTiP Version: 4.2.0 Numpy Version: 1.13.3 Scipy Version: 1.0.0 Cython Version: 0.27.3 Matplotlib Version: 2.2.0 Python Version: 3.6.4 Number of CPUs: 4 BLAS Info: INTEL MKL OPENMP Installed: False INTEL MKL Ext: True Platform Info: Windows (AMD64)