Math
The hamiltonian we are using for the NMR systems is of the form
where are the gyromagnetic factors and the chemical shifts of nuclear spin , and denotes the coupling between spins and , and , with being the usual spin operators.
Within NMR we have a strong magnetic field in the -direction, and electromagnetic pulses / oscillating fields are applied to flip the spins into the plane. Since is typically of the order of 500Mhz, the pulses of 10kHz bandwidth, and the required resolution is sub 1Hz, we refrain from modelling the explicit time dependence of the pulses. Instead we model the pulses directly by calculating the spectral function, i.e., time-dependent correlations between the corresponding operators.
The spectrum measured in an NMR experiment corresponds to the spectral function calculated in the HQS NMR Tool.
Calculation of the spectral function
We calculate the spectral function as the imaginary part of the spin-spin correlation function
the operators, , contain the gyromagnetic factors for convenience, and is the real time dependence.
The contribution of an individual nuclear spin to the full NMR spectrum is obtained via
while the full NMR signal is the sum of individual contributions.
Temperature
For a typical NMR setup, the temperature is much larger compared to the energy scales in the NMR Hamiltonian. Thus, we have to take finite or even infinite temperature into account. We define the partition sum
with the inverse temperature and arrive at
Here, the last equation is a Lehmann-type spectral representation, which is suitable if the complete spectrum is known. are the eigenenergies of the spin NMR-Hamiltonian.
Resolvent formulation
In order to avoid having to determine the complete spectrum, we write the Green's function directly in operator form, introducing a convergence ensuring factor (broadening) and taking care of causality
The broadening is formally necessary to ensure the convergence of the Fourier integral. In practice, it corresponds to the unknown or neglected noise, whether intrinsic or due to the resolution limitations of the spectrometer.
Energy rediscretization
One problem that arises in the resolvent formulation is that the NMR peaks are usually very sharp. Discretizing the frequency axis with a very fine grid is computationally ineffective. Therefore, we perform several rounds of computing the spectral function. We start with a linear grid in frequency space and a rather large artificial broadening . Then we iteratively rediscretize the frequency space in equal weight partitions of the total spectral function while reducing in each step until we reach the desired broadening. In this way, we obtain a non-linear adaptive grid with accumulation points at the spectral function peaks.