Chapter 6 - Spin
A few new operators (or new names for the same ones!) The three axes, x, y, z spin components can be measured with , , and devices.
We’ll use for numerical results, this is fairly standard practice, but can be tricky to remember.
from numpy import sin,cos,pi,sqrt
from qutip import *pz = Qobj([[1],[0]])
mz = Qobj([[0],[1]])
px = Qobj([[1/sqrt(2)],[1/sqrt(2)]])
mx = Qobj([[1/sqrt(2)],[-1/sqrt(2)]])
py = Qobj([[1/sqrt(2)],[1j/sqrt(2)]])
my = Qobj([[1/sqrt(2)],[-1j/sqrt(2)]])
Sx = 1/2.0*sigmax()
Sy = 1/2.0*sigmay()
Sz = 1/2.0*sigmaz()pyExample: determine ¶
abs(px.dag() * my) ** 2Example: verify the commutation relation: ¶
Sx*Sz - Sz*Sx == -1j*Sy # remember, h = 1Ex: find for the state .¶
pz.dag()*Sx*pzThis makes sense given that can be either or with equal probability. Similarly, if the state is .
px.dag()*Sx*pxAgain, in units of .