Closed kimkyngt closed 3 years ago
@karolpezet could you look into this?
Hi kimkyngt!
The definition of the coherent state in the package is: coherentspinstate(b::SpinBasis, θ::Real, ϕ::Real)
. The parametrization follows the standard parametrization of a sphere. This is ψ = coherentspinstate(SpinBasis(8//2), π/2, 0)
is an eigenstate of the collective spin operator in the x direction. The su(2) Wigner function is constructed in such a way that the x axis points out of the display (the additional pi shift). You may want to look at the example with the quantum kicked top https://docs.qojulia.org/examples/quantum-kicked-top/
HTH ^_^
Hi karolpezet!
I see. It is for the display. I find Dowling, et. al. also use \phi \in [-\pi, \pi). I can fix the the axis label just like the kicked-top example.
Thanks!
It seems like there is a pi phase shift on azimuthal coordinates in the function wignersu2(). I guess it is from
-pi
on the second argument of the following line. https://github.com/qojulia/QuantumOptics.jl/blob/bc7cd56b94b72904bceec9458ede618c4fb0f666/src/phasespace.jl#L468Also try
In the heatmap, I think, the Wigner function should not be at the center since \phi starts from 0. Or is it shifted for some purpose?
btw, thanks for the nice package. I've been practicing some basics of quantum optics, and the package helps a lot.