Difference between revisions of "Stateinfo.m"
(Normalise sequential blank lines) |
m (Spot-edit Spinach function page first-line NOTOC and template fields) |
||
| Line 1: | Line 1: | ||
| − | {{DISPLAYTITLE:stateinfo.m}} | + | {{DISPLAYTITLE:stateinfo.m}} __NOTOC__ |
Prints the state vector norm and the list of the most populated basis states in the order of decreasing population. | Prints the state vector norm and the list of the most populated basis states in the order of decreasing population. | ||
Revision as of 18:29, 5 June 2026
Prints the state vector norm and the list of the most populated basis states in the order of decreasing population.
Syntax
stateinfo(spin_system,rho,npops)
Arguments
rho - state vector
npops - number of largest populations to print
Outputs
This function prints a summary of the state composition to the con-
sole in the following format:
(L1,M1) (L2,M2) ... (Ln,Mn) coefficient number
This corresponds to the direct product of single-spin irreducible
spherical tensors with the specified indices, its coefficient in
the linear combination, and the number of the corresponding state
in the basis set.
Examples
Several examples are available in examples/singlet_states directory, where the composition of the singlet states is analysed using this function.
Notes
This function requires sphten-liouv formalism.
See also
irr_sph_ten.m, sphten2zeeman.m, pauli.m, stevens.m
Version 2.2, authors: Ilya Kuprov, Konstantin Pervushin