Difference between revisions of "Drifts.m"
(Sync syntax/arguments/outputs with current Spinach source) |
(Restore pre-bulk-edit wiki content) |
||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:drifts.m}} __NOTOC__ | {{DISPLAYTITLE:drifts.m}} __NOTOC__ | ||
| − | |||
Returns a cell array of drift Liouvillians suitable for the control.drifts variable in ensemble control optimisations. | Returns a cell array of drift Liouvillians suitable for the control.drifts variable in ensemble control optimisations. | ||
==Syntax== | ==Syntax== | ||
| − | [drifts,spc_dim]=drifts(spin_system,context,parameters | + | [drifts,spc_dim]=drifts(spin_system,context,parameters) |
==Arguments== | ==Arguments== | ||
| − | context - a function handle to Spinach context | + | context - a function handle to Spinach context |
responsible for handling the ensemble | responsible for handling the ensemble | ||
(@powder, @singlerot, etc.) | (@powder, @singlerot, etc.) | ||
| Line 19: | Line 18: | ||
==Outputs== | ==Outputs== | ||
| − | drifts - a cell array of Liouvillians format- | + | drifts - a cell array of Liouvillians format- |
ted as {{La},{Lb},...}, one per en- | ted as {{La},{Lb},...}, one per en- | ||
semble member | semble member | ||
| Line 27: | Line 26: | ||
==Examples== | ==Examples== | ||
| − | |||
Examples are given in powder_prephase.m and optimcon_mas.m files in examples/optimal_control directory. | Examples are given in powder_prephase.m and optimcon_mas.m files in examples/optimal_control directory. | ||
==See also== | ==See also== | ||
| − | |||
[[Optimal control module]] | [[Optimal control module]] | ||
''Version 2.4, authors: [[Ilya Kuprov]]'' | ''Version 2.4, authors: [[Ilya Kuprov]]'' | ||
Revision as of 14:48, 5 April 2026
Returns a cell array of drift Liouvillians suitable for the control.drifts variable in ensemble control optimisations.
Syntax
[drifts,spc_dim]=drifts(spin_system,context,parameters)
Arguments
context - a function handle to Spinach context
responsible for handling the ensemble
(@powder, @singlerot, etc.)
parameters - parameters required by the context
assumptions - assumptions required by the context
Outputs
drifts - a cell array of Liouvillians format-
ted as {{La},{Lb},...}, one per en-
semble member
spc_dim - dimension of the classical dynamics
subspace (e.g. rotor grid in MAS)
Examples
Examples are given in powder_prephase.m and optimcon_mas.m files in examples/optimal_control directory.
See also
Version 2.4, authors: Ilya Kuprov