Difference between revisions of "Grape coop.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Normalise sequential blank lines)
Line 27: Line 27:
 
==See also==
 
==See also==
 
[[grape_phase.m]], [[grape_xy.m]], [[optimcon.m]]
 
[[grape_phase.m]], [[grape_xy.m]], [[optimcon.m]]
−
 
  
 
''Version 2.2, authors: [[Ilya Kuprov]]''
 
''Version 2.2, authors: [[Ilya Kuprov]]''

Revision as of 12:25, 25 April 2026

Pairs of cooperative pulses that may be used as components of a phase cycle. The pulses are designed to produce as much of the destination state as they can, and to have impurities of opposite sign. Adding the outcomes of the two experiments then destroys the impurities.

Syntax

    [traj_data,fidelity,gradient]=grape_coop(phi_profile,spin_system)

Arguments

    phi_profile  -  phase profiles of the two pulses,
                    concatenated horizontally

Outputs

     traj_data    -  trajectory information structure

     fidelity     -  cooperative fidelity measure

     gradient     -  cooperative fidelity gradient

Examples

An example of a cooperative optimisation is available in examples/optimal_control/cooperative/state_transfer_coop.m file.

Notes

Only phase-modulated point-to-point transformations are supported.

See also

grape_phase.m, grape_xy.m, optimcon.m

Version 2.2, authors: Ilya Kuprov