Difference between revisions of "Rseq compiler.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Normalise sequential blank lines)
(Update function See also links and function index membership)
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
 
     [P,T]=rseq_compiler(spin_system,L,Sx,Sy,pulse_phi,pulse_amp,pulse_dur,element_type)
 
     [P,T]=rseq_compiler(spin_system,L,Sx,Sy,pulse_phi,pulse_amp,pulse_dur,element_type)
  
−
==Arguments==
+
==Parameters==
  
 
     L        - background Liouvillian
 
     L        - background Liouvillian
Line 39: Line 39:
  
 
==See also==
 
==See also==
−
[[Kernel_functions#Shaped_pulses_and_gradients|Shaped pulses and gradients]]
+
[[bruker_write.m]], [[cartesian2polar.m]], [[chirp_pulse.m]], [[grad_pulse.m]], [[grad_sandw.m]], [[pmlg5.m]], [[polar2cartesian.m]], [[pulse_shape.m]], [[read_wave.m]], [[restrans.m]], [[rsequence.m]], [[sawtooth.m]], [[sech_pulse.m]], [[shaped_pulse_af.m]], [[shaped_pulse_xy.m]], [[spinal.m]], [[triwave.m]], [[vg_pulse.m]], [[wave_basis.m]], [[Kernel_functions]]
  
 
''Version 2.7, authors: [[Marina Carravetta]], [[Ilya Kuprov]]''
 
''Version 2.7, authors: [[Marina Carravetta]], [[Ilya Kuprov]]''

Latest revision as of 18:41, 6 June 2026

R sequence compiler. Uses the fact that R-sequences are very repetitive to pre-compile the minimal number of pulse propagators.

Syntax

    [P,T]=rseq_compiler(spin_system,L,Sx,Sy,pulse_phi,pulse_amp,pulse_dur,element_type)

Parameters

   L         - background Liouvillian

   Sx,Sy     - Cartesian spin operators pertaining to
               the spins affected by the pulses

   pulse_phi - the sequence of pulse phases, radians

   pulse_amp - RF nutation frequency in rad/s, a scalar 
               because R-sequences are phase-modulated

   pulse_dur - duration of the pulses in the sequence 
               element, a vector with the length mat-
               ching the number of pulses in the sequ-
               ence element (seconds)

   element_type - R element needs to be an inversion 
                  pulse; common ones are:

                   '180_pulse'   : simple inversion pulse

                   '90270_pulse' : composite inversion pulse

Outputs

   P - unique propagators, a cell array of matrices

   T - an index array of the same dimension as pulse_phi,
       specifying which propagator is to be used at which
       slice of the phase sequence

See also

bruker_write.m, cartesian2polar.m, chirp_pulse.m, grad_pulse.m, grad_sandw.m, pmlg5.m, polar2cartesian.m, pulse_shape.m, read_wave.m, restrans.m, rsequence.m, sawtooth.m, sech_pulse.m, shaped_pulse_af.m, shaped_pulse_xy.m, spinal.m, triwave.m, vg_pulse.m, wave_basis.m, Kernel_functions

Version 2.7, authors: Marina Carravetta, Ilya Kuprov