unit_state.m

From Spinach Documentation Wiki
Revision as of 18:53, 5 June 2026 by Kuprov (talk | contribs) (Rename Arguments section heading to Parameters)
Jump to: navigation, search

Returns the unit state vector or matrix in the current formalism and basis.

Syntax

    rho=unit_state(spin_system)

Parameters

    spin_system  - Spinach data object containing basis 
                   information (call basis.m first)

Outputs

    rho          - vector or matrix representation of
                   the unit state 

See also

unit_oper.m, mprealloc.m, operator.m, state.m

Version 2.3, authors: Ilya Kuprov, Dmitry Savostyanov