This script performs a representative Liouville von Neumann simulation by propagation of the density matrix. The quantum mechanical system used for simulation consists of three spins: electrons (A,B) and a nucleus (C). Only one of the electrons is coupled to the nucleus (A-C) with a hyperfine coupling specified by `hfc`. The system is also subject to an external magnetic fields specified by `B0`. The calculation runs for the time points specified by `T`.
The code is intended to be used to learn about the basics of spin chemistry, not as a tool for simulation. It is heavily commented, and to use it you should go though it line-by-line to understand what it does.
Marcin Konowalczyk (2021). Liouville-von-Neumann-Matlab (https://github.com/MarcinKonowalczyk/Liouville-von-Neumann-Matlab), GitHub. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!