Module for NMR spin system simulation