예제 #1
0
#!/usr/bin/env python3
"""
Parses the DMRG output file and saves energies to files. 
"""

from DMRG_parser_functions import save_variables_simple

for which in ["u", "v"]:
    print("saving " + which)
    saved_sets, saved = save_variables_simple("get_sc_amplitudes",
                                              "get_sc_amplitudes", which)

    if saved != 0:
        print("Saved {} amplitudes in {} sets.".format(saved, saved_sets))

    else:
        print("No files found in given range!")
예제 #2
0
#!/usr/bin/env python3


from DMRG_parser_functions import save_variables_simple

saved_sets, saved = save_variables_simple("get_spin_spin_total_sum", "get_spin_spin_total_sum")

if saved!=0:
	print("Saved {} occupancies in {} sets.".format(saved, saved_sets))
	
else:
	print("No files found in given range!")
예제 #3
0
#!/usr/bin/env python3
"""
Parses the DMRG output file and saves impurity occupations of the nGS-1 sector to files. 
"""

from DMRG_parser_functions import save_variables_simple

saved, saved_sets = save_variables_simple("get_imp_occupancy_GS",
                                          "get_imp_occ_nSz", [-1, -0.5])

if saved != 0:
    print("Saved {} occupancies in {} sets.".format(saved, saved_sets))

else:
    print("No files found in given range!")
예제 #4
0
#!/usr/bin/env python3
"""
Parses the DMRG output file and saves energies to files. 
"""

from DMRG_parser_functions import save_variables_simple

saved_sets, saved = save_variables_simple("get_spin_correlations",
                                          "get_spin_correlations")

if saved != 0:
    print("Saved {} correlations in {} sets.".format(saved, saved_sets))

else:
    print("No files found in given range!")
예제 #5
0
#!/usr/bin/env python3
"""
Parses the DMRG output file and saves ns to files. This is useful in the cases where the range of computed n-sectors changes during the iteration. 
"""
from DMRG_parser_functions import save_variables_simple

saved_sets, saved = save_variables_simple("get_ns", "get_ns")

if saved != 0:
    print("Saved {} ns in {} sets.".format(saved, saved_sets))

else:
    print("No files found in given range!")
#!/usr/bin/env python3
"""
Parses the DMRG output file and saves the doublet overlaps. 
"""

from DMRG_parser_functions import save_variables_simple

for which in ["BCSL", "BCSR", "OS"]:
    print("saving " + which)
    saved, saved_sets = save_variables_simple("get_ZBA_overlaps_" + which,
                                              "get_ZBA_overlaps_" + which)

    if saved != 0:
        print("Saved {} overlaps in {} sets.".format(saved, saved_sets))

    else:
        print("No files found in given range!")
예제 #7
0
#!/usr/bin/env python3
"""
Parses the DMRG output file and saves energies to files. 
"""

from DMRG_parser_functions import save_variables_simple

saved_sets, saved = save_variables_simple("get_fullH_energies", "get_fullH_energies")


if saved!=0:
	print("Saved {} energies in {} sets.".format(saved, saved_sets))
	
else:
	print("No files found in given range!") 
예제 #8
0
#!/usr/bin/env python3
"""
Parses the DMRG output file and saves entropies to files. 
"""

from DMRG_parser_functions import save_variables_simple

for which in ["before", "after"]:
    print(f"saving {which}")

    saved_sets, saved = save_variables_simple("get_entropies_before_after",
                                              "get_entropies_before_after",
                                              which)

    if saved != 0:
        print("Saved {} {} entropies in {} sets.".format(
            saved, which, saved_sets))

    else:
        print("No files found in given range!")
예제 #9
0
#!/usr/bin/env python3
"""
Parses the DMRG output file and saves ns to files. This is useful in the cases where the range of computed n-sectors changes during the iteration. 
"""
from DMRG_parser_functions import save_variables_simple

saved_sets, saved = save_variables_simple("get_exciteds", "get_exciteds")

if saved != 0:
    print("Saved {} exciteds in {} sets.".format(saved, saved_sets))

else:
    print("No files found in given range!")
예제 #10
0
#!/usr/bin/env python3
"""
Parses the DMRG output file and saves impurity occupations of the nGS sector to files. 
"""

from DMRG_parser_functions import save_variables_simple

for which in ["zero", "up", "down", "two"]:
    print("saving " + which)
    saved, saved_sets = save_variables_simple("get_imp_amplitudes_" + which,
                                              "get_imp_amplitudes_" + which)

    if saved != 0:
        print("Saved {} occupancies in {} sets.".format(saved, saved_sets))

    else:
        print("No files found in given range!")
예제 #11
0
#!/usr/bin/env python3
"""
Parses the DMRG output file and saves impurity occupations of the nGS sector to files. 
"""

from DMRG_parser_functions import save_variables_simple

saved, saved_sets = save_variables_simple("get_total_spin", "get_total_spin")

if saved != 0:
    print("Saved {} occupancies in {} sets.".format(saved, saved_sets))

else:
    print("No files found in given range!")
예제 #12
0
#!/usr/bin/env python3
"""
Parses the DMRG output file and saves impurity occupations of the nGS sector to files. 
"""

from DMRG_parser_functions import save_variables_simple

import sys

if len(sys.argv) != 7:
    print("Give the quantum numbers of the states!")
    print("Usage: " + str(sys.argv[0]) + " n1 Sz1 i1 n2 Sz2 i2")
    exit()

n1 = int(sys.argv[1])
Sz1 = float(sys.argv[2])
i1 = int(sys.argv[3])
n2 = int(sys.argv[4])
Sz2 = float(sys.argv[5])
i2 = int(sys.argv[6])

saved_sets, saved = save_variables_simple(f"get_cdag_overlaps",
                                          "get_cdag_overlaps",
                                          [n1, Sz1, i1, n2, Sz2, i2])

if saved != 0:
    print("Saved {} cdag overlaps in {} sets.".format(saved, saved_sets))
else:
    print("No files found in given range!")
예제 #13
0
#!/usr/bin/env python3
"""
Parses the DMRG output file and saves entropies to files. 
"""

from DMRG_parser_functions import save_variables_simple

saved_sets, saved = save_variables_simple("get_entropies", "get_entropies")

if saved != 0:
    print("Saved {} entropies in {} sets.".format(saved, saved_sets))

else:
    print("No files found in given range!")
#!/usr/bin/env python3
"""
Parses the DMRG output file and saves energies to files. 
"""

from DMRG_parser_functions import save_variables_simple

saved_sets, saved = save_variables_simple("get_charge_correlations",
                                          "get_charge_correlations")

if saved != 0:
    print("Saved {} correlations in {} sets.".format(saved, saved_sets))

else:
    print("No files found in given range!")
예제 #15
0
#!/usr/bin/env python3
"""
Parses the DMRG output file and saves impurity occupations of the nGS sector to files. 
"""

from DMRG_parser_functions import save_variables_simple

import sys

if len(sys.argv) != 3:
    print("Set which matrix element you want!")
    print("Usage: " + str(sys.argv[0]) + " i, j")
    exit()

i = int(sys.argv[1])
j = int(sys.argv[2])

saved, saved_sets = save_variables_simple(f"get_charge_susceptibility_{i}_{j}",
                                          "get_charge_susceptibility", [i, j])

if saved != 0:
    print("Saved {} occupancies in {} sets.".format(saved, saved_sets))

else:
    print("No files found in given range!")
예제 #16
0
#!/usr/bin/env python3


from DMRG_parser_functions import save_variables_simple

saved_sets, saved = save_variables_simple("get_left_right_spin_spin_sum", "get_left_right_spin_spin_sum")

if saved!=0:
	print("Saved {} occupancies in {} sets.".format(saved, saved_sets))
	
else:
	print("No files found in given range!")
예제 #17
0
#!/usr/bin/env python3

from DMRG_parser_functions import save_variables_simple

for which in ["1", "2"]:
    print(f"Saving {which}")

    saved_sets, saved = save_variables_simple("get_channels_energy",
                                              "get_channels_energy", which)

if saved != 0:
    print("Saved {} energies in {} sets.".format(saved, saved_sets))

else:
    print("No files found in given range!")
예제 #18
0
#!/usr/bin/env python3

from DMRG_parser_functions import save_variables_simple

saved_sets, saved = save_variables_simple("get_right_occupancies",
                                          "get_right_occupancies")

if saved != 0:
    print("Saved {} occupancies in {} sets.".format(saved, saved_sets))

else:
    print("No files found in given range!")
예제 #19
0
#!/usr/bin/env python3
"""
Parses the DMRG output file and saves spectral weights to files. 
"""
from DMRG_parser_functions import save_variables_simple

saved_sets, saved = save_variables_simple("get_spectral_weights",
                                          "get_spectral_weights")

if saved != 0:
    print("Saved {} energies in {} sets.".format(saved, saved_sets))

else:
    print("No files found in given range!")
예제 #20
0
#!/usr/bin/env python3
"""
Parses the DMRG output file and saves impurity occupations of the nGS sector to files. 
"""

from DMRG_parser_functions import save_variables_simple

saved, saved_sets = save_variables_simple("get_imp_occupancies",
                                          "get_imp_occupancies")

if saved != 0:
    print("Saved {} occupancies in {} sets.".format(saved, saved_sets))

else:
    print("No files found in given range!")
예제 #21
0
#!/usr/bin/env python3
"""
Parses the DMRG output file and saves impurity occupations of the nGS sector to files. 
"""

from DMRG_parser_functions import save_variables_simple

import sys

if len(sys.argv) != 3:
    print("Set which matrix element you want!")
    print("Usage: " + str(sys.argv[0]) + " i, j")
    exit()

i = int(sys.argv[1])
j = int(sys.argv[2])

saved_sets, saved = save_variables_simple(f"get_dipole_moments_{i}_{j}",
                                          "get_dipole_moments", [i, j])

if saved != 0:
    print("Saved {} dipole moments in {} sets.".format(saved, saved_sets))

else:
    print("No files found in given range!")