Abstract operators become concrete once we fix a basis. In the
{∣ℓ,m⟩} basis, the angular-momentum operators are finite matrices of size
(2ℓ+1)×(2ℓ+1). Writing them out makes the algebra tangible and connects directly to the
gates of a quantum computer.
L_z is always diagonal
We label states by L^z, so L^z is automatically diagonal with the eigenvalues
ℏm on the diagonal. For spin-21 (basis m=+21,−21),
Lz=2ℏ(100−1)=2ℏσz.
For spin-1 (basis m=+1,0,−1),
Lz=ℏ10000000−1.
Off-diagonal pieces from the ladder operators
The components L^x and L^y are not diagonal; we build them from the ladder operators
whose matrix elements we already know,
⟨ℓ,m′∣L^±∣ℓ,m⟩=ℏℓ(ℓ+1)−m(m±1)δm′,m±1.
For spin-1, L^+ has the two entries 2ℏ above the diagonal:
L+=ℏ2000100010,L−=L+†.
Then L^x=21(L^++L^−) and L^y=2i1(L^+−L^−) give the explicit 3×3 matrices.
Spin-1/2 and the Pauli matrices
For spin-21 the construction reproduces the Pauli matrices exactly,
Lx=2ℏσx,Ly=2ℏσy,Lz=2ℏσz.
A useful check
One can verify the matrices satisfy Lx2+Ly2+Lz2=ℏ2ℓ(ℓ+1)1. For
spin-1 this gives 2ℏ2 times the 3×3 identity — a quick way to confirm you assembled the
matrices correctly.
Try it
Construct the spin-1 raising operator L+ as a 3×3 matrix in the basis ordered
m=+1,0,−1, and return the matrix element ⟨0∣L+∣−1⟩ (with ℏ=1). It
should equal 2.
Run your code to see the quantum state.
Sign in on the full site to ask questions and join the discussion.