Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
documentation:language_reference:functions:determinantstring [2018/09/12 14:37] – Changed order of input Simon Heinzedocumentation:language_reference:functions:determinantstring [2018/11/05 13:33] (current) – remark about upcoming verisons Simon Heinze
Line 2: Line 2:
  
 ### ###
-DeterminantString(//NF//,//Inds//) 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()]]//.
 ### ###
  
Line 8: Line 8:
  
   * //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).
-  * //Inds// : A list of indices.+  * //Inds1//,... One (release version) or several (upcoming versions) lists of indices.
  
 ===== Output ===== ===== Output =====
Line 26: Line 26:
 Ind, NF = CreateAtomicIndicesDict(orbitals,groupings) Ind, NF = CreateAtomicIndicesDict(orbitals,groupings)
  
-print("\nDeterminantString(NF,{0,1,2,3}):"+print("\nDeterminantString({0,1,2,3},NF):" ) 
-print(DeterminantString(NF,{0,1,2,3}) ) +print(DeterminantString(NF, {0,1,2,3}) ) 
-print("\nDeterminantString(NF,Ind[\"Fe_2p\"]):"+print("\nDeterminantString(NF, Ind[\"Fe_2p\"]):"
-print(DeterminantString(NF,Ind["Fe_2p"]) ) +print(DeterminantString(NF, Ind["Fe_2p"]) ) 
-print("\nDeterminantString(NF,Ind[\"H_states\"]):"+print("\nDeterminantString(NF, Ind[\"H_states\"]):"
-print(DeterminantString(NF,Ind["H_states"]) ) +print(DeterminantString(NF, Ind["H_states"]) ) 
-print("\nDeterminantString(NF,Ind[\"Fe_states\"]):"+print("\nDeterminantString(NF, Ind[\"Fe_states\"]):"
-print(DeterminantString(NF,Ind["Fe_states"]) )+print(DeterminantString(NF, Ind["Fe_states"]) ) 
 +--Upcoming Version: 
 +print("\nDeterminantString(NF, Ind[\"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(NF,Ind["Fe_3d"]) , 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