Spin

# Spin

b = SpinBasis(3//2)
psi = spinup(b)
sx = sigmax(b)

Spin systems of arbitrary spin number can be modeled with the SpinBasis which is defined as:

type SpinBasis <: Basis
shape::Vector{Int}
spinnumber::Rational{Int}
end

## States

The lowest and uppermost states are defined:

## Operators

All expected operators are implemented, all of which require a single argument of the type SpinBasis.