Shaped pulse xy.m

From Spinach Documentation Wiki
Revision as of 14:28, 31 March 2016 by Kuprov (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Shaped pulse function using Cartesian coordinates. Applies a user-specified pulse shape on user-specified operators while the rest of the drift Liouvillian continues to affect the spin system. Syntax:

 [rho,P]=shaped_pulse_xy(spin_system,drift,controls,amplitudes,time_grid)

Parameters:

      drift - the drift Liouvillian, the part of the Liouvillian that
              should continue running in the background. This should 
              include the pulse frequency offset, if any. 
   controls - control operators corresponding to each channel, this
              may include operators for spatial degrees of freedom.
 amplitudes - a matrix of control amplitudes (ncontrols x nsteps),
              in angular frequency units.
  time_grid - a vector containing the duration (not time position!)
              of each pulse slice, seconds.
        rho - state vector of the initial state, or a stack thereof.

The pulse is assumed to be piecewise-constant and should be supplied with sufficiently fine time discretization to properly reproduce the waveform.

Outputs:

        rho - the final state vector or a stack thereof
          P - total pulse propagator

Note: pulse propagators are expensive, do not request unless you really need that propagator.

Revision 3141, authors: Ilya Kuprov