Difference between revisions of "Human2opspec.m"
(Sync syntax/arguments/outputs with current Spinach source) |
|||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:human2opspec.m}} __NOTOC__ | {{DISPLAYTITLE:human2opspec.m}} __NOTOC__ | ||
| + | |||
Converts user-friendly descriptions of spin states and operators into the formal operator and state description used by ''Spinach'' kernel. | Converts user-friendly descriptions of spin states and operators into the formal operator and state description used by ''Spinach'' kernel. | ||
==Syntax== | ==Syntax== | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | [opspecs,coeffs]=human2opspec(spin_system,operators,spins) | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
==Outputs== | ==Outputs== | ||
| − | + | opspecs - Spinach operator specification: a cell array of | |
row vectors specifying which operator enters the | row vectors specifying which operator enters the | ||
Kronecker product for which spin. | Kronecker product for which spin. | ||
| Line 33: | Line 17: | ||
==Notes== | ==Notes== | ||
| + | |||
Direct calls to this function should not be necessary, use [[operator.m]] and [[state.m]] functions instead. | Direct calls to this function should not be necessary, use [[operator.m]] and [[state.m]] functions instead. | ||
==See also== | ==See also== | ||
| + | |||
[[operator.m]], [[state.m]], [[equilibrium.m]], [[coherence.m]], [[correlation.m]], [[singlet.m]] | [[operator.m]], [[state.m]], [[equilibrium.m]], [[coherence.m]], [[correlation.m]], [[singlet.m]] | ||
Revision as of 15:03, 5 April 2026
Converts user-friendly descriptions of spin states and operators into the formal operator and state description used by Spinach kernel.
Syntax
[opspecs,coeffs]=human2opspec(spin_system,operators,spins)
Outputs
opspecs - Spinach operator specification: a cell array of
row vectors specifying which operator enters the
Kronecker product for which spin.
coeffs - coefficient with which each of the Kronecker pro-
ducts enters the overall sum.
Notes
Direct calls to this function should not be necessary, use operator.m and state.m functions instead.
See also
operator.m, state.m, equilibrium.m, coherence.m, correlation.m, singlet.m
Version 2.8, authors: Luke Edwards, Ilya Kuprov