Difference between revisions of "Lm2lin.m"
(Created page with "Converts L,M spin state specification to linear indexing specification. In the linear indexing convention, the states are listed in the order of inc reasing L rank, and, with...") |
(Update function See also links and function index membership) |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | Converts L,M spin | + | {{DISPLAYTITLE:lm2lin.m}} __NOTOC__ |
| − | In the linear indexing convention, | + | Converts L,M indexing of spin states into linear indexing. In the linear indexing convention, spin states are listed in the order of increasing L rank, and, within ranks, in the order of decreasing M projection. Zero base counting is used: |
| − | + | ||
| − | + | (L=0,M=0) -> I=0 | |
| + | (L=1,M=1) -> I=1 | ||
| + | (L=1,M=0) -> I=2, et cetera... | ||
| − | + | ==Syntax== | |
| − | + | ||
| − | + | I=lm2lin(L,M) | |
| − | + | ||
| − | + | ==Parameters== | |
| + | |||
| + | L - ranks of the spin states | ||
| + | |||
| + | M - projections of the spin states | ||
| + | |||
| + | ==Outputs== | ||
| + | |||
| + | I - linear indices of spin states, with | ||
| + | I=0 corresponding to L=0, M=0. | ||
| + | |||
| + | ==Notes== | ||
| + | See the [[Appendix_B:_spin_state_indexing|state indexing]] section for further information about how ''Spinach'' enumerates spherical tensor states. | ||
| + | |||
| + | ==See also== | ||
| + | [[lin2lm.m]], [[lin2lmn.m]], [[lmn2lin.m]], [[irr_sph_ten.m]], [[adelim.m]], [[coherence.m]], [[correlation.m]], [[dfpt.m]], [[homospoil.m]], [[human2opspec.m]], [[path_trace.m]], [[scomponents.m]], [[sinkhole.m]], [[sparse2csr.m]], [[sphten2zeeman.m]], [[stitch.m]], [[zte.m]], [[Kernel_utilities]] | ||
| − | + | ''Version 2.3, authors: [[Ilya Kuprov]]'' | |
Latest revision as of 18:38, 6 June 2026
Converts L,M indexing of spin states into linear indexing. In the linear indexing convention, spin states are listed in the order of increasing L rank, and, within ranks, in the order of decreasing M projection. Zero base counting is used:
(L=0,M=0) -> I=0
(L=1,M=1) -> I=1
(L=1,M=0) -> I=2, et cetera...
Syntax
I=lm2lin(L,M)
Parameters
L - ranks of the spin states
M - projections of the spin states
Outputs
I - linear indices of spin states, with
I=0 corresponding to L=0, M=0.
Notes
See the state indexing section for further information about how Spinach enumerates spherical tensor states.
See also
lin2lm.m, lin2lmn.m, lmn2lin.m, irr_sph_ten.m, adelim.m, coherence.m, correlation.m, dfpt.m, homospoil.m, human2opspec.m, path_trace.m, scomponents.m, sinkhole.m, sparse2csr.m, sphten2zeeman.m, stitch.m, zte.m, Kernel_utilities
Version 2.3, authors: Ilya Kuprov