qn_states function

Get the quantum coherence matrix for a spin system.