fugit irreparabile tempus - spin dynamics · 2008-06-24 · assuming that (not always true!) and...

30
Fugit irreparabile tempus

Upload: others

Post on 02-Aug-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Fugit irreparabile tempus

Page 2: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij
Page 3: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Introduction to pattern-matching

Two complicated 2D luminosity patterns between 300 and 700

nm, hard to say anything definite

statisticalanalysis

Nic Wagner-Rundelland Peter Hore(correct answer)

pattern-matching Integration by a machine:

Integration by a human:

( )441

/

1

1lim ...2

Nn Nx

N n N

ae dx aeN

−−

→∞=−−

= =∑∫

( ) ( )Rule 1: af x dx a f x dx→∫ ∫

( )( )11

1

1Rule 2: 1 1 1n nx ne dx

n

−−

⎛ ⎞→ + − Γ +⎜ ⎟⎝ ⎠∫

A typical pattern matching rule:

( ) ( ) ( ) ( ) c* , ,, , e

2 1l l a c b d

a b c dt tl

ττδ δ

τ−

+ →+

D D

(an approximation pattern)

Page 4: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Spin relaxation theory – introduction

Starting from von Neumann’s equation:

Making the usual perturbation theory assumptions:

Successive approximation(von Neumann’s series) expansion:

In any convenient operator basis:

where are centred stochastic functions and is an operator basis set.

Moving to the interaction representation:

0

ˆ ( ) ˆ ˆˆ ˆ ˆ ˆˆ ˆ ˆ[ ( ); ( )] ( ) ( ) ( ) ( ) (0)t i iH t t H t t H t adH tt

ρ ρ ρ ρ ρ∂= − = − = =

0 1 0 1ˆ ˆ ˆ ˆ ˆ( ) ( ), ( ) H t H H t H H t t= + >> ∀

0 0 0 0ˆ ˆ ˆ ˆ

D D1 1 1

( ) ˆ̂ ˆ ˆ( ) ( ) ( ) ( ) ( ) ( )i i i iH t H t H t H tt it e t e H t t H t e H t e

tσρ σ σ

− −∂= = − =

0

D1 1

0

( ) (0) (0)

ˆ̂( ) (0) ( ') ( ') 't

i i

t

it H t t dt

σ σ ρ

σ σ σ+

= =

= − ∫D

1ˆ ˆ( ) ( )j j

jH t f t K=∑

( )jf t ˆjK

Page 5: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Spin relaxation theory – introduction

Integrating by successive approximations to i=2 :

Assuming the last expression to be exact, moving in small steps, reassigning as we go (“coarse-grained” time scale, similar to numerical solving of ODEs):

Averaging stochastic processes over the molecular ensemble:

Assuming that (not always true!) and extending the upper limit to infinity.

0

1 00

'

2 0 02,0 0 0

( ) (0)

ˆ̂( ) (0) ( )

1ˆ ˆ ˆˆ ˆ ˆ( ) (0) ( ) ( ) ( )

t

j jj

t t t

j j k k m mj k m

t

it f t K dt

it f t K dt f t K dt f t K dt

σ σ

σ σ σ

σ σ σ σ

=

′ ′= −

′ ′ ′ ′ ′′ ′′= − −

∑∫

∑ ∑∫ ∫ ∫

2, 0

( ) 1ˆ ˆ ˆˆ ˆ ˆ( ) ( ) ( ) ( ) ( )t

j j k m k mj k m

t i f t K t f t f t K K t dtt

σ σ σ∂ ′ ′= − −∂ ∑ ∑∫

( ) ( ) ( ) ( ) (0) ( ) ( )k m k m k m kmf t f t f t f t f f gτ τ τ′ = + = = ˆ̂( ) (0) 0j jf t K σ =

lim ( ) 0kmgτ

τ→∞

=

Page 6: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Spin relaxation theory – introduction

Correcting for the finite lattice temperature and going back to the Schrödinger representation:

Moving on to a matrix representation:

Taking trace with the operator algebra of interest:

Final equation for the evolution of the full system of observables (magnetization modes):

All the complexity is contained in precise expressions for the coefficients.

Typical time to do a two-spin system by hand: 1 month

( ) ( ) ( ) ( )0 0ˆ ˆi ieq † eq

0, 0

ˆ ˆ ˆ ˆˆ ˆ ˆ ˆi[ , ] [ ,[ , ]]H Hnm n m

n m

tH t g K e K e t d

tτ τρ

ρ ρ τ ρ ρ τ∞

−∂= − − − −

∂ ∑∫

0( )ijijkl lk lk

dR

dtρ

ρ ρ= −

0 0( )( ) ( )

mij ji m m n

ijkl lk lk ji n kl lk lk

d AR A k A

dtρ

ρ ρ ρ ρ= − = −

0( )i i j jj

i

d A k A Adt

⎧ = −⎨⎩

Page 7: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

BRW relaxation theory outline

Relaxation theory is essentiallya modified second-order timedependent perturbation theory.

Analytical relaxation theory ofmulti-spin systems is notoriousfor bulky intermediate and finalexpressions.

A large number of transitionswhich are denied in coherentspin evolution are allowed byrelaxation.

Common mechanisms:

Dipolar: the rotational andtranslational modulation of theinter-electron and electron-nucleus dipolar interaction.

Zeeman anisotropy: the rotational modulation of the electron and nuclear Zeeman interaction.

Exchange: rotational and translational modulation of the inter-electron exchange interaction.

Cross-correlated relaxation: non-independent rotational and translational averaging of several interactionsleading to the appearance of additional relaxation channels.

Page 8: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Double- and zero-quantum transitions induced by relaxation

A double-quantum transition requires twospin flips and is therefore forbidden incoherent spin dynamics. However, it isallowed in the second order in perturbationinduced by rotational modulation of dipolarinteraction. It contributes to Overhausereffect, which is the primary source of infor-mation in protein structure determination.

A zero-quantum transition also requires twospin flips and is also caused by the modula-ted dipolar interaction. It makes Overhausereffect disappear in some situations, causingconsiderable headache to hapless biologists.

In more complicated systems other double-flip transitions may be opened up by relaxa-tion, leading to a very rich array of observedphenomena.

Page 9: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

A typical situation in a three-spin system

Of course, with bigger spin systems things tend to become complicated…

Page 10: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Relaxation theory: what needs to be automated

Page 11: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Relaxation theory: what needs to be automated

Requirements / Challenges:

Fully rhombic interaction tensors: are algebraically difficult due tothe complexity of the rotations involved, but are quickly becomingessential as relaxation experiments in NMR and ESR get moreaccurate.

General dynamics model: the spectral density function must becarried through in its most general form. Exponential correlationfunctions are only encountered in textbooks.

Cross-correlations: geometric locks between interaction rotationsmust be correctly accounted for.

Dynamic frequency shift: frequency arguments of the spectraldensity functions must be correctly signed.

Arbitrary interaction tensor orientation: interaction tensor positioningin molecular frame must be completely general, but must not involveany brain-twisting trigonometry.

Secular approximation: is a very dangerous assumption and mustbe removed if at all possible.

Page 12: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Automated processing strategy: stage 1

What is happening:

1. Translation of Hamiltonian into operators that have regular rotation properties.

2. Interaction tensor positioning in the molecular frame and overall rotation setup.

3. Representation of static rotations in the most compact and general form.

Page 13: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Automated processing strategy: stage 2

What is happening:

1. The patterns of Wigner functions given above are matched and replaced.

2. Correlation functions of independent rotations are zeroed.

3. Static (relative) interaction tensor rotations survive, giving correct account of cross-correlations

4. Basic simplification and rearrangement is performed.

Programmed in just one line of Mathematica syntax:

Page 14: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Automated processing strategy: stage 3

What is happening:

1. The BRW master equation is integrated term by term.

2. Cosmetic simplification is performed.

Implementing linearity, multiplication by a scalar, and a rule for the exponential:

Page 15: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Example 1: relaxation due to rhombic Zeeman interaction

Some illustrative output and timings:

50 milliseconds… :)

This is literally it, ten lines of Mathematica code in addition to the above:

Page 16: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Example 2: relaxation due to ZFS anisotropy

ZFS anisotropy is the dominant electron relaxation mechanism ine.g. derivatised endofullerenes. For the spin-3/2 (N@C60 ) case:

Resulting relaxation rates and timings:

The answers contain the spectral densitiesin their most general form. However, whatthese functions actually are is very muchunclear. For endofullerenes they certainlycannot be assumed to be Lorentzian.

In a simplifiedform (HFC=0):

Page 17: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Application: Δg-ΔHFC cross-correlation in a radical pair

At least three spins (two electrons, one nucleus) need to be included in the model. The existing models (including only a selection of relaxation pathways) all fail. Therefore a complete 4096-element relaxation

superoperator is required, preferably in symbolic form to allow analysis.

HFC

HFC

Gauss4.4 Gauss

Gauss

211 Gaussg

g

AxRhAx

Rh

=

==

=

142

522

Page 18: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Application: Δg-ΔHFC cross-correlation in a radical pair

Translation into irreducible spherical tensors:

A radical pair (2e,1n) with rotationally correlated rhombic interactions:

Computed in 0.214 seconds. The full 4096-element symbolic relaxation superoperatortakes just under 15 minutes. :)

Example output: relaxation rate forthe left component of the hyperfinedoublet of electron 1:

Page 19: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Application: Δg-ΔHFC cross-correlation in a radical pair

Brute-force calculation with complete symbolic relaxation superoperator takes about an hour.

The mechanism responsible:

The correlation time dependence of thisrelaxation rate differential results in thecorrelation time dependence of the overall 19Fphoto-CIDNP effect.

Due to Δg-ΔHFC cross-correlation, the 19Fhyperfine doublet components relax atdifferent rates:

Simulation result:

Page 20: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Side note: cross-correlation parameters

Axial case of the cross-correlation parameter:Encountered in quantities throughout NMR spectroscopy.

Used to obtain additional orientational information in protein structure determination. Frequently used in a priori rhombic

cases, where it mysteriously appears to fit the data.

Full rhombic expression:

XG,HFC is always a single parameter, which is why people canget away with fitting the axial expression to rhombic systems.However, the rhombic expression is richer in structuralinformation (axiality, rhombicity, three angles).

Most 13C and 15N shielding tensors in proteins, for example,are rhombic, and sooner or later the axial approximation willhave to be abandoned.

Page 21: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Symbolic BRW theory processor: summary

• General spectral densities

• Fully rhombic interaction tensors

• Dynamic frequency shifts

• All cross-correlations

• Arbitrary relative tensor orientations

• No secular approximation

Three example / backbone programs are included in the Supplementary Information. No pointy-clicky interface, just code.

Page 22: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Flowchart of symbolic processing

Page 23: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Introduction to Mathematica patterns

Patterns are used to represent classes of expressions. For example, f[_] stands for anyexpression of the form f[anything]. Pattern f[x_] also stands for f[anything], but itgives name to the expression anything and allows to refer to it on the right-hand side ofthe transformation rule. For example:

A given pattern will match all expressions that can be obtained by filling in the namedand unnamed blanks in any way.

Page 24: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Introduction to Mathematica patterns

Importantly, patterns represent classes of expressions with a given structure. In otherwords, while a pair of expressions may be mathematically equal, they might not matchthe same pattern.

In all cases, the pattern matching in Mathematica is fundamentally structural ratherthan algebraic. This must always be kept in mind when designing patterns.

Pattern Expression Match?(1+x_)2 (1+a)2 Yes(1+x_)2 1+2a+a2 No

x^_ x^2 Yesx^_ 1 No

The internal representation of an expression may be obtained using the FullFormcommand:

Page 25: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Introduction to Mathematica patterns

22if x

i i

fx

σ σ⎛ ⎞∂

= ⎜ ⎟∂⎝ ⎠∑

Real-life example: the error propagation law, a fairly tedious procedure, may be packedin full generality into one line of pattern-matching syntax.

Real-life example: Clebsch-Gordan expansions of products of spherical harmonics maybe programmed in full generality with just two patterns (see Tutorial 1 for the details ofthose patterns).

Typical processing time: milliseconds… :)

( )

( )2,0

2

,

1 5 3cos 14

Y θ ϕ

θπ

=

Page 26: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Conditional patterns

Certain patterns should only be applied if certain conditions are met (e.g. a term can betaken out of integral only if it contains no integration variable). Mathematica provides ageneral way of putting conditions on patterns:

An example of a conditional pattern for the complex conjugation operation:

Another example from the linearity definition of an integration operator:

The ‘/;’ symbol can be interpreted as ‘whenever’. Conditions should be applied to thesmallest possible parts of expressions – the sooner Mathematica encounters a violation,the sooner it can stop processing a given pattern.

Page 27: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

More advanced patterns

Double blanks stand for sequences of one or more expressions. Triple blanks stand forsequences of zero or more expressions.

Extending the linearity and threading of conjugation over an arbitrary number ofarguments (will be used in BRW processor):

Times and Plus operations return a sum or a product of elements in the list, so the rulesabove will operate repeatedly until the list of terms in the sum or product is exhausted.

Page 28: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Some frequently encountered patterns

Typical patterns for algebraic expressions:

Typical patterns for lists:

Page 29: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

General notes

• Mathematica kernel has complete memory of past commands, which is retainedbetween the worksheets. Restart the kernel (Menu > Evaluation > Quit Kernel > Local)to make it forget what you told it before.

• Floating point numbers disable many analytical ransformation routines inMathematica. Always use analytical expressions (e.g. 1/2 instead of 0.5).

• A spacebar symbol is interpreted as multiplication. That can be a source of muchfrustration, so be careful. Never put a space anywhere unless you mean to multiply.

• Argument brackets are [rectangular], priority brackets are (round) and listbrackets are {curly}.

The practical tutorial worksheets (~45 min and ~120 min respectively) on pattern-matching and its applications to relaxation theory can be downloaded from here:

http://www.kuprov.com/acert/tutorial_1.nbhttp://www.kuprov.com/acert/practice_[1,2,3,4].nb

Enjoy! :)

Page 30: Fugit irreparabile tempus - Spin Dynamics · 2008-06-24 · Assuming that (not always true!) and extending the upper limit to infinity. 0 10 0 ' 20 02 00, 0 (0) ˆˆ (0) ( ) ... ij

Many thanks to

PJH/CRT groups

Oxford Supercomputing Centre

Magdalen College, Oxford

Acknowledgements