Spin polarization graph

Topics related to Spinach package
Post Reply
Posts: 12
Joined: Tue May 24, 2022 6:32 am

Spin polarization graph

Post by NMR-trainee »


I have yet another question. How can I produce spin polarization graphs with spinach? The end result should be a graph with spin polarization/hbar on y-axis and time/s on x-axis. My spin system is attached as a picture.

Also, if there are examples that produce spin polarization graphs I would appreciate a hint of where they are in the examples directory.

Thanks again!
Spin system
Spin system
Interactions.PNG (60.33 KiB) Viewed 423 times
Posts: 123
Joined: Mon Mar 29, 2021 4:26 pm

Re: Spin polarization graph

Post by kuprov »

Call create() and basis() to set things up, then request a Hamiltonian by calling assume() and hamiltonian(), then get your initial condition from state() or equilibrium() calls, then choose a time step and calculate the propagator by calling propagator(), then apply that propagator to the initial condition and project onto some state of interest. What you call spin polarisation corresponds to the Lz operator.

A reasonable intro is here:

Post Reply