Difference between revisions of "Basis set specification"

From Spinach Documentation Wiki
Jump to: navigation, search
(→‎Formalism selection)
(→‎Approximation selection)
Line 53: Line 53:
 
{| class="wikitable"
 
{| class="wikitable"
 
!Approximation
 
!Approximation
−
!Comments
+
!Approximation description
 
!Parameters
 
!Parameters
 
|-
 
|-

Revision as of 18:29, 26 December 2016

Any Spinach input must contain a specification of the formalism to be used (Hilbert or Liouville space), a specification of the type of basis operators to be used (Pauli matrices or irreducible spherical tensors), and a choice of which quantum states should be taken into consideration during the simulation process. The selection of formalism, approximation and basis set is accomplished by a call to basis.m function:

    spin_system=basis(spin_system,bas);

which updates the spin_system data structure with formalism and basis set information. All relevant parameters are supplied as subfields of the bas structure, which is described in detail in this chapter.

What does basis set mean in spin dynamics?

Every quantum state of the spin system may be described by a density matrix, and the density matrix may be written as a linear combination of some basis matrices. In the simple case of one spin:


\(\hat{\rho }=a{{\hat{\sigma }}_{\text{X}}}+b{{\hat{\sigma }}_{\text{Y}}}+c{{\hat{\sigma }}_{\text{Z}}}\)


where \(\left\{ {{{\hat{\sigma }}}_{\text{X}}},{{{\hat{\sigma }}}_{\text{Y}}},{{{\hat{\sigma }}}_{\text{Z}}} \right\}\) are Pauli matrices and \(\left\{ a,b,c \right\}\) are complex numbers. In this case, the Pauli matrices are the basis set and the complex numbers are the expansion coefficients. Systems with multiple spins have many more operators in the basis set: not only single-spin operators, but also multi-spin operators (for example \(\hat{\sigma }_{\text{Z}}^{\left( 1 \right)}\otimes \hat{\sigma }_{\text{Z}}^{\left( 2 \right)}\)) which describe correlated simultaneous dynamics of multiple spins.

It is these multi-spin correlated states that are often unnecessary. Consider a very large coupled spin system of the kind shown in Figure 1. Even though, technically speaking, the two methyl groups on the opposite sides of the molecule are connected through the network of J-couplings, the practical likelihood of the corresponding correlation actually appearing in a regular liquid state NMR experiment is negligible - the groups are simply too far.

Figure 1. Stereo plot of the anti-difluoroheptane spin system with significant J-couplings shown by dashed lines. In regular liquid state NMR simulations it may safely be assumed that the spins belonging to different methyl groups on the opposite sides of the molecule never become correlated.

The corresponding operators may be dropped from the basis set. This reduces the number of coefficients in the density matrix expansion, and therefore the matrix dimension required for simulation. It is easy to demonstrate that, in very large molecules, the number of different correlated states that never get populated is very large. Dropping these states from the basis set accelerates simulations by many orders of magnitude. Some specific states may also be inaccessible due to the presence of symmetries, conservation laws, spin relaxation, and many other factors. Spinach can take all of these factors into account (and run simulations at a massively reduced computational cost), but it needs you to provide the information that would enable it to make the decisions about which states should and should not be considered relevant.

Formalism selection

The first decision you are required to make concerns the simulation formalism, using bas.formalism parameter, for example:

    bas.formalism='sphten-liouv';

Unless you have good reasons not to, choose 'sphten-liouv' here. The following formalisms are supported by the kernel:

Formalism keyword Formalism description
'sphten-liouv'

Liouville space formalism; the fundamental operators from which the basis set is built are single-spin irreducible spherical tensors. These operators are ordered with respect to many common transformations and conservation laws encountered in magnetic resonance. Many useful operations may therefore be performed semi-analytically. A lot of Spinach functionality either requires this formalism or operates most efficiently within it. This should be the default choice unless you have good reasons to pick something else.

'zeeman-liouv' Liouville space formalism; the fundamental operators from which the basis set is built are single transition operators between the projection states on the Z axis. The state vector coefficients in this formalism are easy to interpret because they correspond to populations of standard textbook spin states. This formalism is essentially a vectorisation of 'zeeman-hilb'; it permits only limited state space reduction; most calculations would have exponential complexity scaling if this option is chosen.
'zeeman-hilb' Hilbert space formalism; the fundamental states from which the basis set is built are the projection states on the Z axis. This is the standard density operator formalism described in most magnetic resonance textbooks. Only the core functionality (operators, states, propagators, evolution) is available. This option is mostly useful for backwards compatibility checks; it cannot support complicated relaxation theories or chemical kinetics. All calculations within this formalism would have exponential complexity scaling.

System-level state space reduction, and therefore polynomial complexity scaling, is only available within 'sphten-liouv' formalism. If your system has more than 20 spins, 'sphten-liouv' is your only realistic choice. For small but strongly coupled spin systems without significant relaxation effects, choose 'zeeman-hilb'.

Approximation selection

To run an exact calculation in any formalism, set:

    bas.approximation='none';

This option requests a complete basis set, which is only practical up to about twelve spins in Hilbert space and six spins in Liouville space. Approximate calculations are those that use an incomplete basis set. The user is expected to provide the information that Spinach would use to build the basis set. The following frequently encountered choices are provided with the kernel:

Approximation Approximation description Parameters
bas.approximation='IK-0' Includes all product states between up to (and including) bas.level spins located anywhere within the system. The asymptotic scaling of this basis set is polynomial. bas.level
bas.approximation='IK-1' Includes all product states between up to (and including) bas.level directly coupled spins, and up to order bas.space_level between spins that are closer than tols.prox_cutoff (default is 100 Angstrom). The asymptotic scaling of this basis set is polynomial. bas.level, bas.space_level, tols.prox_cutoff
bas.approximation='IK-2' Includes, for every spin, all correlations with all directly coupled spins, and correlations with up to (and including) bas.space_level with spins that are closer than tols.prox_cutoff (default is 100 Angstrom). The asymptotic scaling of this basis set is polynomial. bas.space_level, tols.prox_cutoff
bas.approximation='ESR-1' Generates the complete state space for all electrons and includes the identity and longitudinal states for each nucleus. This is often a good choice for simple high-field ESR experiments. The asymptotic scaling of this basis set is exponential.
bas.approximation='ESR-2' Generates the complete state space for all electrons and all anisotropically coupled nuclei, but only includes the identity and longitudinal states for isotropically coupled nuclei. This is often a good choice for complicated high-field ESR experiments. The asymptotic scaling of this basis set is exponential.


Most spin dynamics simulation trajectories never populate the entire state space of the spin system, and it is therefore possible to run exact simulations at a much reduced computational cost in a suitably restricted basis (see our recent publications in the docs\published_papers directory for further details). Spinach would run simulations in any basis you set, the key question is about the size (=quality) of it. Just like it happens in Quantum Chemistry, the responsibility for choosing the basis rests with the user: for example, a two-spin order basis set is unlikely to be accurate, and including ten-spin orders for a liquid state NMR system is likely to be a computationally expensive overkill.

The picture below gives the general idea about the correlation orders expected in typical simulations. Liquid state NMR systems are usually well reproduced in IK-2 basis set, solid state simulations of crystals require complete basis sets, but powder patterns (both stationary and spinning) are usually well reproduced with IK-0 basis at level 3 or higher. For ESR systems, ESR-1 or (if relaxation theory treatment is required) ESR-2 are generally accurate, but a complete basis sets may occasionally be necessary.

The theory of incomplete basis set simulations in magnetic resonance is currently under active development. If in doubt, use the complete basis set – up to about 10 spins (Liouville space) or 20 spins (Hilbert space), Spinach would be able to handle it. With bigger spin systems the only practical choice is to restrict the basis.

Numerical simulation of the density matrix norm dynamics during the evolution and detection period of a pulse-acquire NMR experiment on the 22-spin system of strychnine. All distances and magnetic parameters imported from a GIAO DFT B3LYP/EPR-II calculation. Bloch-Redfield-Wangsness relaxation superoperator (including DD, CSA and cross-correlation terms) was used with isotropic rotational diffusion correlation time of 200 ps.

In the example above, state space restriction to five-spin orders would produce accurate results, and a basis set such as IK-1(5,3) – state space restriction to five-spin orders between directly coupled spins and to three-spin orders for all spins within 4 Angstroms (default distance tolerance) of each other – would be an appropriate choice. Systems where spin-spin couplings are stronger and more numerous would require a larger basis set: in ESR and solid state NMR systems it is not uncommon to see 8-spin and higher orders populated. The following equation provides an estimate of the minimal basis set requirements:

\(k > 2\sqrt {\frac{h}{r}} {\rm{erf}}{{\rm{c}}^{ - 1}}\left( {\xi {\rm{erfc}}\left( {\frac{1}{2}\sqrt {\frac{r}{h}} } \right)} \right)\)

where \(k\) gives the maximum spin correlation order to be included in the basis, \(\xi\) is the target accuracy, \(r\) is the average relaxation rate in the system and \(h\) is the average spin-spin coupling (single-spin inter-actions, such as Zeeman, NQI and ZFS, do not count). Running analytics.m function to produce the plot of the kind shown in the figure above is always a good idea – research literature comparing the performance of different basis sets in different settings has yet to emerge.

Symmetry factorization

A simulation that starts in a particular symmetry state and evolves under the Hamiltonian that con-serves that symmetry would never populate states of different symmetries. This is recognized by the Spinach kernel, which supports spin permutation symmetries. The following groups are supported ('A' index indicates the largest Abelian subgroup of the corresponding permutation group):

    S2, S3, S4, S4A, S5, S6

along with their direct products. All spin quantum numbers are supported. The following example declares three groups of equivalent spins, each related by S3 permutation group, the first one incorporating spins 14, 15, 16, the second one spins 17, 18, 19 and the third one spins 20, 21, 22.

    bas.sym_group={'S3','S3','S3'};
    bas.sym_spins={[14 15 16],[17 18 19],[20 21 22]};

Although all irreducible representations are commonly populated in Hilbert space simulations, in Liouville space only the fully symmetric irreducible representation is normally active. Accordingly, Spinach defaults to projecting the system into the fully symmetric irrep. Processing of other irreps may be forced by setting bas.sym_a1g_only=0.

It is important to note that the symmetry factorization described above is operating in spin space – all interaction tensors of symmetry-related spins must be identical in orientation as well as magnitude.

Correlation and coherence order screening

It is often the case that the coherence order is conserved (exactly or approximately) during the system evolution process. Spinach offers two options to screen the basis sets according to coherence order and only keep the user-specified coherences. The following statement:

    bas.projections=[-1 0 1];

causes coherences of order –1, 0 and 1 to be kept in the basis. Coherence order is defined as the sum of the projection quantum numbers of all single-spin irreducible spherical tensor operators entering the direct product state.

The coherence order filter above refers to the whole system. In common high-field NMR experiments it is also the case that only longitudinal states are populated on specific spins (such as 15N in a 1H pulse-acquire NMR experiment). The following statement:

    bas.longitudinals={'15N','13C'};

additionally screens the basis so as to keep only the longitudinal spin states on the specified spins (in this case 15N and 13C).