######## lib_qmat ######## ***************************** Quick start on datastructures ***************************** This library uses three special datastructures to store the information on finite dimensional basis sets (``q_set``), linear operators (``q_mat``), and sets of linear operators acting on the same space (``q_mats``). For example, a ladder operator acting on a space spanned by three vibrational basis functions :math:`s_1 = \{|v=0\rangle, |v=1\rangle, |v=2\rangle\}` given by .. math:: \hat{A} = \sum_{v=0}^1 |v+1\rangle\; \sqrt{v+1}\;|v\rangle would be defined by .. code-block:: Scilab lib_load lib_qmat s1 = q_set([0; 1; 2], 'v') // s1 = (OBJECT tlist) with fields: // // v // _ // 1: 0 // 2: 1 // 3: 2 Ad = q_mat([ 0 0 0 1 0 0 sqrt(2) 0 0], s1) // Ad = (OBJECT tlist) with fields: // // |v(3)>A(3;3)