13.07.2015 Views

Optimal control in NMR spectroscopy: Numerical implementation in ...

Optimal control in NMR spectroscopy: Numerical implementation in ...

Optimal control in NMR spectroscopy: Numerical implementation in ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Journal of Magnetic Resonance 197 (2009) 120–134Contents lists available at ScienceDirectJournal of Magnetic Resonancejournal homepage: www.elsevier.com/locate/jmr<strong>Optimal</strong> <strong>control</strong> <strong>in</strong> <strong>NMR</strong> <strong>spectroscopy</strong>: <strong>Numerical</strong> <strong>implementation</strong> <strong>in</strong> SIMPSONZdeněk Tošner a,b, *, Thomas Vosegaard a , C<strong>in</strong>die Kehlet a , Nav<strong>in</strong> Khaneja c , Steffen J. Glaser d ,Niels Chr. Nielsen a, *a Center for Insoluble Prote<strong>in</strong> Structures (<strong>in</strong>SPIN), Interdiscipl<strong>in</strong>ary Nanoscience Center (iNANO) and Department of Chemistry, University of Aarhus, Langelandsgade 140,DK-8000 Aarhus C, Denmarkb Department of Chemistry, Faculty of Science, Charles University <strong>in</strong> Prague, Hlavova 8, CZ-128 43, Czech Republicc Division of Applied Sciences, Harvard University, Cambridge, MA 02138, USAd Department of Chemistry, Technische Universität München, 85747 Garch<strong>in</strong>g, Germanyarticle<strong>in</strong>foabstractArticle history:Received 13 October 2008Revised 19 November 2008Available onl<strong>in</strong>e 8 December 2008Keywords:<strong>Optimal</strong> <strong>control</strong><strong>NMR</strong> <strong>spectroscopy</strong>Rf <strong>in</strong>homogeneityResonance offsetsEffective HamiltonianComposite pulsesQuantum <strong>in</strong>formation process<strong>in</strong>gStrongly modulat<strong>in</strong>g pulsesWe present the <strong>implementation</strong> of optimal <strong>control</strong> <strong>in</strong>to the open source simulation package SIMPSON fordevelopment and optimization of nuclear magnetic resonance experiments for a wide range of applications,<strong>in</strong>clud<strong>in</strong>g liquid- and solid-state <strong>NMR</strong>, magnetic resonance imag<strong>in</strong>g, quantum computation, andcomb<strong>in</strong>ations between <strong>NMR</strong> and other spectroscopies. <strong>Optimal</strong> <strong>control</strong> enables efficient optimizationof <strong>NMR</strong> experiments <strong>in</strong> terms of amplitudes, phases, offsets etc. for hundreds-to-thousands of pulsesto fully exploit the experimentally available high degree of freedom <strong>in</strong> pulse sequences to combat variations/limitations<strong>in</strong> experimental or sp<strong>in</strong> system parameters or design experiments with specific propertiestypically not covered as easily by standard design procedures. This facilitates straightforwardoptimization of experiments under consideration of rf and static field <strong>in</strong>homogeneities, limitations <strong>in</strong>available or desired rf field strengths (e.g., for reduction of sample heat<strong>in</strong>g), spread <strong>in</strong> resonance offsetsor coupl<strong>in</strong>g parameters, variations <strong>in</strong> sp<strong>in</strong> systems etc. to meet the actual experimental conditions asclose as possible. The paper provides a brief account on the relevant theory and <strong>in</strong> particular the computational<strong>in</strong>terface relevant for optimization of state-to-state transfer (on the density operator level) andthe effective Hamiltonian on the level of propagators along with several representative examples with<strong>in</strong>liquid- and solid-state <strong>NMR</strong> <strong>spectroscopy</strong>.Ó 2008 Elsevier Inc. All rights reserved.1. Introduction* Correspond<strong>in</strong>g authors. Address: Center for Insoluble Prote<strong>in</strong> Structures(<strong>in</strong>SPIN), Interdiscipl<strong>in</strong>ary Nanoscience Center (iNANO) and Department of Chemistry,University of Aarhus, Langelandsgade 140, DK-8000 Aarhus C, Denmark. Fax:+45 8 6196199 (N. C. Nielsen).E-mail addresses: tosner@natur.cuni.cz (Z. Tošner), ncn@chem.au.dk (N.C.Nielsen).In the recent few years optimal <strong>control</strong> [1–3] has found its way<strong>in</strong>to nuclear magnetic resonance as a powerful tool for efficient designand optimization of experiments for applications <strong>in</strong> imag<strong>in</strong>g[4–7], liquid-state <strong>NMR</strong> [8–13], solid-state <strong>NMR</strong> [14–20], quantumcomputation [21–26], and dynamic nuclear polarization/electronnuclear<strong>in</strong>teractions [27–31]. This method, orig<strong>in</strong>ally be<strong>in</strong>g <strong>in</strong>troducedfor optimizations <strong>in</strong> eng<strong>in</strong>eer<strong>in</strong>g and economy, is veryattractive for optimization problems deal<strong>in</strong>g with complex <strong>in</strong>ternalHamiltonians and a large number of external manipulation parameters.Opposed to the small space of variables typically associatedwith standard non-l<strong>in</strong>ear optimization methods [32], optimal <strong>control</strong>is capable of handl<strong>in</strong>g hundreds-to-thousands of free variableswith<strong>in</strong> an optimization and provides an optimal solution much fasterthan standard optimization procedures <strong>in</strong> such cases. Thisopens up <strong>in</strong>terest<strong>in</strong>g new possibilities for perform<strong>in</strong>g experimentdesign which takes <strong>in</strong>to account all typically available <strong>in</strong>formationon (i) the relevant nuclear sp<strong>in</strong> systems (size, typical nuclear sp<strong>in</strong><strong>in</strong>teraction parameters, and variations <strong>in</strong> these), (ii) the availableexperimental manipulations (external magnetic field, rf fields, limitationsand <strong>in</strong>homogeneities <strong>in</strong> these), and (iii) relevant experimentalconditions (sample sp<strong>in</strong>n<strong>in</strong>g, dynamics).Us<strong>in</strong>g optimal <strong>control</strong>, it is possible to extend the numerical designand optimization of <strong>NMR</strong> methods [33,34] to fully exploit theavailable experimental degrees of freedom to reach the optimalexperiment, as for example expressed <strong>in</strong> terms of universal boundson sp<strong>in</strong> dynamics [35–39]. The outcome of numerical optimizationswith optimal <strong>control</strong> may not only provide optimum experimentsfor direct applications, but may also provide new <strong>in</strong>sight<strong>in</strong>to, e.g., the maximal possible transfer efficiencies, which thenmay be used (i) as an evaluation of whether there is room forimprovements of state-of-the-art experiments and (ii) to providenew <strong>in</strong>spiration to alternative design strategies, for example basedon average (or effective) Hamiltonian theory [40–43]. As an exampleof the latter, it became clear from optimal <strong>control</strong> design of heteronuclearcoherence transfer schemes <strong>in</strong> solid-state <strong>NMR</strong> [14]1090-7807/$ - see front matter Ó 2008 Elsevier Inc. All rights reserved.doi:10.1016/j.jmr.2008.11.020


Z. Tošner et al. / Journal of Magnetic Resonance 197 (2009) 120–134 121that optimal <strong>control</strong> can <strong>in</strong>crease the efficiency of so-called c-encodeddipolar recoupl<strong>in</strong>g experiments [44] by compensat<strong>in</strong>g moreefficiently for spread <strong>in</strong> another crystallite orientation angle (b)lead<strong>in</strong>g to the concept of COMpensation for Beta (COMB) compositerefocus<strong>in</strong>g [45]. This led to an analytical s<strong>in</strong>gle-sp<strong>in</strong> optimizationstrategy for improved dipolar recoupl<strong>in</strong>g, which <strong>in</strong> asubsequent phase was feeded back to fast optimal <strong>control</strong> s<strong>in</strong>glesp<strong>in</strong>numerical optimizations of two-sp<strong>in</strong> dipolar recoupl<strong>in</strong>gexperiments [20]. Another option is to use optimal <strong>control</strong> directlyas a means to analytically design optimal experiments [46–53].In this paper, we address software <strong>implementation</strong> of optimal<strong>control</strong> for easy conduction of experiment optimizations for specificapplications, to improve robustness towards the parametersthat are essential for the <strong>in</strong>tended experiments or simply to obta<strong>in</strong>a test on the maximum possible efficiency of an experiment tocompare with exist<strong>in</strong>g methods. The paper serves as a descriptionof (and manual for) an extension of the powerful and widely usedsimulation package SIMPSON [54] to <strong>in</strong>clude optimal <strong>control</strong> applications[14]. The comb<strong>in</strong>ed software is released as open sourcesoftware <strong>in</strong> a new version of SIMPSON. The paper is organized asfollows. First the relevant theory is discussed briefly with referenceto the orig<strong>in</strong>al literature for a more detailed account. Subsequently,we <strong>in</strong>troduce the novel features relevant for SIMPSON optimal <strong>control</strong>calculations, and f<strong>in</strong>ally provide a few relevant examples illustrat<strong>in</strong>gthese features and demonstrat<strong>in</strong>g some of the flexibility ofan optimal <strong>control</strong> numerical tool for <strong>NMR</strong> experiment design andoptimization.2. TheoryThe sp<strong>in</strong> dynamics of <strong>NMR</strong> experiments is typically expressed <strong>in</strong>terms of the evolution of density operators as expressed by theLiouville-von-Neuman equation_qðtÞ ¼ i½HðtÞ; qðtÞŠ ð1Þaddress<strong>in</strong>g cases without relaxation. In general terms, the Zeemanframe Hamiltonian may be described asHðtÞ ¼H <strong>in</strong>t ðtÞþH rf ðtÞ;H rf ðtÞ ¼ X x I ixðtÞI rf ix þ x I iyðtÞI rf iy;iH <strong>in</strong>t ðtÞ ¼H CS ðtÞþH J ðtÞþH D ðtÞþH Q ðtÞ:H rf ðtÞ expresses external manipulations <strong>in</strong> terms of rf irradiation,here expressed as a summation over x- and y-phase contributionsfor the <strong>in</strong>volved sp<strong>in</strong>s (or sp<strong>in</strong> species) through cont<strong>in</strong>uous functions<strong>in</strong> time t. In numerical calculations the pulses are for practicalreasons represented <strong>in</strong> digitized form as a tra<strong>in</strong> of pulses appropriatelyreflect<strong>in</strong>g the time variation. H <strong>in</strong>t ðtÞ collects contributionsfrom <strong>in</strong>ternal nuclear sp<strong>in</strong> <strong>in</strong>teractions, <strong>in</strong>clud<strong>in</strong>g chemical shifts,scalar (J) coupl<strong>in</strong>gs, dipole–dipole coupl<strong>in</strong>gs, and quadrupolar coupl<strong>in</strong>gs.The <strong>in</strong>ternal Hamiltonian for the various <strong>in</strong>teractions maytypically be cast <strong>in</strong> the form of a Fourier seriesH k ðtÞ ¼ X2m¼ 2ð2Þð3Þð4Þx ðmÞke imxrt O k ; ð5Þwhere time dependencies, e.g., due to sample sp<strong>in</strong>n<strong>in</strong>g with angularfrequency x r , is expressed through the exponentials. Expressionsfor the angular frequencies of the isotropic and anisotropic (i.e., orientationdependent) <strong>in</strong>ternal nuclear sp<strong>in</strong> <strong>in</strong>teractions x ðmÞkas wellas the associated sp<strong>in</strong> operators O k for typical solid- and liquid-state<strong>NMR</strong> applications can be found <strong>in</strong> Ref. [54].For a generalized pulse sequence consist<strong>in</strong>g of a tra<strong>in</strong> of Npulses act<strong>in</strong>g consecutively on the <strong>in</strong>itial sp<strong>in</strong> density operatorqð0Þ from time 0 to time t N ¼ T, the density operator at the endof the pulse sequence takes the formqðTÞ ¼U N ðt N ; t N 1 Þ ...U 2 ðt 2 ; t 1 ÞU 1 ðt 1 ; 0Þqð0ÞU y 1 ðt 1; 0ÞU y 2 ðt 2; t 1 Þ ...U y N ðt N; t N 1 Þwith each propagator def<strong>in</strong>ed as Uðt kþ1 ; t k Þ¼T b expf i R t kþ1t kHðtÞdtgus<strong>in</strong>g the Hamiltonian <strong>in</strong> Eq. (2) and the Dyson time-order<strong>in</strong>g operatorT. b The aim of the optimization is to adjust the external manipulationparameters, which are the <strong>in</strong>stantaneous rf field amplitudesx Iixðtrf kÞ and x Iiy ðt rf kÞ <strong>in</strong> Eq. (3), to provide the best performance of theexperiment. This amounts to systematic variation of the amplitudes<strong>in</strong> Fig. 1 to obta<strong>in</strong> the optimal experiment.The performance may be evaluated as the highest transfer efficiencytransferr<strong>in</strong>g a given <strong>in</strong>itial state operator, e.g., qð0Þ ¼A to adesired dest<strong>in</strong>ation sp<strong>in</strong> operator C as expressed by the densityoperator at time T, qðTÞ ¼c max C þ B, where the coefficient c max ismaximized and B conta<strong>in</strong>s all residual operator terms. Henceforth,we will refer to this situation as state-to-state transfer. In cases oftransfer between Hermitian operators this amounts to optimizationof the overlap between C and the transformed operatorqðTÞ ¼Uqð0ÞU y as expressed <strong>in</strong> terms of a standard <strong>in</strong>ner productbetween the operatorsn oU f<strong>in</strong> ¼hCjqðTÞi ¼ Tr C y Uqð0ÞU y : ð7ÞIn cases of transfer between non-Hermitian operators, the transferfunction def<strong>in</strong>ed <strong>in</strong> Eq. (7) is complex valued <strong>in</strong> general and cannot be used directly. In this case there are several possible replacementsfor U f<strong>in</strong> , for example just evaluat<strong>in</strong>g the real part or the normsquared of the transfer function. For <strong>implementation</strong> with<strong>in</strong> SIMP-SON, we have chosen the latter case:U f<strong>in</strong> ¼ jhCjqðTÞ<strong>in</strong> oj 2 ¼ Tr C y Uqð0ÞU y 2 :We note that this cost function leads to a multitude of solutions, asdiscussed previously <strong>in</strong> the context of unitary bounds on sp<strong>in</strong>dynamics [36,38].For other applications, it is relevant to optimize the effectiveHamiltonian H eff (or the effective propagator U eff ) to a desired effectiveHamiltonian H D (or the desired propagator U D ) which amountsto optimization ofabcFig. 1. Schematic illustration of optimal <strong>control</strong> design of multiple-pulse experiments.(a) The pulse sequence consists of many short pulses with variableamplitude and phase. (b) The effect of the pulse sequence is monitored by forwardand backward evolution of <strong>in</strong>itial state qð0Þ and the target state vðTÞ, respectively.(c) Utiliz<strong>in</strong>g the fact that the two paths are different, corrections to pulseparameters are calculated <strong>in</strong> terms of a gradient.ð6Þð8Þ


122 Z. Tošner et al. / Journal of Magnetic Resonance 197 (2009) 120–134Tr U y D U eff ¼ Tr eiH D T e iH eff T : ð9ÞIn practice, the total phase of a propagator is irrelevant and it provesconvenient to release the reproduction of the desired propagator toall variations <strong>in</strong>clud<strong>in</strong>g a phase u, and optimizeU f<strong>in</strong> ¼ je iu U y D U effj 2 ¼ Tr U y D U 2effð10Þfor all values of u [8,17].A third frequently encountered situation could be optimizationof transfer <strong>in</strong>to a given state while efficiently suppress<strong>in</strong>g transferto other specified states or optimiz<strong>in</strong>g a certa<strong>in</strong> effective Hamiltonianwhile efficiently suppress<strong>in</strong>g others. A typical example for thefirst case could be optimization of sp<strong>in</strong>-state selective <strong>NMR</strong> experimentswhere only one of two possible sp<strong>in</strong>-states (e.g., I a S þ ) is desiredwhile the other should be suppressed (e.g., I b S þ ) [55–58].In optimal <strong>control</strong>, the term, U f<strong>in</strong> <strong>in</strong> Eqs. (7)–(10) is typically referredto as the ‘‘f<strong>in</strong>al cost” (expla<strong>in</strong><strong>in</strong>g the subscript ‘‘f<strong>in</strong>”) <strong>in</strong> anoverall cost function that may conta<strong>in</strong> other terms as well. Oneof the additional terms can be a ‘‘runn<strong>in</strong>g cost”, which may preventachiev<strong>in</strong>g the optimum because the runn<strong>in</strong>g cost is too high. In<strong>NMR</strong> applications this could, for example, be a penalty limit<strong>in</strong>gthe overall consumption of rf power (energy) throughout the pulsesequence as expressed through the termX X N 1 x I 2Dtkiqðt rf kÞ ; ð11ÞU rf ¼ k X iq¼x; y k¼0where Dt k ¼ t kþ1 t k . We note that the weight of the runn<strong>in</strong>g costmay be regulated through the factor k. Obviously, this runn<strong>in</strong>g costis only one of many options for penalties on the <strong>control</strong> fields andtheir time variation.In recent <strong>NMR</strong> applications optimal <strong>control</strong> optimization havebeen conducted us<strong>in</strong>g the gradient based optimization procedureGRAPE (Gradient Ascent Pulse Eng<strong>in</strong>eer<strong>in</strong>g) [8]. This method establishesa gradient which <strong>in</strong> an iterative fashion is used to change theamplitudes of the <strong>control</strong> fields to improve the pulse sequence tooptimum performance.For the state-to-state optimization, the gradient is calculated onthe basis of the ‘‘forward-transformed” density operator <strong>in</strong> Eq. (6)and a ‘‘back-transformed” operator (cf. Fig. 1b)vðt j Þ¼U y jþ1t jþ1; t j...UyN ðt N; t N 1 ÞCU N ðt N ; t N 1 Þ ...U jþ1 t jþ1 ; t j;ð12Þreus<strong>in</strong>g the same propagators as for the ‘‘forward-transformed”density operator <strong>in</strong> Eq. (6). Equipped with Eqs. (6)–(8), it is possibleto describe a gradient which <strong>in</strong> an iterative fashion can be used tomodify the rf field amplitudes x I ixðt rf jÞ and x I iyðt rf jÞ associated withthe sp<strong>in</strong> operators I ix and I iy , respectively, for each pulse <strong>in</strong> the pulsesequence. For transfer between Hermitian operators, the gradientfor the f<strong>in</strong>al cost takes the form [8]@U f<strong>in</strong>@x I iqðt rf jÞ ¼ vðt jÞj iDt j I iq ; qðt j Þ ; ð13Þcorrespond<strong>in</strong>g to an iterative update of the rf fields byx I iqðt rf jÞ!x I iqðt rf jÞþeTr v y ðt j ÞiDt j I iq ; qðt j Þ ; ð14Þwhere q ¼ x or y and e is a small real number. In the case of non-Hermitian operators, the gradient of the f<strong>in</strong>al cost def<strong>in</strong>ed <strong>in</strong> Eq.(8) amounts to@U f<strong>in</strong>@x I iqðt rf jÞ ¼ 2Im vðt jÞjDt j I iq ; qðt j Þ qðtj Þjvðt j Þ : ð15ÞGraphically the orig<strong>in</strong> of the gradient is illustrated <strong>in</strong> Fig. 1b. Underthe <strong>in</strong>fluence of an <strong>in</strong>itially guessed pulse sequence, the densityoperator evolves to some state different from the target state. Inthe same time we can back-propagate the target state vðTÞ ¼C tothe beg<strong>in</strong>n<strong>in</strong>g of the sequence. In the optimal situation, the twopaths would be identical and their difference is used (via the gradient)to generate corrections to all rf pulses (cf. Fig. 1c) at once.The gradient for the runn<strong>in</strong>g cost is@U rf@x I iqðt rf jÞ ¼ 2kxI iqðt rf jÞDt j ;ð16Þwhich may be comb<strong>in</strong>ed directly with the gradient <strong>in</strong> Eq. (14) (orEq. (15)) accord<strong>in</strong>g to formula for the total costU tot ¼ U f<strong>in</strong> U rf ð17Þif considered relevant.For optimization of the effective Hamiltonian, the gradientexpressions take their orig<strong>in</strong> <strong>in</strong> the cost function <strong>in</strong> Eq. (10). Asitis demonstrated elsewhere (see Refs. [8,17]), the gradient may bederived as@U f<strong>in</strong>@x I iqðt rf jÞ ¼ 2Dt jIm U D jU N ...U jþ1 I iq U j ...U 1 h UjUD i ð18Þwith U ¼ U N ...U 2 U 1 where we for simplicity did not specify thetim<strong>in</strong>g limits of the propagators follow<strong>in</strong>g the systems <strong>in</strong> Eq. (6).We note that normalization is an issue of importance when<strong>in</strong>terpret<strong>in</strong>g the efficiency of transfer between given <strong>in</strong>itial and desireddest<strong>in</strong>ation operators. Different approaches has been proprosed<strong>in</strong> literature, all with advantages and disadvantages <strong>in</strong> differentcontexts. The simplest approach will be to normalize the <strong>in</strong>itial anddest<strong>in</strong>ation operators, e.g., C n ¼ C=jjCjj, prior to optimization [38].We note that we, to avoid confusion with previous releases ofSIMPSON and other types of calculations, did not implement thisnormalization <strong>in</strong>to the software described below.<strong>Optimal</strong> <strong>control</strong> may alternatively be conducted us<strong>in</strong>g the socalledKrotov approach [3]. We will not describe this approach <strong>in</strong>detail <strong>in</strong> this paper, but refer the reader to a recent paper by Maximovet al. [27]. In most cases the GRAPE and Krotov algorithms behavesimilarly with respect to results. The Krotov approach istypically faster for the <strong>in</strong>itial part of the optimization and uses feweroperations per iteration, which may prove particularly importantfor optimizations <strong>in</strong>volv<strong>in</strong>g larger sp<strong>in</strong> systems. The Krotovapproach may also be recommendable if the runn<strong>in</strong>g costs arebig, and pulse sequences with very low rf power consumptionare desired. However, the Krotov algorithm is not at present implemented<strong>in</strong> SIMPSON, and thereby not covered by the follow<strong>in</strong>gdescription.3. <strong>Optimal</strong> <strong>control</strong> procedures <strong>in</strong> SIMPSONWith the aim of conduct<strong>in</strong>g optimal <strong>control</strong> optimizations of<strong>NMR</strong> experiments, we have added new functionality to the opensourceSIMPSON simulation software package [54] to allow for efficientcalculations of GRAPE gradients, and comb<strong>in</strong>ations of thesewith conjugated gradient procedures, required for iterative derivationof optimal pulse sequences. A primary source to improvedpulse sequences by optimal <strong>control</strong> takes its orig<strong>in</strong> <strong>in</strong> better compensationtowards artefacts such as <strong>in</strong>homogeneous rf fields, butthe added features to evalulate this have more general <strong>in</strong>terestthan just optimal <strong>control</strong> calculations. The new functionality buildson the framework of the orig<strong>in</strong>al SIMPSON code, which accord<strong>in</strong>glyis not changed and all previous <strong>in</strong>put files and calculations can beconducted unaltered. We note that the present comb<strong>in</strong>ation betweenoptimal <strong>control</strong> and SIMPSON does not consider effects fromrelaxation—as addressed <strong>in</strong> numerous of our references of optimal<strong>control</strong> <strong>in</strong> liquid-state <strong>NMR</strong> <strong>spectroscopy</strong>. We are currently develop<strong>in</strong>ga version of SIMPSON <strong>in</strong>clud<strong>in</strong>g relaxation and optimal<strong>control</strong>.


124 Z. Tošner et al. / Journal of Magnetic Resonance 197 (2009) 120–134Table 1Summary of new features and commands <strong>in</strong> SIMPSON program.Parameters for the par sectionstr<strong>in</strong>g namerfprof_fileSets a user specific str<strong>in</strong>g variable with a value that can be retrieved throughout the <strong>in</strong>put file by declar<strong>in</strong>g$par(name).Name of the file that def<strong>in</strong>es rf field <strong>in</strong>homogeneity distributions for all channels. The file has the structure: Firstl<strong>in</strong>e: hnumber of elements <strong>in</strong> the profilei hnumber of rf channelsi Follow<strong>in</strong>g l<strong>in</strong>es: hscal<strong>in</strong>g for 1st channeli hscal<strong>in</strong>g for2nd channeli...hweight factori Note: (i) The channels are ordered as <strong>in</strong> the command channel. (ii) If thecommand, or a file name, is not given no rf <strong>in</strong>homogeneity is used, (iii) no rf <strong>in</strong>homogeneity is issued for thosechannels <strong>in</strong> the simulation that exceed the def<strong>in</strong>ition <strong>in</strong> the rf profile.oc_tol_cg Exit tolerance on target function (default 10 6 ).oc_tol_ls Exit tolerance dur<strong>in</strong>g l<strong>in</strong>e-search (default 10 3 ).oc_mnbrak_step Initial step size for bracket<strong>in</strong>g m<strong>in</strong>imum dur<strong>in</strong>g l<strong>in</strong>e-search (default 10).oc_max_iter Maximum number of iterations for oc_optimize command (default 1000).oc_cutoff Cut off level for unsuccessful optimization trials (default 0.0).oc_cutoff_iter Number of iterations before cut off is applied to test for unsuccessful optimization trials (default 1000).oc_var_save_iterNumber of iterations after which procedure def<strong>in</strong>ed <strong>in</strong> <strong>in</strong>put file with name given <strong>in</strong> par(oc_var_save_proc) isexecuted; it is ma<strong>in</strong>ly <strong>in</strong>tended to save current rf shape(s) dur<strong>in</strong>g optimization (default 1001).oc_var_save_procProcedure name executed every par(oc_var_save_iter) iterations; e.g., for stor<strong>in</strong>g rf shapes dur<strong>in</strong>goc_optimize (max 64 characters, default is none).oc_cg_m<strong>in</strong>_stepM<strong>in</strong>imal step taken along the search direction, otherwise optimization f<strong>in</strong>ishes (default 1e-3).oc_max_brack_evalMaximum number of tagret function evaluations for bracket<strong>in</strong>g algorithm dur<strong>in</strong>g l<strong>in</strong>e-search; warn<strong>in</strong>g is issuedafterwards and optimization f<strong>in</strong>ishes with possibly non-ideal solution (default 100).oc_max_brent_evalMaximum number of evaluations <strong>in</strong> Brent’s algorithm, then it uses current estimate, l<strong>in</strong>e-search is <strong>in</strong>exact(default 100).oc_verbose Causes extensive output dur<strong>in</strong>g optimization when set to 1 (default 0).Commands for the pulseq sectionpulse_shaped dur rf_shape1 rf_shape2 ...avgham_static dur hamlist euleranglesstore n [from]oc_acq_hermitoc_acq_nonhermitoc_acq_prop NpropCommands for the ma<strong>in</strong> sectionrf_shape load_shape file_namerf_shape list2shape {{ampl phase}n{ampl phase} ...}rf_shape rand_shape max_rf elem rand_elemsave_shape rf_shape file_namelist shape2list rf_shapedesc shape2fid rf_shape [duration] [-xyj-apj-apw]shape2bruker rf_shapefile_name [maxrf]shape2varian rf_shapefile_name [maxrf]elem shape_<strong>in</strong>dex rf_shape idx [-ampl j -phase]rf_shape shape_jo<strong>in</strong> rf_shape1 rf_shape2 ...rf_shape shape_dup rf_shape_orig phase [scale]rf_shape shape_create Nelem [-ampl exprnj -phase expr]Extends the current propagator to <strong>in</strong>clude shaped pulses of duration dur (ls), and shapes determ<strong>in</strong>ed byrf_shape1, rf_shape2 (etc.) for all channels successively. All shapes with<strong>in</strong> one pulse command need to have equalnumber of elements. Duration of each element is determ<strong>in</strong>ed automatically with respect to total duration. If no rfirradiation is needed on any channel, use keyword noth<strong>in</strong>g placed properly on the channel’s position.Extends the current propagator to <strong>in</strong>clude evolution under static Hamiltonian ham for a time period dur (ls). hamis given <strong>in</strong> the form of operators similarly to start_operator and detect_operator, and is <strong>in</strong> frequency units(Hz). Correspond<strong>in</strong>g propagator is created and applied, specified duration is added to <strong>in</strong>ternal time <strong>control</strong>l<strong>in</strong>gvariable.Returns a list with the three Euler angles describ<strong>in</strong>g the orientation of the current crystallite.Stores the current propagator <strong>in</strong> memory slot number n (the same functionality as <strong>in</strong> orig<strong>in</strong>al SIMPSON). If thesecond argument is given, then from is used to def<strong>in</strong>e the propagator. from can be a number specify<strong>in</strong>g matrixmemory slot, the full matrix def<strong>in</strong>ed by list {row row...} where each row is a list of elements be<strong>in</strong>g either re or{re im}, specific matrix elements (elements {{i j}...}), or all elements exclud<strong>in</strong>g specific matrix elements(notelements {{ij}...}). Note that <strong>in</strong>ternal check<strong>in</strong>g of reus<strong>in</strong>g the stored propagator (relevant for simulationswith sp<strong>in</strong>n<strong>in</strong>g samples) is disabled when us<strong>in</strong>g the new propagator feature.<strong>Optimal</strong> <strong>control</strong> related commands replac<strong>in</strong>g normal acquisition <strong>in</strong> pulse sequences. They calculate either targetfunction or gradients (depend<strong>in</strong>g what calls the pulse sequence) for a current crystallite. These commands can beused only once <strong>in</strong> a pulse sequence script, typically at the end. oc_acq_hermit and oc_acq_nonhermit are usedwhen optimiz<strong>in</strong>g transfer between Hermitian and non-Hermitian operators, respectively; oc_acq_prop is usedfor synthesis of desired propagator which is stored (via store command) <strong>in</strong> the memory slot Nprop.Creates <strong>in</strong>ternal representation of a shaped pulse from a file file_name. The file conta<strong>in</strong>s two columns of numbers,the first specifies a particular rf amplitude (<strong>in</strong> Hz), the second is a phase (<strong>in</strong> degrees).Creates <strong>in</strong>ternal representation of a shaped pulse from a list of rf amplitudes ampl (<strong>in</strong> Hz) and phases phase (<strong>in</strong>degrees).Generates <strong>in</strong>ternal representation of a shaped pulse created from rand_elem random numbers equally distributedover the total length of a shape consist<strong>in</strong>g of elem elements. The miss<strong>in</strong>g elements are calculated by spl<strong>in</strong>e<strong>in</strong>terpolation, maximal rf amplitude is limited to max_rf (<strong>in</strong> Hz).Saves the <strong>in</strong>ternal representation of a shaped pulse rf_shape to a text file file_name. The file conta<strong>in</strong>s two columnsof numbers, the first specifies a particular rf amplitude (<strong>in</strong> Hz), the second is a phase (<strong>in</strong> degrees).Converts <strong>in</strong>ternal representation of a shaped pulse rf_shape <strong>in</strong>to Tcl list variable structured as {ampl phase} {amplphase} ..., where ampl is rf amplitude (<strong>in</strong> Hz) and phase is phase (<strong>in</strong> degrees).Converts <strong>in</strong>ternal representation of a shaped pulse to a SIMPSON FID file descriptor. This enables, e.g., plott<strong>in</strong>g ofthe shape us<strong>in</strong>g SIMPLOT. The optional duration is the length of the shape <strong>in</strong> seconds, while the qualifiers -xy,-ap, and -apw direct the FID to conta<strong>in</strong> x=y-phase rf amplitude, amplitude/phase, and amplitude/wrapped-phase(with<strong>in</strong> 0—360 ).Stores shape <strong>in</strong> Bruker shape format. Normalizes maximum rf field strength to the value of 100 <strong>in</strong> the file.Stores shape <strong>in</strong> Varian shape format. Normalizes maximum rf field strength to the value of 1023 <strong>in</strong> the file.Extracts s<strong>in</strong>gle element idx from a shaped pulse <strong>in</strong>ternally represented by rf_shape. If-ampl or -phase is given,then just amplitude or phase is returned, both values otherwise.Creates a new shape by concatenat<strong>in</strong>g previously def<strong>in</strong>ed shapes.Creates a new shape by duplicat<strong>in</strong>g the rf amplitudes <strong>in</strong> rf_shape_orig and <strong>in</strong>creas<strong>in</strong>g phases by phase. Ifscale isgiven the orig<strong>in</strong>al amplitudes are multiplied by this factor.Creates a new shape with Nelem elements with amplitudes and phases calculated accord<strong>in</strong>g to given Tcl mathexpression expr. With<strong>in</strong> expr, the predef<strong>in</strong>ed variable $i can be used to access current element <strong>in</strong>dex, start<strong>in</strong>gfrom one. Expression example: {1000.0*cos(($i-1)/100.0)}. If one or both switches with their expression areomitted, then zero values are used.


126 Z. Tošner et al. / Journal of Magnetic Resonance 197 (2009) 120–134up calculation of the gradients and ma<strong>in</strong>ta<strong>in</strong> them updatedthroughout the optimization <strong>in</strong> the form of an FID. This constructionfacilitates automatic updates, for example, add<strong>in</strong>g up contributionsfrom different powder angles or different loops activatedthrough the optimization exactly <strong>in</strong> the same way as usuallyencountered for an FID <strong>in</strong> a SIMPSON calculation. Typically, thisprocedure only conta<strong>in</strong>s a few l<strong>in</strong>es, which <strong>in</strong> the most basic setupfor optimization of the f<strong>in</strong>al cost alone <strong>in</strong>cludes: (i) def<strong>in</strong>ition of thenumber of FID po<strong>in</strong>ts to the number of variable elements <strong>in</strong> the rfshapes (us<strong>in</strong>g proper value for par(np)), (ii) calculation of the FID(by set f [fsimpson]), and (iii) return of the gradient throughthe FID by return $f. In the case where the runn<strong>in</strong>g cost is <strong>in</strong>cluded,the follow<strong>in</strong>g l<strong>in</strong>e should be executed right after thefsimpson commandoc_grad_add_energy_penalty $f $shape -$lambdawhere lambda corresponds to k <strong>in</strong> Eq. (11) (or as it was used above<strong>in</strong> procedure target_function), and should be launched with anegative sign as it is a penalty.The gradient procedure enables direct access to the gradientsat any po<strong>in</strong>t to facilitate mathematical manipulation of them.Us<strong>in</strong>g the commandoc_grad_shapes $sh1 $sh2 ...it is possible to <strong>control</strong> which pulse shapes are to be optimized and<strong>in</strong> what order the gradients are collected <strong>in</strong> the FID. In that way it isfeasible to ma<strong>in</strong>ta<strong>in</strong> a series of different gradients for differentparts of the pulse sequence (vide <strong>in</strong>fra). As an important asset thisenables straightforward optimization of several elements <strong>in</strong> pulsesequences for which part of the pulse sequence is already optimalor not amenable for optimization. In addition this facilitates optimizationof pulse sequences go<strong>in</strong>g through particular <strong>in</strong>termediatestates, which may be selected us<strong>in</strong>g, e.g., the SIMPSON filtercommand. We note that the gradient procedure is activated automaticallydur<strong>in</strong>g the optimization. In contrast to other Tcl proceduresit can not be launched directly from the Tcl script. If onefor debugg<strong>in</strong>g purposes (or the like) wants to have access to thegradients it can be accomplished us<strong>in</strong>gset fg [oc_evaluate_grad gradient]where fg is a FID conta<strong>in</strong><strong>in</strong>g the gradient. In this particular case,the command oc_grad_shapes has to be <strong>in</strong>cluded <strong>in</strong> the gradientprocedure.the relevant target function or gradients are calculated. These optionsare <strong>in</strong>voked us<strong>in</strong>g one of the new acquisition commands(see also Table 1):oc_acq_hermitoc_acq_nonhermitoc_acq_prop 10These commands can only be used once <strong>in</strong> a pulse sequencescript (typically <strong>in</strong> the end), and effectuate calculation of the <strong>control</strong>field gradients. We note that the command reset should beused with great care (should not be used <strong>in</strong>side an optimized sequence),and the use of filter and evolve commands are prohibitedwhen optimiz<strong>in</strong>g a desired propagator.In the ma<strong>in</strong> section the optimization is activated us<strong>in</strong>g thecommandset tf [oc_optimize $shape1 -m<strong>in</strong> 0 -max 20000n-rmsmax 10000 $shape2 ...]where $shape1, $shape2 are pulse shapes that are to be optimized,possibly with limitations on their maximal and/or m<strong>in</strong>imalamplitudes and/or maximal root-mean-square amplitudes(any or all of the -m<strong>in</strong>, -max and -rmsmax switches can be omitted).The limits on rf amplitudes are supplemented to facilitateoptimization of sequences which can be practically implementedon available experimental equipment, where limitations <strong>in</strong> peakrf amplitude and overall energy dissem<strong>in</strong>ation to the probe isoften an issue (another option to limit rf energy is via a runn<strong>in</strong>gcost).In the present <strong>implementation</strong>, the optimal pulse sequencesare found us<strong>in</strong>g GRAPE [8] <strong>in</strong> comb<strong>in</strong>ation with conjugated gradients[32]. As illustrated <strong>in</strong> Fig. 2, the algorithm starts with evaluat<strong>in</strong>gthe target function for the <strong>in</strong>itial guess (can be a sequenceof random pulses) and calculation of gradient. This gradientdeterm<strong>in</strong>es a direction <strong>in</strong> the multivariate space along which al<strong>in</strong>e search is performed <strong>in</strong> order to determ<strong>in</strong>e the best value ofthe”step size” def<strong>in</strong>ed <strong>in</strong> Eq. (14). The l<strong>in</strong>e search is made <strong>in</strong>two steps, first the optimal value is roughly localized by f<strong>in</strong>d<strong>in</strong>gan <strong>in</strong>terval enclos<strong>in</strong>g it, and secondly, the optimum is ref<strong>in</strong>edus<strong>in</strong>g the Brent method [32]. Subsequently, the new pulse sequenceparameters are accepted and a test for convergence is performed.The next iteration starts with the calculation of the newgradient. We use the approach of Polak and Ribiere to determ<strong>in</strong>ethe new search direction <strong>in</strong> the conjugated gradients method[32].3.6. OptimizationAssembly of the overall optimization requires cooperative action<strong>in</strong> different places of <strong>in</strong>put file, as already addressed above<strong>in</strong> relation to the target_function and gradient procedures.Two other parts also needs to be activated: the pulseq and thema<strong>in</strong> sections conta<strong>in</strong><strong>in</strong>g <strong>in</strong>structions for the specific optimization.Furthermore, more general parameters for the optimizationprocess can be <strong>control</strong>led via commands <strong>in</strong> the par section.The pulse sequence, def<strong>in</strong>ed <strong>in</strong> the pulseq procedure, plays akey role <strong>in</strong> the optimization: it serves calculation of both the targetfunction and the gradient. This is accomplished us<strong>in</strong>g two commands.The first is the pulse_shaped $duration $shape1$shape2 ... command <strong>in</strong>troduced above. Dur<strong>in</strong>g its execution,<strong>in</strong>formation on to which variables the gradients should becalculated is gathered. The second command specifies the type ofoptimization, be<strong>in</strong>g state-to-state transfers between Hermitian ornon-Hermitian operators or optimization of a propagator for whichFig. 2. Block diagram of GRAPE algorithm with conjugated gradients as implemented<strong>in</strong>to the SIMPSON open-source software. The central part is calculation ofthe step size, , taken along the gradient/conjugated gradient direction, dir, <strong>in</strong> eachiteration (c.f. Eq. (14)).


Z. Tošner et al. / Journal of Magnetic Resonance 197 (2009) 120–134 127In the par section of the <strong>in</strong>put file, it is possible to <strong>control</strong> theoptimization process described above through the change of anumber of variables with predef<strong>in</strong>ed values. These parametersare summarized <strong>in</strong> Table 1.3.7. Experimental <strong>implementation</strong>It is beyond the scope of this paper to demonstrate experimental<strong>implementation</strong>s of the optimized <strong>NMR</strong> pulse sequences. Werefer here to the description <strong>in</strong> recent papers address<strong>in</strong>g liquidandsolid-state <strong>NMR</strong> optimal <strong>control</strong> experiments (vide supra). Itshould be emphasized, however, that successful <strong>implementation</strong>requires that: (i) the amplitudes and phases <strong>in</strong> the rf pulse waveformsare represented correctly at the site of the sp<strong>in</strong>s <strong>in</strong> the probe(i.e., it is important that amplifiers, etc., are setup to provide a l<strong>in</strong>earresponse to an amplitude list and that the pulse tim<strong>in</strong>gs arecorrectly implemented. Both may be tested us<strong>in</strong>g an oscilloscope.)and (ii) the pulse sequences optimized to a given overall length isonly used with that length experimentally.4. ExamplesIn this section, we will demonstrate the power of optimal <strong>control</strong><strong>in</strong> <strong>NMR</strong> experiment design, its versatility, as well as some pitfallsone can encounter dur<strong>in</strong>g the optimizations. We present theusage of our optimal <strong>control</strong> <strong>implementation</strong> <strong>in</strong> SIMPSON on severalexamples. The full codes/<strong>in</strong>put files are collected <strong>in</strong> Supplementarymaterial or can be downloaded from the SIMPSONwebpages [64].4.1. Coherence transfer through J coupl<strong>in</strong>gIn our first example, we address a heteronuclear J-coupled twosp<strong>in</strong>-1 system for which the aim is to optimize transfer between2transverse <strong>in</strong>-phase coherences on the two sp<strong>in</strong>s. The transfer isrepresented <strong>in</strong> terms of the Hermitian operators I x ! S x . It mightbe considered an academic example s<strong>in</strong>ce optimal solutions to thisproblem are very well known. The example, however, illustratessome important features related to pulse sequence optimization.We select the total time of the shaped pulses to be T ¼ 1 (withJJ = 140 Hz) and digitize it <strong>in</strong>to 150 equally long steps giv<strong>in</strong>g a pulselength of D t = 47.6 ls on the two rf channels. We assume that bothnuclei are on-resonance (i.e., no chemical shifts are <strong>in</strong>volved) and apriori expect the result to reflect a Hartmann–Hahn matched conditionfor the rf irradiation on the two rf channels. As illustrated <strong>in</strong>Fig. 3, this prediction is fulfilled by the optimal sequence.Before discuss<strong>in</strong>g the details of the result, it is relevant to firstcomment on the <strong>in</strong>put files. For the purpose of illustration we usedtwo variants: case (a), without any constra<strong>in</strong>ts, and case (b), with apenalty on the accumulated rf power (or energy). The sp<strong>in</strong>sys,par, pulseq, and ma<strong>in</strong> sections are common for both simulations:sp<strong>in</strong>sys fchannels 1H 13Cnuclei 1H 13Cjcoupl<strong>in</strong>g 1 2 140 00000gwhere we specifically have chosen proton and carbon nuclei aspartners <strong>in</strong> the heteronuclear sp<strong>in</strong>- 1 system, with the J coupl<strong>in</strong>g2be<strong>in</strong>g 140 Hz.par fsp<strong>in</strong>_rate 0crystal_file alpha0beta0gamma_angles 1start_operator I1xdetect_operator I2xvariable duration 1.0e6/140.0variable NOC 150conjugate_fid falsegIn this section we set up static sample conditions, mimick<strong>in</strong>g liquid-state<strong>NMR</strong> experiments, by sett<strong>in</strong>g the sp<strong>in</strong> rate to 0. We alsodef<strong>in</strong>e the operators <strong>in</strong>volved <strong>in</strong> the transfer and the variablespar(duration) and par(NOC) to specify the duration of theexperiment and the number of elements <strong>in</strong> the shaped pulses,aω rf /2π [kHz]φ [rad]1.510.5π—π0 1 2 3 4 5 6 71 1kHzΦ rms1.510.5π—π0 1 2 3 4 5 6 71 1kHzΦ rms2.521.510.5π—π0 1 2 3 4 5 6 71 1kHzΦ rms2.521.510.5π—π0 1 2 3 4 5 6 71 1kHzΦ rmsbω rf /2π [kHz]φ [rad]54321π—π0 1 2 3 4 5 6 7time [μs]1 3kHzΦ rms0.40.30.20.1π—π0 1 2 3 4 5 6 7time [μs]1 1kHzΦ rms0.20.150.10.05π—π0 1 2 3 4 5 6 7time [μs]1 1kHzΦ rms0.10.080.060.040.02π—π0 1 2 3 4 5 6 7time [μs]1 1kHzΦ rmsFig. 3. Pulse sequence changes observed <strong>in</strong> the course of optimal <strong>control</strong> optimization a pulse sequence for I x ! S x transfer <strong>in</strong> heteronuclear two sp<strong>in</strong>- 1 system with J-2coupl<strong>in</strong>g (J = 140 Hz). Amplitudes and phases are displayed <strong>in</strong> left panels (red and green curves correspond x- and y-phase rf irradiation, respectively), the bar graphs on theright represent the transfer efficiency (normalized f<strong>in</strong>al cost U f<strong>in</strong> ) and root-mean-squared (rms) amplitude of the shapes on the two rf channels. (a) Unrestricted optimizationrequires many iterations to reach Hartmann–Hahn match for ideal coherence transfer, with <strong>in</strong>creas<strong>in</strong>g rms pulse amplitudes. (b) Variant with us<strong>in</strong>g a penalty on the rf energyconverges faster to the unique solution. See text for more details.


128 Z. Tošner et al. / Journal of Magnetic Resonance 197 (2009) 120–134respectively. For optimal <strong>control</strong> calculations <strong>in</strong> SIMPSON, it is crucialto set conjugate_fid to false value <strong>in</strong> order not to disturbthe gradient calculations. For case (b), we <strong>in</strong>clude the rf penalty byadd<strong>in</strong>g l<strong>in</strong>e variable lam 1.0e-5.proc pulseq fg fglobal par rfsh1 rfsh2resetpulse_shaped $par(duration) $rfsh1 $rfsh2oc_acq_hermitgThe pulse sequence consists of two shaped pulses rfsh1 andrfsh2 applied simultaneously on the two channels. The actual values<strong>in</strong> the shapes will be determ<strong>in</strong>ed <strong>in</strong> the ma<strong>in</strong> section and arepassed via the global statement.proc ma<strong>in</strong> fg fglobal par rfsh1 rfsh2set rfsh1 [rand_shape 1500 $par(NOC) 30]set rfsh2 [rand_shape 1000 $par(NOC) 30]set tfopt [oc_optimize $rfsh1 $rfsh2]save_shape $rfsh1 $par(name)_sol_H.datsave_shape $rfsh2 $par(name)_sol_C.datfree_all_shapesgThe ma<strong>in</strong> section <strong>control</strong>s the overall flow of the optimization.First, two rf shapes are generated us<strong>in</strong>g 30 random rf amplitudes(rang<strong>in</strong>g from 0 up to 1500 or 1000 Hz) and <strong>in</strong>terpolated to givepar(NOC) elements <strong>in</strong> each shape. Subsequently, the optimizationis activated us<strong>in</strong>g the command oc_optimize which takes thecurrent rf shapes as the start<strong>in</strong>g po<strong>in</strong>t. Upon term<strong>in</strong>ation, rfsh1and rfsh2 are hold<strong>in</strong>g the result<strong>in</strong>g pulse shapes. These are storedus<strong>in</strong>g the save_shape commands. F<strong>in</strong>ally, the rf shapes are releasedfrom the memory and the program quits.Before execut<strong>in</strong>g the optimization, we need to def<strong>in</strong>e also thetarget_function and gradient sections. They differ slightlyfor case (a) without constra<strong>in</strong>ts and case (b) with rf penalty.# case (a)proc target_function fg fglobal parset par(np) 1set f [fsimpson]set Res [f<strong>in</strong>dex $f 1 -re]funload $freturn [format "%.20f" $Res]g# case (b)proc target_function fg fglobal par rfsh1 rfsh2set par(np) 1set f [fsimpson]set eff [f<strong>in</strong>dex $f 1 -re]funload $fset en1 [shape_energy $rfsh1 $par(duration)]set en2 [shape_energy $rfsh2 $par(duration)]set Res [expr $eff - $par(lam)* ($en1 + $en2)]return [format "%.20f" $Res]gHere we set number of po<strong>in</strong>ts <strong>in</strong> the FID to 1 and read just thereal part of the calculated FID conta<strong>in</strong><strong>in</strong>g the f<strong>in</strong>al cost as providedthrough the oc_acq_hermit command <strong>in</strong> the pulseq section.To complete the code, we need to provide def<strong>in</strong>itions for thecalculations of gradients. We note that the length of the new FIDwith gradient values needs to be set to the total number of pulseelements that we wish to optimize. That is, <strong>in</strong> our present case,the sum of <strong>in</strong>dividual pulse shape elements (or equivalently twicepar(NOC)).# case (a)proc gradient {} {global parset par(np) [expr 2*$par(NOC)]set f [fsimpson]return $f}# case (b)proc gradient {} {global par rfsh1 rfsh2set par(np) [expr 2*$par(NOC)]]set f [fsimpson]oc_grad_add_energy_penalty $f $rfsh1n-$par(lam) $rfsh2 -$par(lam)return $f}where the oc_grad_add_energy_penalty command <strong>in</strong> case (b)corrects the gradients to take <strong>in</strong>to account the runn<strong>in</strong>g costpenalty.The entire code is stored <strong>in</strong> a file, e.g., example.<strong>in</strong>, and can beexecuted by SIMPSON us<strong>in</strong>g the command> simpson example.<strong>in</strong>A typical output from the program is:Argument 1: shape slot 0, m<strong>in</strong> = 0, max = 1e + 06Argument 2: shape slot 1, m<strong>in</strong> = 0, max = 1e + 06Number of variables is 300Global tolerance on target function is 1e-06Maximal number of iterations is 1000Optimization is term<strong>in</strong>ated after 1000 iterations iftarget function is not higher than 0Every 1001 iterations procedure’none’ (for stor<strong>in</strong>gvariables) is executedM<strong>in</strong>imal step size along conjugated gradient is 0.001Tolerance for l<strong>in</strong>e-search (Brent) is 0.001L<strong>in</strong>e-search will term<strong>in</strong>ate after reach<strong>in</strong>g 100evaluationsInitial step for bracket<strong>in</strong>g m<strong>in</strong>imum is 10Bracket<strong>in</strong>g will fail after conduct<strong>in</strong>g 100evaluationsInitial target function: 0.0027585696Iter 1: tf = 0.0870565691 (step = 2285.18)Iter 2: tf = 0.1550790844 (step = 306.365)...Iter 643: tf=0.9988834753 (step=90.1747)Done by reach<strong>in</strong>g target function tolerance limit.This output provides a summary of the parameters <strong>control</strong>l<strong>in</strong>gthe optimization process (<strong>in</strong> the present case default values areused; see Table 1 for a complete list of parameters and <strong>in</strong>formationon how to change them) followed by progress of the target function(tf) throughout the iterations (the value <strong>in</strong> parenthesis <strong>in</strong>dicatesthe size of the step taken along the search direction; amore detailed progress report can be obta<strong>in</strong>ed by sett<strong>in</strong>g thepar(oc_verbose) flag).


Z. Tošner et al. / Journal of Magnetic Resonance 197 (2009) 120–134 129In case (a), the theoretical maximum value for the target function(i.e., the f<strong>in</strong>al cost) is 1.0, <strong>in</strong>dicat<strong>in</strong>g that the coherence wastransferred with 100% efficiency <strong>in</strong> full agreement with a prioriknowledge, e.g., from unitary bounds of sp<strong>in</strong> dynamics. This objectiveis met after many iterations, depend<strong>in</strong>g on <strong>in</strong>itial guess. As it isdemonstrated <strong>in</strong> Fig. 3a, <strong>in</strong>itially different pulse sequences tend toapproach each other <strong>in</strong> order to establish the Hartmann–Hahnmatch between the rf fields on the two channels. In this particularcase, the pulse amplitudes are not limited and can easily rise. Theresult<strong>in</strong>g pulse sequences are actually demand<strong>in</strong>g more rf powerthan the <strong>in</strong>itial ones. If we repeat the calculation with different <strong>in</strong>itialguesses, different solutions will be found. The ensemble of possiblesolutions is <strong>in</strong>f<strong>in</strong>ite, with the only common feature that thoseobserved all reached Hartmann–Hahn match between the rf fieldson the two rf channels.In case (b), we wish to f<strong>in</strong>d among the many solutions onethat requires m<strong>in</strong>imal rf power. To accomplish this, a penaltyon the accumulated rf energy is <strong>in</strong>cluded <strong>in</strong> the cost function.The illustrative result is presented <strong>in</strong> Fig. 3b. We observe a fasterconvergence (perhaps an attribute of this specific problem) to aunique solution, <strong>in</strong>dependent of the <strong>in</strong>itial guesses (this is an<strong>in</strong>dication of a global optimum, although our approach doesnot conta<strong>in</strong> a guarantee this is reached). As the iterations proceed,the rf pulse amplitudes represented as root-mean-square(rms) amplitudes are decreas<strong>in</strong>g while the transfer efficiencyrises. Some care needs to be taken if one uses rf penalty. Atoo large scal<strong>in</strong>g factor k may lead to compromises on the efficiency(i.e., the value of the f<strong>in</strong>al cost) while too small k doesnot impose real rf restrictions. The presented case, however, isnot particularly sensitive to the exact value and all our optimizationsconverged to the solution presented <strong>in</strong> Fig. 3b. It should benoted that this pulse shape is superior to an alternative constant-amplitudeHartmann–Hahn match pulse sequence <strong>in</strong> termsof accumulated rf power. The former sequence is represented byan rms rf field amplitude of 52 Hz and an effective HamiltonianH ¼ pJðI z S z þ I y S y Þ while the latter would require a pulse rmsamplitude of at least 60 Hz to provide transfer through the effectiveHamiltonian H ¼ pJ½2I z S z þ ffiffi 3ðI 4 x þ S xpÞŠ.4.2. Broadband <strong>in</strong>version pulses for liquid-state <strong>NMR</strong>For successful experimental <strong>implementation</strong>s, it is obviouslynecessary to design robust pulse sequences that are capable ofachiev<strong>in</strong>g the goals not only for a s<strong>in</strong>gle specific set of sp<strong>in</strong> systemparameters, as used <strong>in</strong> our first example. Accord<strong>in</strong>gly, our nextexample illustrates how one can set up optimization of state-tostatetransfers for a range of conditions. We select broadband<strong>in</strong>version pulses for liquid-state <strong>NMR</strong> applications as an example,for which we demonstrate possible problems and efficient solutions.We note that the optimal <strong>control</strong> problem of broadband excitationand <strong>in</strong>version pulses has previously been addressed byKobzar et al. [65,66], and we take <strong>in</strong>spiration from their work <strong>in</strong>the present example.Our goal is to f<strong>in</strong>d a shaped rf pulse that <strong>in</strong>verts the longitud<strong>in</strong>alpolarization completely (I z ! I z ) regardless of the rf offsetwith<strong>in</strong> a range of 50 kHz while keep<strong>in</strong>g the accumulated rfpower reasonably low. Extrapolat<strong>in</strong>g the results of Kobzar et al.[65] to estimate a m<strong>in</strong>imal pulse length for the given offset rangeand extend<strong>in</strong>g this to a slightly longer pulse T = 600 ls, divided<strong>in</strong>to 600 steps Dt =1ls), we provide some flexibility for the pulseto reach an optimum for a broad range of conditions. In thisexample, the sp<strong>in</strong>sys section <strong>in</strong>troduces just one nucleus withzero chemical shift, while the pulseq and ma<strong>in</strong> sections areidentical to the previous example with the exception that we dealwith a s<strong>in</strong>gle-rf-channel experiment. In order to optimize thepulse for many offsets simultaneously, we need to modify targetfunction and the gradient calculations to <strong>in</strong>clude summationloops accommodat<strong>in</strong>g the relevant range of chemical shift values(equivalent to offsets):proc target_function {} {global par limsset par(np) 1set Res 0.0foreach shft $lims {set f [fsimpson [list [list shift_1_iso $shft ]]]set dum [f<strong>in</strong>dex $f 1 -re]set Res [expr $Res+$dum]funload $f}return [format "%.20f" $Res]}proc gradient {} {global par limsset par(np) $par(NOC)set f [fcreate -np $par(NOC) -sw $par(sw)]foreach shft $lims {set g [fsimpson [list [list shift_1_iso $shft ]]]fadd $f $gfunload $g}return $f}In this <strong>implementation</strong>, the Tcl list variable lims holds a set ofoffset values spann<strong>in</strong>g the desired range of ±(50 kHz. The commandfsimpson, which <strong>in</strong>vokes calculation of either the f<strong>in</strong>al costor the gradients, is executed several times with different sp<strong>in</strong> systemparameter shift_1_iso def<strong>in</strong><strong>in</strong>g the chemical shift of the nucleus(cf., Ref. [54]; <strong>in</strong> this way any sp<strong>in</strong> system parameter can bevaried. An alternative <strong>implementation</strong> could make use of the offsetcommand <strong>in</strong>stead). The results for the various chemical shiftsare added as numbers <strong>in</strong> case of the target function, or as FIDs <strong>in</strong>case of the gradients us<strong>in</strong>g standard Tcl or orig<strong>in</strong>al SIMPSON commands[54].Our first calculation <strong>in</strong>volves 11 offset values separated by10 kHz. The result<strong>in</strong>g pulse sequence is presented <strong>in</strong> Fig. 4aalong with its <strong>in</strong>version profile. It is evident that although thetarget function reaches its global extremum the result is notpractically useful. This is despite the fact that the optimal <strong>control</strong>optimization provided us with a perfect and exact answerto our quest: optimized <strong>in</strong>version for a specific set of offsets.In between the specified offset po<strong>in</strong>ts, however, the effect isunpredictable. The obvious remedy is to use a more dense setof offset values. Accord<strong>in</strong>gly, <strong>in</strong> a second attempt we use 101offsets separated by 1 kHz which leads to a satisfactory resultas illustrated <strong>in</strong> Fig. 4b. Although it is not a problem <strong>in</strong> this particularcase, we note that optimizations with dense parametervariation may become quite time demand<strong>in</strong>g. In such cases, itis advisable to <strong>in</strong>crease the number of check po<strong>in</strong>ts gradually, alwaystak<strong>in</strong>g the result of the previous optimization as the <strong>in</strong>itialguess to the next stage. The average <strong>in</strong>version efficiency over thewhole ±50 kHz range is excellent (amounts to 0.9997) and rf rmsamplitude is about 13 kHz with peaks values <strong>in</strong> the range of30 kHz. The latter may not be acceptable with respect to hardwareor sample heat<strong>in</strong>g, imply<strong>in</strong>g that we conducted one moreoptimization with an upper limit of 10 kHz for the rf amplitudes.This requires only a m<strong>in</strong>or modification of the SIMPSON code <strong>in</strong>the ma<strong>in</strong> section:set tf [oc_optimize $rfsh -max 10000]


130 Z. Tošner et al. / Journal of Magnetic Resonance 197 (2009) 120–134acω rf /2π [kHz]φ [rad]ω rf /2π [kHz]φ [rad]8642π—π0 200 400 600time [μs]10—1—60 —30 0 30 60offset [kHz]108642π—π0 200 400 600time [μs]10—1—60 —30 0 30 60offset [kHz]The result<strong>in</strong>g pulse sequence, shown <strong>in</strong> Fig. 4c, demonstratesthat a fairly good <strong>in</strong>version with an average efficiency of 0.977can be obta<strong>in</strong>ed under these limit<strong>in</strong>g conditions. Follow<strong>in</strong>g this, anatural question would be: How far can we squeeze the rf powerdemands, while ma<strong>in</strong>ta<strong>in</strong><strong>in</strong>g an acceptable degree of <strong>in</strong>version?Some h<strong>in</strong>t is provided <strong>in</strong> our f<strong>in</strong>al demonstration <strong>in</strong> this sectionwhere we <strong>in</strong>clude rf penalty <strong>in</strong> the optimization. The result isshown <strong>in</strong> Fig. 4d. With a scal<strong>in</strong>g factor of k ¼ 10 5 we are forcedto make a trade off between efficiency and rf power: the rmsamplitude is below 7.5 kHz but the average <strong>in</strong>version efficiencyis only 0.912. On basis of all optimizations, we estimate that therf limit is somewhere around 10 kHz for the present offset andpulse length.4.3. Broadband refocus<strong>in</strong>g pulsesThe rf pulses developed <strong>in</strong> the previous section suffer from animportant limitation: they can be used only to <strong>in</strong>vert longitud<strong>in</strong>alpolarization I z ! I z , while the effect on the other componentsI x and I y is undef<strong>in</strong>ed. Accord<strong>in</strong>gly a ref<strong>in</strong>ed goal couldbe to f<strong>in</strong>d a true broadband refocus<strong>in</strong>g pulse that, for example,acts as an ideal x-phase p-pulse. This implies that we wishsimultaneously to accomplish the transfers I x ! I x , I y ! I y ,and I z ! I z . One can readily implement such an optimizationby <strong>in</strong>clud<strong>in</strong>g other summation loops for the two additionaltransfers to the code of previous example. However, we take anotherapproach <strong>in</strong>volv<strong>in</strong>g the synthesis of a p x -pulse propagatorof the form U D ¼ expf ipI x g. In this manner, we demonstratebdω rf /2π [kHz]φ [rad]ω rf /2π [kHz]φ [rad]302010π—π0 200 400 600time [μs]10—1—60 —30 0 30 60offset [kHz]2015105π—π0 200 400 600time [μs]10—1—60 —30 0 30 60offset [kHz]Fig. 4. <strong>Optimal</strong> <strong>control</strong> design of broadband <strong>in</strong>version pulses with a bandwidth of100 kHz. The upper panels show the result<strong>in</strong>g pulse sequences (amplitude andphase), while the lower panels exam<strong>in</strong>e their effective I z <strong>in</strong>version profile. (a) Good<strong>in</strong>version is achieved only for the limited set of conditions (i.e., the 11 chemicalshifts) used dur<strong>in</strong>g optimization. (b) Perfect results can be obta<strong>in</strong>ed when the set ofconditions is enlarged. (c) A reasonably good pulse sequence can also be foundwhen the maximal rf amplitude is limited to 10 kHz. (d) Optimization with penaltyon the accumulated rf energy provides a pulse with lower rf power demands butmay result <strong>in</strong> lower efficiency.another important category of optimal <strong>control</strong> <strong>implementation</strong>s<strong>in</strong> SIMPSON.The optimization of a state-to-state transfer may readily betransformed <strong>in</strong>to a propagator optimization simply by modify<strong>in</strong>gthe pulseq section. In the case it can be coded as follows:proc pulseq {} {global par rfshresetavgham_static 0.5e6 I1xstore 10resetpulse_shaped $par(duration) $rfshoc_acq_prop 10}The pulseq now conta<strong>in</strong>s two parts. First, the desired propagatoris prepared for a given sp<strong>in</strong> system us<strong>in</strong>g the command avgham_static.Its first argument def<strong>in</strong>es the overall time evolution<strong>in</strong>terval (0.5 s) dur<strong>in</strong>g which the effective HamiltonianH eff ¼ 2pmI x (with m = 1 Hz) is active. The propagator is stored <strong>in</strong>the memory slot number 10. Second, the propagator represent<strong>in</strong>gthe effect of the shaped pulse is created and its similarity withthe desired one is calculated us<strong>in</strong>g the command oc_acq_prop(accord<strong>in</strong>g to Eq. (10)). Please note that the reset command isneeded to separate the two parts of the code.It turns out that calculation of broadband refocus<strong>in</strong>g pulses isnot straightforward with respect to sett<strong>in</strong>gs of the offset range,the duration of the pulse, and the maximal rf amplitude. Here wepresent our prelim<strong>in</strong>ary results for a 200 ls long pulse work<strong>in</strong>gwith<strong>in</strong> the offset range 12.5 kHz with the maximum rf amplitudelimited to 15 kHz. A detailed study devoted to this problem will bepresented elsewhere. The optimizations converged to a shapeshown <strong>in</strong> Fig. 5a. The performance of the pulse was verified by calculat<strong>in</strong>gits effect on the three Cartesian operators, as illustrated <strong>in</strong>Fig. 5b. It is apparent that I x is left unperturbed with the f<strong>in</strong>al valueof 0.998 (averaged over the desired offset range), while I y and I z are<strong>in</strong>verted to average values of 0.997 and 0.998, respectively.4.4. Application to coherence transfer <strong>in</strong> solid-state <strong>NMR</strong>In the previous examples, we have demonstrated that optimal<strong>control</strong> can provide proper solutions not only for a s<strong>in</strong>gle set of sp<strong>in</strong>system parameters but also for a range of offsets. The next challeng<strong>in</strong>gtask is to use optimal <strong>control</strong> <strong>in</strong> <strong>NMR</strong> of rotat<strong>in</strong>g solids,impos<strong>in</strong>g periodical variations to <strong>in</strong>ternal Hamiltonians as wellas a wide distribution of Hamiltonians due to anisotropic nuclearsp<strong>in</strong> <strong>in</strong>teractions. In solid-state <strong>NMR</strong> the anisotropy of the Hamiltonianadds complexity to pulse sequence design if the goal is toaω rf /2π [kHz]φ [rad]15105π–π0 50 100 150 200time [μs]bI x→ I xI y→ I y10 I z→ I z–1–12 0 12offset [kHz]Fig. 5. Optimization of a broadband refocus<strong>in</strong>g pulse provid<strong>in</strong>g an effectivepropagator expð ipI xÞ extend<strong>in</strong>g uniformly over an offset bandwidth of 25 kHz.(a) The pulse shape (amplitude and phase). (b) Effects of the pulse on the Cartesianoperators I x, I y, and I z illustrat<strong>in</strong>g a performance correspond<strong>in</strong>g to an uniformunitary p rotation around x axis as required.


Z. Tošner et al. / Journal of Magnetic Resonance 197 (2009) 120–134 131br<strong>in</strong>g all ‘‘crystallites” to the same end<strong>in</strong>g po<strong>in</strong>t <strong>in</strong> terms of a f<strong>in</strong>alstate or a desired effective Hamiltonian. Unlike liquid-state<strong>NMR</strong> parameter variations, the spread <strong>in</strong> sizes for fundamentalcoupl<strong>in</strong>gs used for, e.g., coherence transfer through dipole–dipole<strong>in</strong>teractions spans from 0 to a given maximum value determ<strong>in</strong>edby the <strong>in</strong>ternuclear distance. As so it appears evident that optimal<strong>control</strong> <strong>in</strong> comb<strong>in</strong>ation with the SIMPSON simulation programwould be of <strong>in</strong>terest as a new way to design efficientexperiments us<strong>in</strong>g more experimental degrees of freedom tocope with the challenges of anisotropic nuclear sp<strong>in</strong> <strong>in</strong>teractionsand sample rotation. This applies not least <strong>in</strong> cases where the<strong>in</strong>terest is to design evolution under Hamiltonians that doesnot match the typical zero- and double-quantum operators typicalfor the vast majority of dipolar recoupl<strong>in</strong>g experiments. Insuch cases analytical treatment becomes exceed<strong>in</strong>gly difficult[17].With reference to previous accounts on optimal <strong>control</strong> <strong>in</strong> solidstate<strong>NMR</strong> [14–20], we here illustrate the pr<strong>in</strong>ciples for one simplecase: I x ! S x transfer of coherence from one ensemble of sp<strong>in</strong>s toanother <strong>in</strong> a powder sample through dipole–dipole coupl<strong>in</strong>g underfast sample sp<strong>in</strong>n<strong>in</strong>g conditions and <strong>in</strong> presence of variations <strong>in</strong>isotropic as well as anisotropic nuclear sp<strong>in</strong> <strong>in</strong>teractions. Our objectwill be a typical 13 C– 15 N sp<strong>in</strong>-pair <strong>in</strong> a peptide bond of a solidprote<strong>in</strong>. This calculation closely follows the work of Kehlet et al.[19] where novel sequences for nitrogen-to-carbon coherencetransfer <strong>in</strong> NCO and NCA experiments were developed us<strong>in</strong>g optimal<strong>control</strong>.For solid-state <strong>NMR</strong> applications, we need to <strong>in</strong>troduce anisotropicnuclear sp<strong>in</strong> <strong>in</strong>teractions through the parameters <strong>in</strong> thesp<strong>in</strong>sys section, as exemplified byshift 1 0 99p 0.19 -90 -90 -17shift 2 0 -76p 0.90 0 0 9dipole 1 2 1176 0 90 57where the shift parameter uses the entries nucleus, isotropic shift,anisotropic shift, asymmetry parameter, and three Euler anglesdef<strong>in</strong><strong>in</strong>g the orientation of the shield<strong>in</strong>g tensor relative to a molecularframe. Correspond<strong>in</strong>gly, the dipole–dipole coupl<strong>in</strong>g is def<strong>in</strong>edthrough the two nuclei, the dipolar coupl<strong>in</strong>g constant, and threeEuler angles. Details can be found <strong>in</strong> Ref. [54].In the par section, we add the follow<strong>in</strong>g entriessp<strong>in</strong>_rate 12000crystal_file rep144gamma_angles 10rfprof_file lorentz5pto specify the sample sp<strong>in</strong>n<strong>in</strong>g frequency to 12 kHz, that powderaverag<strong>in</strong>g is performed with 144 REPULSION [67] a, b crystalliteangles and 10 c angles. In this specific case a 5% Lorentzian rf <strong>in</strong>homogeneityprofile is <strong>in</strong>voked. We note throughout the optimal <strong>control</strong>sequences the use of fast symmetry-based propagationmethods such as c-COMPUTE [68] should generally be avoided orthey should be used with great care due to lack of symmetry <strong>in</strong>OC pulse sequences. This implies that the method command takesits default value direct (not <strong>in</strong>vok<strong>in</strong>g special symmetry propertiesto speed up calculations; and accord<strong>in</strong>gly not listed above)as described <strong>in</strong> more detail <strong>in</strong> Ref. [54].The next example attempts to answer the question what is themaximum efficiency, as a function of pulse sequence duration. Theoptimizations were conducted repeatedly with different numberof elements <strong>in</strong> shaped pulses applied on the 15 N and 13 C rf channelsand different sequences were obta<strong>in</strong>ed for each duration.The overall trend of maximal efficiency is shown <strong>in</strong> Fig. 6a clearlyillustrat<strong>in</strong>g that the transfer efficiency may monotonically <strong>in</strong>creasedtowards 100% (not shown) by <strong>in</strong>creas<strong>in</strong>g the length ofthe pulse sequence. It may be formulated that optimal <strong>control</strong> <strong>in</strong>this sense spans the gap between typical fast c-encoded coherencetransfer [44,69] and the somewhat slower coherence transfer byadiabatic methods [70] while typically keep<strong>in</strong>g the rf fieldconsumption considerably lower than any of these methods[14,19,33].In practice, it is desirable to conduct coherence transfer apply<strong>in</strong>gfor specific chemical shift ranges for the <strong>in</strong>itial and target sp<strong>in</strong>srather than produce sequences that are either too narrow-bandedor too broad-banded. The latter may cause transfer to undesiredsp<strong>in</strong>s, thereby reduc<strong>in</strong>g the overall transfer efficiency or render<strong>in</strong>gspectral <strong>in</strong>terpretation ambiguous. Furthermore, excessivelybroadbanded pulse sequences are often more demand<strong>in</strong>g with respectto consumed rf power, and accord<strong>in</strong>gly more risky with respectto sample heat<strong>in</strong>g for lossy samples. Address<strong>in</strong>g thepopular ‘‘double cross polarization experiment” (DCP) from Schaeferand coworkers [69] the offset dependent excitation profile maybe altered us<strong>in</strong>g ramped rf irradiation [71] or more advancedamplitude and phase-modulated rf irradiation schemes as proposedby Bjerr<strong>in</strong>g et al. [72–74]. In addition to the rf <strong>in</strong>homogeneitycompensation, already <strong>in</strong>troduced above, the optimization overa specific offset ranges correspond<strong>in</strong>g, e.g., to NCA and NCO transfers,may readily be accomplished by <strong>in</strong>troduc<strong>in</strong>g the appropriateoffset ranges <strong>in</strong> the target_function and gradient sectionsas discussed above <strong>in</strong> the context of broadband rf pulses andaccomplished for the specific case of a NCO transfer <strong>in</strong> the Supplementarymaterial. The result<strong>in</strong>g pulse sequence provides an rf<strong>in</strong>homogeneity profile as illustrated <strong>in</strong> Fig. 6b (contour plot calcu-a b cEfficiency10.80.60.40.200 1 2 3duration [ms]κ(13C)1.21.110.90.60.80.8 0.9 1 1.1 1.2κ(15N)13C offset [kHz]420—2—40.6—4 —2 0 2 415N offset [kHz]Fig. 6. Results of optimal <strong>control</strong> design of pulse sequences for 15 N ? 13 C (carbonyl) coherence transfer between directly bonded nuclei <strong>in</strong> a prote<strong>in</strong> backbone, assum<strong>in</strong>g asolid powder sample subjected to magic-angle-sp<strong>in</strong>n<strong>in</strong>g with a frequency of 12 kHz at a 16.5 T static magnetic field. (a) Explor<strong>in</strong>g the limits for the achievable transferefficiency us<strong>in</strong>g ideal experimental conditions; several calculations were started for each pulse sequence duration and the best transfer efficiency is displayed. (b) Inspectionof the robustness toward rf <strong>in</strong>homogeneity; the optimization assumed a 2.4 ms duration of the pulse sequence and rf profile approximated by Lorentzian shape with 5% halfwidth,as demonstrated by shaded areas <strong>in</strong> the graph. (c) The same pulse sequence was also optimized for a given spread <strong>in</strong> resonance offsets (shaded area) and its sensitivitytowards this parameter is presented.


132 Z. Tošner et al. / Journal of Magnetic Resonance 197 (2009) 120–134lated without rf <strong>in</strong>homogeneity <strong>in</strong>volved us<strong>in</strong>g different scal<strong>in</strong>gfactors on the rf field strengths used on the two rf channels) anda 13 C, 15 N offset profile as illustrated <strong>in</strong> Fig. 6c.4.5. Synthesis of quantum-gate propagatorsIn a different context, the optimal <strong>control</strong> procedures implemented<strong>in</strong> SIMPSON also provides a perfect tool for develop<strong>in</strong>gpractical pulse sequences for quantum <strong>in</strong>formation processors(QIP) based on <strong>NMR</strong> <strong>spectroscopy</strong>. QIP requires selective operationstraditionally executed us<strong>in</strong>g long, soft rf pulses that <strong>in</strong>turn <strong>in</strong>troduces problems of decoherence and unwanted <strong>in</strong>terferencewhen applied simultaneously on different sp<strong>in</strong>s, spoil<strong>in</strong>gthe desired action. Recently, <strong>in</strong> the area of QIP, the so calledstrongly modulat<strong>in</strong>g pulses (SMP), <strong>in</strong> the context of <strong>NMR</strong> <strong>spectroscopy</strong>known for many years as composite pulses, were proposedto tackle these difficulties [75]. This was done byoptimiz<strong>in</strong>g a few parameters of the composite pulses provid<strong>in</strong>gthe desired quantum gate propagator, <strong>in</strong> the full analogy to Eq.(10). <strong>Optimal</strong> values for amplitudes, phases, frequencies anddurations of several element pulses were calculated us<strong>in</strong>g theSimplex non-l<strong>in</strong>ear optimization method. The approach basedon optimal <strong>control</strong> is more appeal<strong>in</strong>g due to its ability to treathundreds-to-thousands of variables effectively and fast. Thestraightforward establishment of optimal <strong>control</strong> SIMPSON calculationsopens the possibilities to prepare high fidelity quantumgates tailored precisely for a given molecule and tackl<strong>in</strong>gspecific experimental issues like rf <strong>in</strong>homogeneity. Also, applicationsof QIP us<strong>in</strong>g solid-state <strong>NMR</strong> are readily and immediatelyavailable.ω rf /2π [kHz]φ [rad]ω rf /2π [kHz]φ [rad]ω rf /2π [kHz]2015105π—π0 10 20 30 40 50time [μs]2015105π—π0 10 20 30 40time [μs]2015105—π0 10 20 30 40time [μs]Fig. 7. Optimization of total propagators to implement several quantum operationson 23 Na nuclei <strong>in</strong> a crystal with effective quadrupolar coupl<strong>in</strong>g constantx Q =2p ¼ 84 kHz. The propagators, given <strong>in</strong> terms of their matrix elements, andcorrespond<strong>in</strong>g shaped pulses are shown. The durations of the shaped pulses aresubstantially shorter than those presented <strong>in</strong> Ref. [76], obta<strong>in</strong>ed us<strong>in</strong>g a so-calledstrongly modulat<strong>in</strong>g pulses optimization procedure.φ [rad]πThe paper of Fortunato et al. [75] addresses optimization ofsp<strong>in</strong> selective pulses, or gates, that allow arbitrary rotations ofeach sp<strong>in</strong> around <strong>in</strong>dependent s<strong>in</strong>gle-sp<strong>in</strong> axes, while refocus<strong>in</strong>gthe <strong>in</strong>ternal evolution. The durations of the result<strong>in</strong>g high-powerSMP are decreased by almost an order of magnitude comparedto previous soft rf pulses, thereby significantly reduc<strong>in</strong>g the effectsfrom relaxation. This work is essentially equivalent to ourexample with refocus<strong>in</strong>g pulse, just on a more complicated sp<strong>in</strong>system and without consideration of a wide offset range. For ourpresent demonstration, we choose another problem that wastreated by Kampermann and Veeman [76] where a s<strong>in</strong>gle SMPwas optimized to provide a whole quantum algorithm at once.The authors consider 23 Na nuclei (sp<strong>in</strong> I ¼ 3 ) <strong>in</strong> a s<strong>in</strong>gle crystal2of NaNO 3 oriented <strong>in</strong> such a way that the effectuve quadrupolarcoupl<strong>in</strong>g constant was x Q =2p ¼ 84 kHz. Several SMP’s wereoptimized for different quantum gates and we repeat their calculationjust for the quantum Fourier transform (QFT), Grover, andDeutsch operations. The correspond<strong>in</strong>g propagators are explicitlydescribed <strong>in</strong> the paper by matrix elements and are reproducedhere <strong>in</strong> Fig. 7. We also make an attempt to f<strong>in</strong>d shaped pulseswith m<strong>in</strong>imal durations.After provid<strong>in</strong>g the relevant sp<strong>in</strong> system parameters <strong>in</strong> theSIMPSON <strong>in</strong>put file, we need to modify the pulseq section to setup desired propagator. For this purpose, we use the new functionalityof the store command that enables stor<strong>in</strong>g a propagator describedby matrix elements. We <strong>in</strong>struct the program to repeatoptimizations with the shape duration decreased <strong>in</strong> steps of 1 ls(and consequently lowered number of element pulses) untill thedesired propagator is reproduced with a fidelity better than0.999 (equivalent to the f<strong>in</strong>al cost def<strong>in</strong>ed <strong>in</strong> Eq. (10) normalizedby matrix dimension). Compress<strong>in</strong>g the total evolution time obviouslymay lead to an <strong>in</strong>crease <strong>in</strong> the rf power demands and thereforewe set upper limit on rf pulse amplitudes to 20 kHz. This valuewas chosen to facilitate comparison with the results of Kampermannand Veeman [76], whose QFT pulse sequence used an essentiallyconstant rf amplitude of 19 kHz. Our results, presented <strong>in</strong>Fig. 7, demonstrates substantially decreased m<strong>in</strong>imal durations ofthe shaped rf pulses while ma<strong>in</strong>ta<strong>in</strong><strong>in</strong>g the same fidelity as <strong>in</strong>the orig<strong>in</strong>al work. Our sequences implement QFT, Grover, and Deutschoperations with<strong>in</strong> 52, 44, and 47 ls, respectively, which comparesfavourably with the durations of 89.6, 94.8, and 55.1 ls givenby Kampermann and Veeman [76]. We obta<strong>in</strong>ed these superiortim<strong>in</strong>gs even without us<strong>in</strong>g temporal variables explicitly, whichis <strong>in</strong> direct contrast to a SMP optimization strategy (duration ofeach element is variable).5. ConclusionsIn conclusion, we have presented the <strong>implementation</strong> of optimal<strong>control</strong> procedures <strong>in</strong>to the SIMPSON open source software.The result<strong>in</strong>g tool has been demonstrated useful for experimentdesign <strong>in</strong> various cases of relevance for liquid- and solid-state<strong>NMR</strong> <strong>spectroscopy</strong>. Obviously, the range of applications is muchwider, <strong>in</strong>clud<strong>in</strong>g magnetic resonance imag<strong>in</strong>g and more exoticcomb<strong>in</strong>ations between nuclear magnetic resonance and otherspectroscopies. The present paper serves as a manual to the optimal<strong>control</strong> conta<strong>in</strong><strong>in</strong>g SIMPSON software. We anticipate that thistool will f<strong>in</strong>d widespread application <strong>in</strong> the <strong>NMR</strong> community as ameans to design custom-made pulse sequences for a wide rangeof applications. This will hopefully lead to a new generation ofoptimal <strong>NMR</strong> experiments to be used over the full range of <strong>NMR</strong>discipl<strong>in</strong>es known so far. In addition, the tool may facilitate studiesof more fundamental character, <strong>in</strong>clud<strong>in</strong>g determ<strong>in</strong>ation of theoreticalmaximum values for transformation between sp<strong>in</strong> operatorsand new <strong>in</strong>spiration to analytical design strategies reach<strong>in</strong>gthese.


Z. Tošner et al. / Journal of Magnetic Resonance 197 (2009) 120–134 133AcknowledgmentsWe acknowledge support from the Danish National ResearchFoundation, the Danish National Advanced Technology Foundation,the Danish Natural Science Research Foundation, and Carlsbergfondet.Z.T. acknowledges the support from the Czech Science Foundation,Grant No. 202/07/P213. S.J.G. acknowledges support from theEuropean <strong>in</strong>tegrated programs Bio-DNP and QAP, from the DFG (GI203/6-1), SFB 631, and the Fonds der Chemischen Industrie. Wethank Dr. T. Reiss for constructive suggestions on the optimal <strong>control</strong>procedure <strong>in</strong> earlier stages of the project, as well as M. Bjerr<strong>in</strong>g,A.B. Nielsen, J.Ø. Hansen, M.K. Sørensen, and L.A. Straasøe for constructivecomments throughout the development of the softwareand experimental test<strong>in</strong>g of pulse sequences <strong>in</strong> differentapplications.Appendix A. Supplementary dataSupplementary data associated with this article can be found, <strong>in</strong>the onl<strong>in</strong>e version, at doi:10.1016/j.jmr.2008.11.020.References[1] L. Pontryag<strong>in</strong>, B. Boltyanskii, R. Gamkrelidze, E. Mishchenko, The mathematicaltheory of optimal processes, Wiley-Interscience, New York, 1962.[2] A. Bryson Jr., Y.-C. Ho, Applied optimal <strong>control</strong>, Hemisphere, Wash<strong>in</strong>gton DC,1975.[3] V.F. Krotov, Global methods <strong>in</strong> optimal <strong>control</strong> theory, Marcel Dekker Inc., NewYork, 1995.[4] S. Conolly, D. Nishimura, A. Macovsky, <strong>Optimal</strong> <strong>control</strong> solutions to themagnetic resonance selective excitation problem, IEEE Trans. Med. Imag<strong>in</strong>g 5(1986) 106–115.[5] J. Mao, T.H. Mareci, K.N. Scott, E.R. Andrew, Selective <strong>in</strong>version radiofrequencypulses by optimal <strong>control</strong>, J. Magn. Reson. 70 (1986) 310–318.[6] D. Rosenfeld, Y. Zur, Design of adiabatic selective pulses us<strong>in</strong>g optimal <strong>control</strong>theory, Magn. Reson. Med. 36 (1996) 401–409.[7] D. Xu, K.F. K<strong>in</strong>g, Y. Zhu, G.C. McK<strong>in</strong>non, Z.P. Liang, Design<strong>in</strong>g multichannel,multidimensional, arbitrary flip angle RF pulses us<strong>in</strong>g an optimal <strong>control</strong>approach, Magn. Reson. Med. 59 (2008) 547–560.[8] N. Khaneja, T. Reiss, C. Kehlet, T. Schulte-Herbrüggen, S.J. Glaser, <strong>Optimal</strong><strong>control</strong> of coupled sp<strong>in</strong> dynamics: design of <strong>NMR</strong> pulse sequences by gradientascent algorithms, J. Magn. Reson. 172 (2005) 296–305.[9] T. Reiss, N. Khaneja, S.J. Glaser, Time-optimal coherence-order-selectivetransfer of <strong>in</strong>-phase coherence <strong>in</strong> heteronuclear IS sp<strong>in</strong> systems, J. Magn.Reson. 154 (2002) 192–195.[10] N. Khaneja, T. Reiss, B. Luy, S.J. Glaser, <strong>Optimal</strong> <strong>control</strong> of sp<strong>in</strong> dynamics <strong>in</strong> thepresence of relaxation, J. Magn. Reson. 162 (2003) 311–319.[11] N. Khaneja, J.-S. Li, C. Kehlet, B. Luy, S.J. Glaser, Broadband relaxationoptimizedpolarization transfer <strong>in</strong> magnetic resonance, Proc. Natl. Acad. Sci.USA 101 (2004) 14742–14747.[12] K. Kobzar, B. Luy, N. Khaneja, S.J. Glaser, Pattern pulses: design of arbitraryexcitation profiles as a function of pulse amplitude and offset, J. Magn. Reson.173 (2005) 229–235.[13] J.L. Neves, B. Heitmann, T.O. Reiss, H.H.R. Schor, N. Khaneja, S.J. Glaser,Explor<strong>in</strong>g the limits of polarization transfer efficiency <strong>in</strong> homonuclear threesp<strong>in</strong> systems, J. Magn. Reson. 181 (2006) 126–134.[14] C.T. Kehlet, A.C. Sivertsen, M. Bjerr<strong>in</strong>g, T.O. Reiss, N. Khaneja, S.J. Glaser, N.C.Nielsen, Improv<strong>in</strong>g solid-state <strong>NMR</strong> dipolar recoupl<strong>in</strong>g by optimal <strong>control</strong>, J.Am. Chem. Soc. 126 (2004) 10202–10203.[15] C. Kehlet, T. Vosegaard, N. Khaneja, S.J. Glaser, N.C. Nielsen, Low-powerhomonuclear dipolar recoupl<strong>in</strong>g <strong>in</strong> solid-state <strong>NMR</strong> developed us<strong>in</strong>g optimal<strong>control</strong> theory, Chem. Phys. Lett. 414 (2005) 204–209.[16] T. Vosegaard, C. Kehlet, N. Khaneja, S.J. Glaser, N.C. Nielsen, Improvedexcitation schemes for multiple-quantum magic-angle sp<strong>in</strong>n<strong>in</strong>g forquadrupolar nuclei designed us<strong>in</strong>g optimal <strong>control</strong> theory, J. Am. Chem. Soc.127 (2005) 13768–13769.[17] Z. Tošner, S.J. Glaser, N. Khaneja, N.C. Nielsen, Effective Hamiltonians byoptimal <strong>control</strong>: solid-state <strong>NMR</strong> double-quantum and isotropic dipolarrecoupl<strong>in</strong>g, J. Chem. Phys. 125 (2006) 184502.[18] C. Kehlet, N.C. Nielsen, Solid-state <strong>NMR</strong> experiments by optimal <strong>control</strong>,Bruker Sp<strong>in</strong> Report 157 (2007) 31–34.[19] C. Kehlet, M. Bjerr<strong>in</strong>g, A.C. Sivertsen, T. Kristensen, J.J. Enghild, S.J. Glaser, N.Khaneja, N.C. Nielsen, <strong>Optimal</strong> <strong>control</strong> based NCO and NCA experiments forspectral assignment <strong>in</strong> biological solid-state <strong>NMR</strong> <strong>spectroscopy</strong>, J. Magn.Reson. 188 (2007) 216–230.[20] J.Ø. Hansen, C. Kehlet, M. Bjerr<strong>in</strong>g, T. Vosegaard, S.J. Glaser, N. Khaneja, N.C.Nielsen, <strong>Optimal</strong> <strong>control</strong> based design of composite dipolar recoupl<strong>in</strong>gexperiments by analogy to s<strong>in</strong>gle-sp<strong>in</strong> <strong>in</strong>version pulses, Chem. Phys. Lett.447 (2007) 154–161.[21] N. Khaneja, S.J. Glaser, R. Brockett, Sub-Riemannian geometry and timeoptimal <strong>control</strong> of three sp<strong>in</strong> systems: quantum gates and coherence transfer,Phys. Rev. A 65 (2002) 032301.[22] T. Schulte-Herbrüggen, A. Spörl, N. Khaneja, S.J. Glaser, <strong>Optimal</strong> <strong>control</strong>-basedecient synthesis of build<strong>in</strong>g blocks of quantum algorithms seen <strong>in</strong> perspectivefrom network complexity towards time complexity, Phys. Rev. A 72 (2005)042331/1–042331/7.[23] T. Schulte-Herbrüggen, A. Spörl, N. Khaneja, S.J. Glaser, From NetworkComplexity to Time Complexity via <strong>Optimal</strong> Control, NATO Science Series,III: Computer and System Sciences 199 (2006) 353-357.[24] T. Schulte-Herbrüggen, A.K. Spörl, R. Marx, N. Khaneja, J.M. Myers, A.F.Fahmy, S.J. Glaser, Quantum comput<strong>in</strong>g implemented via optimal <strong>control</strong>:theory and application to sp<strong>in</strong>- and pseudo-sp<strong>in</strong> systems, <strong>in</strong>: D. Bru, G.Leuchs (Eds.), Lectures on Quantum Information, Wiley, VCH, 2006, pp.481–501.[25] N. Khaneja, B. Heitmann, A. Spörl, H. Yuan, T. Schulte-Herbrüggen, S.J. Glaser,Shortest paths for ecient <strong>control</strong> of <strong>in</strong>directly coupled qubits, Phys. Rev. A 75(2007) 012322/1–012322/10.[26] A. Spörl, T. Schulte-Herbrüggen, S.J. Glaser, V. Bergholm, M.J. Storcz, J. Ferber,F.K. Wilhelm, <strong>Optimal</strong> <strong>control</strong> of coupled Josephson qubits, Phys. Rev. A 75(2007) 012302/1–012302/9.[27] I. Maximov, Z. Tošner, N.C. Nielsen, <strong>Optimal</strong> <strong>control</strong> design of <strong>NMR</strong> anddynamic nuclear polarization experiments us<strong>in</strong>g monotonically convergentalgorithms, J. Chem. Phys. 128 (2008) 184505.[28] N. Pomplun, B. Heitmann, N. Khaneja, S.J. Glaser, Optimization ofelectronnuclear polarization transfer, Applied Magn. Reson. 34 (2008) 331–346.[29] J.S. Hodges, J.C. Yang, C. Ramanathan, D.G. Cory, Universal <strong>control</strong> ofnuclear sp<strong>in</strong>s via anisotropic hyperf<strong>in</strong>e <strong>in</strong>teractions, Phys. Rev. A 78 (2008)010303.[30] N. Khaneja, Switched <strong>control</strong> of electron nuclear sp<strong>in</strong> systems, Phys. Rev. A 76(2007) 032326.[31] R. Zeier, H.D. Yuan, N. Khaneja, Time-optimal synthesis of unitarytransformations <strong>in</strong> a coupled fast and slow qubit system, Phys. Rev. A 77(2008) 032332.[32] W.H. Press, S.A. Teukolsky, W.T. Vetterl<strong>in</strong>g, <strong>Numerical</strong> recipes <strong>in</strong> C: the art ofscientific comput<strong>in</strong>g, Cambridge University Press, 1993.[33] A.C. Sivertsen, M. Bjerr<strong>in</strong>g, C.T. Kehlet, T. Vosegaard, N.C. Nielsen, <strong>Numerical</strong>simulations <strong>in</strong> biological solid-state <strong>NMR</strong> <strong>spectroscopy</strong>, Ann. Rep. <strong>NMR</strong>Spectrosc. 54 (2005) 246–295.[34] N.C. Nielsen, Computational aspects of biological solid-state <strong>NMR</strong><strong>spectroscopy</strong>, <strong>in</strong>: A. Ramamoorthy (Ed.), Biological solid-state <strong>NMR</strong><strong>spectroscopy</strong>, C. Dekker Inc, 2005, pp. 261–304.[35] O.W. Sørensen, A universal bound on sp<strong>in</strong> dynamics, J. Magn. Reson. 86 (1990)435–440.[36] J. Stoustrup, O. Schedletzsky, S.J. Glaser, C. Gries<strong>in</strong>ger, N.C. Nielsen, O.W.Sørensen, Generalized bound on quantum dynamics: efficiency of unitarytransformations between non-hermitian states, Phys. Rev. Lett. 74 (1995)2921–2924.[37] N.C. Nielsen, T. Schulte-Herbrüggen, O.W. Sørensen, Bounds on sp<strong>in</strong>-dynamicstightened by permutation symmetry. Application to coherence transfer <strong>in</strong> I2Sand I3S sp<strong>in</strong> systems, Mol. Phys. 85 (1995) 1205–1216.[38] S.J. Glaser, T. Schulte-Herbrüggen, M. Sievek<strong>in</strong>g, O. Schedletzky, N.C. Nielsen,O.W. Sørensen, C. Gries<strong>in</strong>ger, Unitary <strong>control</strong> <strong>in</strong> quantum ensembles:maximiz<strong>in</strong>g signal <strong>in</strong>tensity <strong>in</strong> coherent <strong>spectroscopy</strong>, Science 280 (1998)421–424.[39] T. Schulte-Herbrüggen, G. Dirr, U. Helmke, S.J. Glaser, The significance of the C-numerical range and the local C-numerical range <strong>in</strong> quantum <strong>control</strong> andquantum <strong>in</strong>formation, L<strong>in</strong>. Multil<strong>in</strong>. Alg. 56 (2008) 3–26.[40] U. Haeberlen, J.S. Waugh, Coherent averag<strong>in</strong>g effects <strong>in</strong> magnetic resonance,Phys. Rev. 175 (1968) 453–467.[41] M. Hohwy, N.C. Nielsen, Systematic design and evaluation of multiple-pulseexperiments <strong>in</strong> nuclear magnetic resonance <strong>spectroscopy</strong> us<strong>in</strong>g a semicont<strong>in</strong>uousBaker–Campbell–Hausdorff expansion, J. Chem. Phys. 109 (1998)3780–3791.[42] T.S. Untidt, N.C. Nielsen, Closed solution to the Baker–Campbell–Hausdorffproblem: exact effective Hamiltonian theory for analysis of nuclear magneticresonance experiments, Phys. Rev. E 65 (2002) 021108.[43] D. Sim<strong>in</strong>owitch, T.S. Untidt, N.C. Nielsen, Exact effective Hamiltonian theory II.Expansion of matrix functions and entangled unitary operators, J. Chem. Phys.120 (2004) 51–66.[44] N.C. Nielsen, H. Bildsøe, H.J. Jakobsen, M.H. Levitt, Double-quantumhomonuclear rotary resonance: efficient dipolar recovery <strong>in</strong> magic-anglesp<strong>in</strong>n<strong>in</strong>g <strong>NMR</strong>, J. Chem. Phys. 101 (1994) 1805–1812.[45] N. Khaneja, C. Kehlet, S.J. Glaser, N.C. Nielsen, Composite dipolar recoupl<strong>in</strong>g:anisotropy compensated coherence transfer <strong>in</strong> solid-state <strong>NMR</strong>, J. Chem. Phys.124 (2006) 114503.[46] N. Khaneja, R. Brockett, S.J. Glaser, Time optimal <strong>control</strong> <strong>in</strong> sp<strong>in</strong> systems, Phys.Rev. A 63 (2001) 032308.[47] N. Khaneja, S.J. Glaser, R. Brockett, Sub-Riemannian geometry and timeoptimal <strong>control</strong> of three sp<strong>in</strong> systems: quantum gates and coherence transfer,Phys. Rev. A 65 (2002) 032301.[48] N. Khaneja, T. Reiss, B. Luy, S.J. Glaser, <strong>Optimal</strong> <strong>control</strong> of sp<strong>in</strong> dynamics <strong>in</strong> thepresence of relaxation, J. Magn. Reson. 162 (2003) 311–319.[49] N. Khaneja, B. Luy, S.J. Glaser, Boundary of quantum evolution underdecoherence, Proc. Natl. Acad. Sci. USA 100 (2003) 13162–13166.


134 Z. Tošner et al. / Journal of Magnetic Resonance 197 (2009) 120–134[50] D. Stefanatos, N. Khaneja, S.J. Glaser, <strong>Optimal</strong> <strong>control</strong> of coupled sp<strong>in</strong>s <strong>in</strong> thepresence of longitud<strong>in</strong>al and transverse relaxation, Phys. Rev. A 69 (2004)022319.[51] N. Khaneja, F. Kramer, S.J. Glaser, <strong>Optimal</strong> experiments for maximiz<strong>in</strong>gcoherence transfer between coupled sp<strong>in</strong>s, J. Magn. Reson. 173 (2005) 116–124.[52] D. Stefanatos, S.J. Glaser, N. Khaneja, Relaxation-optimized transfer of sp<strong>in</strong>order <strong>in</strong> Is<strong>in</strong>g sp<strong>in</strong> cha<strong>in</strong>s, Phys. Rev. A 72 (2005) 062320.[53] N. Khaneja, B. Heitmann, A. Spörl, H.D. Yuan, T. Schulte-Herbrüggen, S.J. Glaser,Shortest paths for efficient <strong>control</strong> of <strong>in</strong>directly coupled qubits, Phys. Rev. A 75(2007) 012322.[54] M. Bak, J.T. Rasmussen, N.C. Nielsen, SIMPSON: a general simulation programfor solid-state <strong>NMR</strong> <strong>spectroscopy</strong>, J. Magn. Reson. 147 (2000) 296–330. Opensource software www.bionmr.chem.au.d.[55] N.C. Nielsen, H. Thogersen, O.W. Sørensen, Doubl<strong>in</strong>g the sensitivity ofInadequate for trac<strong>in</strong>g out the carbon skeleton of molecules by <strong>NMR</strong>, J. Am.Chem. Soc. 117 (1995) 11365–11366.[56] N.C. Nielsen, H. Thogersen, O.W. Sørensen, A systematic strategy for design ofoptimum coherent experiments applied to efficient <strong>in</strong>terconversion of doubleands<strong>in</strong>gle-quantum coherences <strong>in</strong> nuclear magnetic resonance, J. Chem. Phys.105 (1996) 3962–3968.[57] M. Sattler, J. Schleucher, O. Schedletzky, S.J. Glaser, C. Gries<strong>in</strong>ger, N.C. Nielsen,O.W. Sørensen, a&b HSQC, an HSQC-type experiment with improvedresolution for I2S groups, J. Magn. Reson. A 119 (1996) 171–179.[58] T.S. Untidt, T. Schulte-Herbrüggen, O.W. Sørensen, N.C. Nielsen, Nuclearmagnetic resonance coherence-order- and sp<strong>in</strong>-state-selective correlation <strong>in</strong>I2S sp<strong>in</strong> systems, J. Phys. Chem. A. 103 (1999) 8921–8926.[59] M. Bak, R. Schultz, T. Vosegaard, N.C. Nielsen, Specification and visualization ofanisotropic <strong>in</strong>teraction tensors for numerical simulation of solid-state <strong>NMR</strong>experiments on polypeptide structures, J. Magn. Reson. 154 (2002) 28–45.Open source software www.bionmr.chem.au.d.[60] T. Vosegaard, A. Malmendal, N.C. Nielsen, The flexibility of SIMPSON andSIMMOL for numerical simulations <strong>in</strong> solid- and liquid-state <strong>NMR</strong><strong>spectroscopy</strong>, Monatshefte Fur Chemie 133 (2002) 1555–1574.[61] A.C. Sivertsen, M. Bjerr<strong>in</strong>g, C.T. Kehlet, T. Vosegaard, N.C. Nielsen, <strong>Numerical</strong>simulations <strong>in</strong> biological solid-state <strong>NMR</strong> <strong>spectroscopy</strong>, <strong>in</strong>: G.A. Webb (Ed.)Annual Reports on <strong>NMR</strong> Spectroscopy, vol. 54, 2005, pp. 243–293.[62] B.B. Welch, Practical Programm<strong>in</strong>g <strong>in</strong> Tcl and Tk, Prentice Hall, EnglewoodCliffs, NJ, 1995.[63] J.K. Ousterhout, Tcl and the Tk Toolkit, Addison-Wesley, Read<strong>in</strong>g, MA, 1994.[64] SIMPSON web-pages: http://bionmr.chem.au.dk/download/simpson/.[65] K. Kobzar, T.E. Sk<strong>in</strong>ner, N. Khaneja, S.J. Glaser, B. Luy, Explor<strong>in</strong>g the limits ofbroadband excitation and <strong>in</strong>version pulses, J. Magn. Reson. 170 (2004) 236–243.[66] K. Kobzar, T.E. Sk<strong>in</strong>ner, N. Khaneja, S.J. Glaser, B. Luy, Explor<strong>in</strong>g the limits ofbroadband excitation and <strong>in</strong>version: II. Rf-power optimized pulses, J. Magn.Reson. 194 (2008) 58–66.[67] M. Bak, N.C. Nielsen, REPULSION, a novel approach to efficient powderaverag<strong>in</strong>g <strong>in</strong> solid-state <strong>NMR</strong>, J. Magn. Reson. 125 (1997) 132–139.[68] M. Hohwy, H. Bildsøe, H.J. Jakobsen, N.C. Nielsen, Efficient spectral simulations<strong>in</strong> <strong>NMR</strong> of rotat<strong>in</strong>g solids. The g-COMPUTE algorithm, J. Magn. Reson. 136(1999) 6–14.[69] J. Schaefer, E.O. Stejskal, J.R. Garbow, R.A. McKay, Quantitative determ<strong>in</strong>ationof the concentrations of C-13-N-15 chemical bonds by double crosspolarization<strong>NMR</strong>, J. Magn. Reson. 59 (1984) 150–156.[70] M. Baldus, D.G. Geurts, S. Hediger, B.H. Meier, Efficient N-15-C-13 polarizationtransfer by adiabatic-passage Hartmann–Hahn cross polarization, J. Magn.Reson. A 118 (1996) 140–144.[71] G. Metz, X. Wu, S.O. Smith, Ramped-amplitude cross polarization <strong>in</strong> magicangle-sp<strong>in</strong>n<strong>in</strong>g<strong>NMR</strong>, J. Magn. Reson. A 110 (1994) 219–227.[72] M. Bjerr<strong>in</strong>g, N.C. Nielsen, Solid-state <strong>NMR</strong> heteronuclear coherence transferus<strong>in</strong>g phase and amplitude modulated rf irradiation at the Hartmann–Hahncondition, Chem. Phys. Lett. 382 (2003) 671–678.[73] M. Bjerr<strong>in</strong>g, J.T. Rasmussen, R.S. Krogshave, N.C. Nielsen, Heteronuclearcoherence transfer <strong>in</strong> solid-state <strong>NMR</strong> us<strong>in</strong>g a c-encoded transferred echoexperiment, J. Chem. Phys. 119 (2003) 8916–8926.[74] M. Bjerr<strong>in</strong>g, N.C. Nielsen, Solid-state <strong>NMR</strong> heteronuclear dipolar recoupl<strong>in</strong>gus<strong>in</strong>g off-resonance symmetry-based pulse sequences, Chem. Phys. Lett. 370(2003) 496–503.[75] E.M. Fortunato, M.A. Pravia, N. Boulant, G. Teklemariam, T.F. Havel, D.G. Cory,Design of strongly modulat<strong>in</strong>g pulses to implement precise effective Hamiltoniansfor quantum <strong>in</strong>formation process<strong>in</strong>g, J. Chem. Phys. 116 (2002) 7599–7606.[76] H. Kampermann, W.S. Veeman, Characterisation of quantum algorithms byquantum process tomography us<strong>in</strong>g quadrupolar sp<strong>in</strong>s <strong>in</strong> solid-state nuclearmagnetic resonance, J. Chem. Phys. 122 (2005) 214108.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!