A quaternion is an object built from pauli spin matrices:
q=a_4+i*Sum(i=1,3,sigma_i*a_i)
for a_i in R and sigma_i=the ith pauli spin matrix.