Basis set specification
Selection of formalism, approximation and basis set is accomplished by a call to basis.m function:
spin_system=basis(spin_system,bas);
All relevant parameters are supplied as subfields of the bas structure.
Contents
Formalism selection
The first choice the user is required to make is the simulation formalism, using bas.formalism parameter. The following formalisms are supported:
| 'sphten-liouv' | Irreducible spherical tensor basis, matrix representation, Liouville space. 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' | Zeeman basis, matrix representation, Liouville space. Identical in most respects to sphten-liouv, with the exception of state space restriction and analytical coherence selection functionality, which is not available. |
| 'zeeman-hilb' | Zeeman basis, matrix representation, Hilbert space. Only the core functionality (operators, states, propagators, evolution) is available. This option is mostly useful for backwards compatibility checks be-cause it reproduces identically the formalism found in most begin-ner-level NMR and EPR textbooks. |
In almost all cases the working formalism should be sphten-liouv because state space restriction method (and therefore polynomial complexity scaling algorithms) is available for it.
Approximation selection
Incomplete basis sets are supported by sphten-liouv formalism only. This section provides some practical advice on the choice of basis sets for restricted state space calcula-tions. Using incomplete basis sets requires detailed understanding of the spin dynamics in the system – unless you know precisely what you are doing, it is a good idea to set
bas.approximation='none';
this option corresponds to running a formally exact simulation. Spinach would still run much faster than any other time-domain Liouville space code. Exact simulations are, however, impossible with more than about 20 spins and the following table lists incomplete basis set parameters in Spinach:
| Parameter | Values | Comments |
|---|---|---|
| bas.approximation | 'none', 'IK-0', 'IK-1', 'IK-2', 'ESR-1', 'ESR-2' | 'none' generates the complete basis set. Note that the scaling of this basis set is exponential.
'IK-0' includes all product states up to order bas.level between all spins. The asymptotic scaling of this basis set is polynomial. 'IK-1' includes all product states up to order bas.level between directly coupled spins and up to order bas.space_level between spins that are closer than sys.tols.prox_cutoff. The asymptotic scaling of this basis set is polynomial. 'IK-2' includes, for every spin, the spin orders involving all directly coupled spins and up to order bas.space_level between spins that are closer than tols.prox_cutoff. The asymptotic scaling of this basis set is polynomial. '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. Note that the asymptotic scaling of this basis set is exponential. '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. Note that the asymptotic scaling of this basis set is exponential. |
| bas.level | positive integer | Defines maximum subgraph size for the partitioning of the coupling network. Relevant for IK-0 and IK-1 basis sets. |
| bas.space_level | positive integer | Defines maximum subgraph size for the partitioning of the spatial proximity network. Relevant for IK-1 and IK-2 basis sets. |
| bas.manual | (m x nspins) logical matrix | A list of m spin sets (defined by the user as logical row vectors with 1 in the position of the included spins and zeroes elsewhere) to be added to the list of subgraphs of the coupling graph. This trig-gers the inclusion of the complete state space of the chosen spin subsystems into the basis. |
| bas.connectivity | 'scalar_couplings', 'full_tensors' | This has an influence on how the reduced basis set is built: 'scalar_couplings' builds the reduced basis using the isotropic interaction and distance information, 'full_tensors' use full interaction and distance information. Because the dipolar coupling network in most systems is very dense and scalar coupling network very sparse, the scalar connectivity basis sets generated by Spinach are smaller than the full tensor connectivity basis sets. |
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.
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:
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).