quant-met 0.0.11__py3-none-any.whl → 0.0.12__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- quant_met/mean_field/self_consistency.py +2 -6
- {quant_met-0.0.11.dist-info → quant_met-0.0.12.dist-info}/METADATA +1 -1
- {quant_met-0.0.11.dist-info → quant_met-0.0.12.dist-info}/RECORD +7 -7
- {quant_met-0.0.11.dist-info → quant_met-0.0.12.dist-info}/LICENSE.txt +0 -0
- {quant_met-0.0.11.dist-info → quant_met-0.0.12.dist-info}/LICENSES/MIT.txt +0 -0
- {quant_met-0.0.11.dist-info → quant_met-0.0.12.dist-info}/WHEEL +0 -0
- {quant_met-0.0.11.dist-info → quant_met-0.0.12.dist-info}/entry_points.txt +0 -0
@@ -77,13 +77,9 @@ def self_consistency_loop(
|
|
77
77
|
|
78
78
|
new_gap = h.gap_equation(k=k_space_grid)
|
79
79
|
|
80
|
-
if not np.allclose(h.delta_orbital_basis, 0):
|
81
|
-
delta_change = np.abs(h.delta_orbital_basis - new_gap) / np.abs(h.delta_orbital_basis)
|
82
|
-
else:
|
83
|
-
delta_change = np.abs(h.delta_orbital_basis - new_gap)
|
84
80
|
logger.debug("New gaps computed: %s", new_gap)
|
85
81
|
|
86
|
-
if (
|
82
|
+
if np.allclose(h.delta_orbital_basis, new_gap, atol=1e-10, rtol=epsilon):
|
87
83
|
h.delta_orbital_basis = new_gap
|
88
84
|
logger.info("Convergence achieved after %d iterations.", iteration_count)
|
89
85
|
return h
|
@@ -91,4 +87,4 @@ def self_consistency_loop(
|
|
91
87
|
mixing_greed = 0.2
|
92
88
|
h.delta_orbital_basis = mixing_greed * new_gap + (1 - mixing_greed) * h.delta_orbital_basis
|
93
89
|
logger.debug("Updated gaps: %s", h.delta_orbital_basis)
|
94
|
-
logger.debug("Change in gaps: %s",
|
90
|
+
logger.debug("Change in gaps: %s", np.abs(h.delta_orbital_basis - new_gap))
|
@@ -17,7 +17,7 @@ quant_met/mean_field/hamiltonians/one_band_tight_binding.py,sha256=SXHPoVd_zyevN
|
|
17
17
|
quant_met/mean_field/hamiltonians/three_band_tight_binding.py,sha256=MuOxUTPPBENjKBotPVQH-8343y4dv73jtZXo-w8mJsA,3282
|
18
18
|
quant_met/mean_field/hamiltonians/two_band_tight_binding.py,sha256=Vk01wY1UP4V1yYHZ9RmlbB0cybPJjGlrBUkR8d3o3j8,2852
|
19
19
|
quant_met/mean_field/quantum_metric.py,sha256=2yRu2bfgMxgPcVqasmqfgUy8-O7gXJwJI7ziuvIShXU,2580
|
20
|
-
quant_met/mean_field/self_consistency.py,sha256=
|
20
|
+
quant_met/mean_field/self_consistency.py,sha256=dLTpD89IgUCrI_I_vCgLrvrPpMyUrZpZnAzGktIQsoE,3119
|
21
21
|
quant_met/mean_field/superfluid_weight.py,sha256=0T_vkJB9AvjeaPG_y5h_3ZHh-0MCefeXnaPOn-hYjKw,4127
|
22
22
|
quant_met/parameters/__init__.py,sha256=i1pOw78ZshfBsUiUOKVo17C5xD9PfeJvlKITDRFKFvo,968
|
23
23
|
quant_met/parameters/hamiltonians.py,sha256=u5a-hVC6FzY1kHFdcHlNG7i3c7T5vpC-XPraTg_WzVM,6402
|
@@ -25,9 +25,9 @@ quant_met/parameters/main.py,sha256=acLuOLn5KD9_h5cbnd5H3akkF9XwcwAhLqV7jYJh0OA,
|
|
25
25
|
quant_met/plotting/__init__.py,sha256=HEt2KKhUOR1he2cKL9GLfGfqN87Q6jl_AKylGC20U4g,544
|
26
26
|
quant_met/plotting/plotting.py,sha256=ueFKhGK2mo-_JKifhRlgT6WDuEbKSMwDaTNnl70tCZQ,6583
|
27
27
|
quant_met/utils.py,sha256=JG_tShSL1JIi-Fn-N6mVD6J0sl7Egf-zuHnOSEKu7VA,1666
|
28
|
-
quant_met-0.0.
|
29
|
-
quant_met-0.0.
|
30
|
-
quant_met-0.0.
|
31
|
-
quant_met-0.0.
|
32
|
-
quant_met-0.0.
|
33
|
-
quant_met-0.0.
|
28
|
+
quant_met-0.0.12.dist-info/LICENSE.txt,sha256=QO_duPQihSJlaxSLxPAXo52X3esROP5wBkhxqBd1Z4E,1104
|
29
|
+
quant_met-0.0.12.dist-info/LICENSES/MIT.txt,sha256=QO_duPQihSJlaxSLxPAXo52X3esROP5wBkhxqBd1Z4E,1104
|
30
|
+
quant_met-0.0.12.dist-info/METADATA,sha256=EyfCUoNH9QPU75fVisPlvk4jy9CUtRN9LtCiscbi4pw,2045
|
31
|
+
quant_met-0.0.12.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
32
|
+
quant_met-0.0.12.dist-info/entry_points.txt,sha256=fuVnEk5wiqPMEhn-Cc7q0Hdk2s_OniOn0zfdFPicH4Y,47
|
33
|
+
quant_met-0.0.12.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|