Observable on a qubit
Any observable on a Qubit can be written as
A^=a0σ0+aσ1,2,3
You can think of a0σ0 as the scalar value and
aσ1,2,3 as it helps with the Bloch Sphere.
This can be written in spherical units too
n^=(nx,ny,nz)=(sinθcosψ,sinθsinψ,cosθ)
spin along n^ can be described as S^=2ℏσ.
This is known as the "spin along the unit vector n^".
To do this we project S^ onto n^.
S^n=S^⋅n^=2ℏσ⋅n^=2ℏ(nxσx+nyσy+nzσz)=nx(0110)+ny(0i−i0)+nz(100−1)
=(nznx+inynx−iny−nz)
⇒S^n^=2ℏ(nznx+inynx−iny−nz).
We work out the eigenvalues by doing
det(S^n^−λI)=0
⇒(2ℏnz−λ)(−2ℏnz−λ)−(2ℏ)2(nx−iny)(nx+iny)=0
⇒λ2−(2ℏ)2(nx2+ny2+nz2)=0
λ2=(2ℏ)2∣n^∣2⇒λ=±2ℏ∣n^∣
Because n^ is a unit vector,
λ=±2ℏ