Difference between revisions of "Pauli.m"
(→Notes) |
|||
| Line 32: | Line 32: | ||
[sigma.z,sigma.x]=1i*sigma.y | [sigma.z,sigma.x]=1i*sigma.y | ||
| − | # raising and lowering operators are defined as: | + | #: raising and lowering operators are defined as: |
sigma.p=sigma.x+1i*sigma.y | sigma.p=sigma.x+1i*sigma.y | ||
Revision as of 14:49, 14 October 2018
Pauli matrices (sparse) for a spin of a user-specified multiplicity.
Syntax
sigma=pauli(mult)
Arguments
mult - an integer specifying the
multiplicity of the spin
Outputs
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
Notes
- The matrices are normalized so as to obey the following commutation relations:
[sigma.x,sigma.y]=1i*sigma.z
[sigma.y,sigma.z]=1i*sigma.x
[sigma.z,sigma.x]=1i*sigma.y
- raising and lowering operators are defined as:
sigma.p=sigma.x+1i*sigma.y
sigma.m=sigma.x-1i*sigma.y
See also
stevens.m, irr_sph_ten.m, wigner.m, operator.m, state.m, hamiltonian.m
Version 2.3, authors: Ilya Kuprov