Difference between revisions of "Ctrl trajan.m"
(Sync syntax/arguments/outputs with current Spinach source) |
(Update function See also links and function index membership) |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:ctrl_trajan.m}} __NOTOC__ | {{DISPLAYTITLE:ctrl_trajan.m}} __NOTOC__ | ||
| − | + | Diagnostic plotting function for the optimal control toolbox that plots trajectory and control-pulse analysis; it is called internally by the optimal control module, and all settings should be specified through [[optimcon.m]] when the optimal control problem is set up. | |
| − | Diagnostic plotting function for optimal control toolbox | ||
==Syntax== | ==Syntax== | ||
| − | ctrl_trajan(spin_system,waveform, | + | ctrl_trajan(spin_system,waveform,trajectory,fidelities) |
| − | == | + | ==Parameters== |
| − | waveform - waveform, as supplied to a user-end | + | waveform - waveform, as supplied to a user-end |
| − | + | function, such as grape_xy.m | |
| + | |||
| + | trajectory - spin system trajectory, a stack of | ||
| + | complex vectors | ||
| + | |||
| + | fidelities - fidelities array, as returned by | ||
| + | user-end functions, such as grape_xy | ||
| − | + | ==Returns== | |
| − | + | The function plots a graph similar to the one below. | |
| − | + | [[File:ctrl_trajan_figure.png]] | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
==Examples== | ==Examples== | ||
| − | |||
See the optimal control examples in the standard example set - all of them make use of this function indirectly when they are calling ''Spinach'' optimal control functionality. | See the optimal control examples in the standard example set - all of them make use of this function indirectly when they are calling ''Spinach'' optimal control functionality. | ||
==See also== | ==See also== | ||
| − | + | [[grape_xy.m]], [[grape_phase.m]], [[optimcon.m]], [[trajan.m]], [[trajsimil.m]], [[bruker_write.m]], [[fapt2sfo.m]], [[heterodyne.m]], [[inst_freq.m]], [[read_wave.m]], [[Optimal_control_module]] | |
| − | [[grape_xy.m]], [[grape_phase.m]], [[optimcon.m]], [[trajan.m]], [[trajsimil.m]] | ||
| − | |||
''Version 2.0, authors: [[Ilya Kuprov]], [[David Goodwin]]'' | ''Version 2.0, authors: [[Ilya Kuprov]], [[David Goodwin]]'' | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Latest revision as of 18:35, 6 June 2026
Diagnostic plotting function for the optimal control toolbox that plots trajectory and control-pulse analysis; it is called internally by the optimal control module, and all settings should be specified through optimcon.m when the optimal control problem is set up.
Syntax
ctrl_trajan(spin_system,waveform,trajectory,fidelities)
Parameters
waveform - waveform, as supplied to a user-end
function, such as grape_xy.m
trajectory - spin system trajectory, a stack of
complex vectors
fidelities - fidelities array, as returned by
user-end functions, such as grape_xy
Returns
The function plots a graph similar to the one below.
Examples
See the optimal control examples in the standard example set - all of them make use of this function indirectly when they are calling Spinach optimal control functionality.
See also
grape_xy.m, grape_phase.m, optimcon.m, trajan.m, trajsimil.m, bruker_write.m, fapt2sfo.m, heterodyne.m, inst_freq.m, read_wave.m, Optimal_control_module
Version 2.0, authors: Ilya Kuprov, David Goodwin