Lab 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]]) # +z
mz = Qobj([[0],[1]]) # -z
px = Qobj([[1/sqrt(2)],[1/sqrt(2)]]) # +x
mx = Qobj([[1/sqrt(2)],[-1/sqrt(2)]]) # -x
py = Qobj([[1/sqrt(2)],[1j/sqrt(2)]]) # +y
my = Qobj([[1/sqrt(2)],[-1j/sqrt(2)]]) # -y
Sx = 1/2.0*sigmax()
Sy = 1/2.0*sigmay()
Sz = 1/2.0*sigmaz()Example: determine ¶
expect(px*px.dag(),my)Example: verify the commutation relation: ¶
Sx*Sz - Sz*Sx == -1j*Sy # remember, h = 1Ex: find for the state .¶
pz.dag()*Sx*pzexpect(Sx,pz)This makes sense given that can be either or with equal probability. Similarly, if the state is .
px.dag()*Sx*pxexpect(Sx,px)Again, in units of .
Lab instructions:¶
Calculate the expectation value for the states
Calculate the expectation value for the state . Interpret this result, does it make sense? Is there a simpler way to write this state?
Represent the spin-squared operator as a matrix.
Verify that commutes with each spin component:
Find the expectation value of for the three postive spins: . Interpret your results. Do the values differ? Should they?
Problem 6.9, 6.11, 6.12 from Chapter 6