| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| documentation:language_reference:functions:determinantstring [2018/10/18 15:17] – Several lists Simon Heinze | documentation:language_reference:functions:determinantstring [2025/11/20 03:29] (current) – external edit 127.0.0.1 |
|---|
| |
| ### | ### |
| DeterminantString(//NF//,//Inds1//,//Inds2//,...) 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()]]//. | 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()]]//. |
| ### | ### |
| |
| |
| * //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 or several lists of indices. | * //Inds1//,... : One (release version) or several (upcoming versions) lists of indices. |
| |
| ===== Output ===== | ===== Output ===== |
| 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("\nDeterminantString(NF, Ind[\"H_1s\"], Ind[\"Fe_2p\"], Ind[\"Fe_3d\"]):" ) |
| print(DeterminantString(NF, Ind["H_1s"], Ind["Fe_2p"], Ind["Fe_3d"]) ) | print(DeterminantString(NF, Ind["H_1s"], Ind["Fe_2p"], Ind["Fe_3d"]) ) |