Pauli.m

From Spinach Documentation Wiki
Jump to: navigation, search

Pauli matrices for a spin of user-specified multiplicity. Syntax:

                         sigma=pauli(mult)

Where mult is an integer specifying the multiplicity and the following fields are returned in the output:

   sigma.u - unit operator
   sigma.p - raising operator
   sigma.m - lowering operator
   sigma.x - Pauli sigma_x matrix
   sigma.y - Pauli sigma_y matrix
   sigma.z - Pauli sigma_z matrix

The matrices are normalized so as to fulfil the following commutation relations:

      [sigma.x,sigma.y]=1i*pauli.z
      [sigma.y,sigma.z]=1i*pauli.x
      [sigma.z,sigma.x]=1i*pauli.y

with the raising and lowering operators defined as:

       sigma.p=sigma.x+1i*sigma.y
       sigma.m=sigma.x-1i*sigma.y