Differences

This shows you the differences between two versions of the page.

Link to this comparison view

documentation:language_reference:objects:operator:methods:transpose [2016/09/25 13:58] – created Maurits W. Haverkortdocumentation:language_reference:objects:operator:methods:transpose [2016/10/10 09:41] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== Transpose ======
  
 +###
 +For an operator //O//, the method //O.Transpose()// will change operator //O// to its transpose.
 +###
 +
 +===== Example =====
 +
 +###
 +We define:
 +$$O=3.4+1.2a^{\dagger}_{0}\,a^{\phantom{\dagger}}_{0}+(2.5+I)a^{\dagger}_{1}\,a^{\phantom{\dagger}}_{2},$$
 +its transpose, $O^{T}$ is equal to:
 +$$O^{T}=3.4+1.2a^{\dagger}_{0}\,a^{\phantom{\dagger}}_{0}+(2.5+I)a^{\dagger}_{2}\,a^{\phantom{\dagger}}_{1}.$$
 +###
 +
 +==== Input ====
 +<code Quanty Example.Quanty>
 +NF=3
 +NB=0
 +O = NewOperator(NF,NB,{{3.4},{0,-0,1.2},{1,-2,2.5+I}})
 +print(O)
 +O.Transpose()
 +print(O)
 +</code>
 +
 +==== Result ====
 +<file Quanty_Output>
 +Operator: Operator
 +QComplex                  2 (Real==0 or Complex==1 or Mixed==2)
 +MaxLength        =          2 (largest number of product of lader operators)
 +NFermionic modes =          3 (Number of fermionic modes (site, spin, orbital, ...) in the one particle basis)
 +NBosonic modes            0 (Number of bosonic modes (phonon modes, ...) in the one particle basis)
 +
 +Operator of Length   0
 +QComplex      =          0 (Real==0 or Complex==1)
 +N                      1 (number of operators of length   0)
 +|  3.400000000000000E+00
 +
 +Operator of Length   2
 +QComplex      =          1 (Real==0 or Complex==1)
 +N                      2 (number of operators of length   2)
 +C  0 A  0 |  1.200000000000000E+00  0.000000000000000E+00
 +C  1 A  2 |  2.500000000000000E+00  1.000000000000000E+00
 +
 +
 +
 +Operator: Operator
 +QComplex                  2 (Real==0 or Complex==1 or Mixed==2)
 +MaxLength        =          2 (largest number of product of lader operators)
 +NFermionic modes =          3 (Number of fermionic modes (site, spin, orbital, ...) in the one particle basis)
 +NBosonic modes            0 (Number of bosonic modes (phonon modes, ...) in the one particle basis)
 +
 +Operator of Length   0
 +QComplex      =          0 (Real==0 or Complex==1)
 +N                      1 (number of operators of length   0)
 +|  3.400000000000000E+00
 +
 +Operator of Length   2
 +QComplex      =          1 (Real==0 or Complex==1)
 +N                      2 (number of operators of length   2)
 +C  0 A  0 |  1.200000000000000E+00  0.000000000000000E+00
 +C  2 A  1 |  2.500000000000000E+00  1.000000000000000E+00
 +</file>
 +
 +===== Available methods =====
 +{{indexmenu>.#1}}
Print/export