spheres.visualization.majorana_sphere.SphericalWavefunction¶
-
class
spheres.visualization.majorana_sphere.
SphericalWavefunction
(spin, pos=<0, 0, 0>, radius=1, wavefunction_type='coherent', wavefunction_samples=15)[source]¶ Bases:
object
Container for a 3D representation of a spin coherent wavefunction.
-
__init__
(spin, pos=<0, 0, 0>, radius=1, wavefunction_type='coherent', wavefunction_samples=15)[source]¶ - Parameters
spin (qt.Qobj) – Spin-j state.
pos (vp.vector) – Position.
radius (float) – Radius.
wavefunction_type (str) – “coherent” or “majorana”. The former evaluates the amplitude on a spin coherent state at sample points on the sphere. The latter evaluates the normalized Majorana function. The two should be antipodal to each other.
wavefunction_samples (int) – Number of sample points.
Methods
__init__
(spin[, pos, radius, …])- param spin
Spin-j state.
create_wavefunction
()refresh_wavefunction
([update_position, …])-