Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
documentation:language_reference:functions:determinantstring [2018/06/21 16:22]
Simon Heinze Filled with content
documentation:language_reference:functions:determinantstring [2018/11/05 13:33] (current)
Simon Heinze remark about upcoming verisons
Line 2: Line 2:
  
 ### ###
-DeterminantString(//​Inds//,//NF//) creates a string of length //NF// and sets all characters to '​0',​ except for those indices included in //Inds//, which it sets to '​1'​. This automatizes the input of functions like NewWavefunction or Eigensystem.+DeterminantString(//​NF//,//Inds1//) creates a string of length //NF// and sets all characters to '​0',​ except for those indices included in //Inds1// etc, which it sets to '​1'​. This automatizes the input of functions like //​[[documentation:​language_reference:​functions:​NewWavefunction|NewWavefunction()]]// ​or //​[[documentation:​language_reference:​functions:​Eigensystem|Eigensystem()]]//​.
 ### ###
  
 ===== Input ===== ===== Input =====
  
-  * //Inds// : A list of indices. 
   * //NF// : The number of fermionic states (and hence the length of the resulting string).   * //NF// : The number of fermionic states (and hence the length of the resulting string).
 +  * //​Inds1//,​... : One (release version) or several (upcoming versions) lists of indices.
  
 ===== Output ===== ===== Output =====
Line 27: Line 27:
  
 print("​\nDeterminantString({0,​1,​2,​3},​NF):"​ ) print("​\nDeterminantString({0,​1,​2,​3},​NF):"​ )
-print(DeterminantString({0,​1,​2,​3},NF) ) +print(DeterminantString(NF, {0,1,2,3}) ) 
-print("​\nDeterminantString(Ind[\"​Fe_2p\"​],NF):") +print("​\nDeterminantString(NF, Ind[\"​Fe_2p\"​]):"​) 
-print(DeterminantString(Ind["​Fe_2p"​],NF) ) +print(DeterminantString(NF, Ind["​Fe_2p"​]) ) 
-print("​\nDeterminantString(Ind[\"​H_states\"​],NF):") +print("​\nDeterminantString(NF, Ind[\"​H_states\"​]):"​) 
-print(DeterminantString(Ind["​H_states"​],NF) ) +print(DeterminantString(NF, Ind["​H_states"​]) ) 
-print("​\nDeterminantString(Ind[\"​Fe_states\"​],NF):") +print("​\nDeterminantString(NF, Ind[\"​Fe_states\"​]):"​) 
-print(DeterminantString(Ind["​Fe_states"​],​NF) )+print(DeterminantString(NF, Ind["​Fe_states"​]) ) 
 +--Upcoming Version: 
 +print("​\nDeterminantString(NFInd[\"​H_1s\"​],​ Ind[\"​Fe_2p\"​],​ Ind[\"​Fe_3d\"​]):"​ ) 
 +print(DeterminantString(NF, Ind["​H_1s"​],​ Ind["​Fe_2p"​],​ Ind["​Fe_3d"​]) )
  
-psi = NewWavefunction(NF,​0,​{{DeterminantString(Ind["​Fe_3d"​],NF) , 1}})+psi = NewWavefunction(NF,​0,​{{DeterminantString(NF, Ind["​Fe_3d"​]) , 1}})
 print(psi) print(psi)
 </​code>​ </​code>​
Line 44: Line 47:
 1111000000000000000000 1111000000000000000000
  
-DeterminantString(Ind["​Fe_2p"​],NF):+DeterminantString(NF, Ind["​Fe_2p"​]):​
 0000111111000000000000 0000111111000000000000
  
-DeterminantString(Ind["​H_states"​],NF):+DeterminantString(NF, Ind["​H_states"​]):​
 1100000000000000000000 1100000000000000000000
  
-DeterminantString(Ind["​Fe_states"​],NF):+DeterminantString(NF, Ind["​Fe_states"​]):​
 0011111111111111111111 0011111111111111111111
 +
 +DeterminantString(NF,​ Ind["​H_1s"​],​ Ind["​Fe_2p"​],​ Ind["​Fe_3d"​]):​
 +1100111111001111111111
  
 WaveFunction:​ Wave Function WaveFunction:​ Wave Function
Print/export