The original bloch equation simulator was a Matlab mex file created by Brian Hargreaves at Stanford University. This modification to run it as a Python C extension