Difference between revisions of "Stateinfo.m"

From Spinach Documentation Wiki
Jump to: navigation, search
m (Spot-edit Spinach function page first-line NOTOC and template fields)
m (Rename Arguments section heading to Parameters)
Line 6: Line 6:
 
     stateinfo(spin_system,rho,npops)
 
     stateinfo(spin_system,rho,npops)
  
−
==Arguments==
+
==Parameters==
  
 
                 rho  - state vector
 
                 rho  - state vector

Revision as of 17:52, 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)

Parameters

               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