Source Code for Analytical Exact Gradients for Single Spin Optimizations (Julia)

Exact Gradient calculation using Cartesian Controls (x,y,z) with 3D rotation matrices Source Code Results

Exact Gradient calculation using Polar Controls (ampl,phase,z) with 3D rotation matrices Source Code Results

Exact Gradient calculation using Cartesian Controls (x,y,z) with Quaternions Source Code Results

Exact Gradient calculation using Polar Controls (ampl,phase,z) with Quaternions Source Code Results

Necessary Julia Function to be saved in same directory: basis.jl