6 subroutine sqasu2(sqaxis,tsqaz,su2)
9 real(8),
intent(in) :: sqaxis(3)
10 logical,
intent(out) :: tsqaz
11 complex(8),
intent(out) :: su2(2,2)
13 real(8) v1(3),v2(3),v3(3),th,t1
15 t1=sqrt(v1(1)**2+v1(2)**2+v1(3)**2)
18 write(*,
'("Error(sqasu2): spin-quantisation axis (sqaxis) has zero length")')
23 if (abs(v1(3)-1.d0) < 1.d-8)
then 26 su2(1,1)=1.d0; su2(1,2)=0.d0
27 su2(2,1)=0.d0; su2(2,2)=1.d0
subroutine sqasu2(sqaxis, tsqaz, su2)
pure subroutine axangsu2(v, th, su2)
pure subroutine r3cross(x, y, z)