qupled 1.3.3__cp310-cp310-macosx_14_0_arm64.whl → 1.3.4__cp310-cp310-macosx_14_0_arm64.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.
- qupled/.dylibs/libSQLiteCpp.0.dylib +0 -0
- qupled/.dylibs/{libsqlite3.3.50.1.dylib → libsqlite3.3.50.2.dylib} +0 -0
- qupled/database.py +66 -28
- qupled/esa.py +11 -5
- qupled/hf.py +134 -73
- qupled/lib/libfmt.a +0 -0
- qupled/mpi.py +104 -69
- qupled/native.cpython-310-darwin.so +0 -0
- qupled/qstls.py +13 -10
- qupled/qstlsiet.py +13 -10
- qupled/qvsstls.py +13 -11
- qupled/rpa.py +11 -7
- qupled/serialize.py +43 -0
- qupled/stls.py +29 -26
- qupled/stlsiet.py +34 -25
- qupled/timer.py +33 -0
- qupled/vsstls.py +44 -42
- {qupled-1.3.3.dist-info → qupled-1.3.4.dist-info}/METADATA +1 -1
- {qupled-1.3.3.dist-info → qupled-1.3.4.dist-info}/RECORD +22 -20
- {qupled-1.3.3.dist-info → qupled-1.3.4.dist-info}/WHEEL +0 -0
- {qupled-1.3.3.dist-info → qupled-1.3.4.dist-info}/licenses/LICENSE +0 -0
- {qupled-1.3.3.dist-info → qupled-1.3.4.dist-info}/top_level.txt +0 -0
qupled/vsstls.py
CHANGED
@@ -1,23 +1,26 @@
|
|
1
1
|
from __future__ import annotations
|
2
2
|
|
3
|
+
from dataclasses import field
|
3
4
|
import numpy as np
|
4
5
|
|
5
6
|
from . import native
|
6
7
|
from . import output
|
8
|
+
from . import serialize
|
7
9
|
from . import stls
|
8
10
|
|
9
11
|
|
10
|
-
class
|
12
|
+
class Solver(stls.Solver):
|
11
13
|
"""
|
12
14
|
Class used to solve the VSStls scheme.
|
13
15
|
"""
|
14
16
|
|
17
|
+
# Native classes used to solve the scheme
|
18
|
+
native_scheme_cls = native.VSStls
|
19
|
+
native_inputs_cls = native.VSStlsInput
|
20
|
+
|
15
21
|
def __init__(self):
|
16
22
|
super().__init__()
|
17
23
|
self.results: Result = Result()
|
18
|
-
# Undocumented properties
|
19
|
-
self.native_scheme_cls = native.VSStls
|
20
|
-
self.native_inputs_cls = native.VSStlsInput
|
21
24
|
|
22
25
|
def compute(self, inputs: Input):
|
23
26
|
"""
|
@@ -130,58 +133,53 @@ class VSStls(stls.Stls):
|
|
130
133
|
return FreeEnergyIntegrand(data[names[0]], data[names[1]])
|
131
134
|
|
132
135
|
|
133
|
-
|
136
|
+
@serialize.serializable_dataclass
|
134
137
|
class Input(stls.Input):
|
135
138
|
"""
|
136
139
|
Class used to manage the input for the :obj:`qupled.vsstls.VSStls` class.
|
137
140
|
"""
|
138
141
|
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
142
|
+
alpha: list[float] = field(default_factory=lambda: [0.5, 1.0])
|
143
|
+
"""Initial guess for the free parameter. Default = ``[0.5, 1.0]``"""
|
144
|
+
coupling_resolution: float = 0.1
|
145
|
+
"""Resolution of the coupling parameter grid. Default = ``0.1``"""
|
146
|
+
degeneracy_resolution: float = 0.1
|
147
|
+
"""Resolution of the degeneracy parameter grid. Default = ``0.1``"""
|
148
|
+
error_alpha: float = 1.0e-3
|
149
|
+
"""Minimum error for convergence in the free parameter. Default = ``1.0e-3``"""
|
150
|
+
iterations_alpha: int = 50
|
151
|
+
"""Maximum number of iterations to determine the free parameter. Default = ``50``"""
|
152
|
+
free_energy_integrand: FreeEnergyIntegrand = field(
|
153
|
+
default_factory=lambda: FreeEnergyIntegrand()
|
154
|
+
)
|
155
|
+
"""Pre-computed free energy integrand."""
|
156
|
+
threads: int = 9
|
157
|
+
"""Number of threads. Default = ``9``"""
|
158
|
+
# Undocumented default values
|
159
|
+
theory: str = "VSSTLS"
|
160
|
+
|
161
|
+
|
162
|
+
@serialize.serializable_dataclass
|
159
163
|
class Result(stls.Result):
|
160
164
|
"""
|
161
165
|
Class used to store the results for the :obj:`qupled.vsstls.VSStls` class.
|
162
166
|
"""
|
163
167
|
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
self.alpha = None
|
171
|
-
"""Free parameter"""
|
168
|
+
free_energy_grid: np.ndarray = None
|
169
|
+
"""Free energy grid"""
|
170
|
+
free_energy_integrand: np.ndarray = None
|
171
|
+
"""Free energy integrand"""
|
172
|
+
alpha: float = None
|
173
|
+
"""Free parameter"""
|
172
174
|
|
173
175
|
|
176
|
+
@serialize.serializable_dataclass
|
174
177
|
class FreeEnergyIntegrand:
|
175
178
|
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
):
|
181
|
-
self.grid = grid
|
182
|
-
""" Coupling parameter grid. Default = ``None``"""
|
183
|
-
self.integrand = integrand
|
184
|
-
""" Free energy integrand. Default = ``None``"""
|
179
|
+
grid: np.ndarray = None
|
180
|
+
""" Coupling parameter grid. Default = ``None``"""
|
181
|
+
integrand: np.ndarray = None
|
182
|
+
""" Free energy integrand. Default = ``None``"""
|
185
183
|
|
186
184
|
def to_native(self) -> native.FreeEnergyIntegrand:
|
187
185
|
"""
|
@@ -201,3 +199,7 @@ class FreeEnergyIntegrand:
|
|
201
199
|
if value is not None:
|
202
200
|
setattr(native_guess, attr, value)
|
203
201
|
return native_guess
|
202
|
+
|
203
|
+
|
204
|
+
if __name__ == "__main__":
|
205
|
+
Solver.run_mpi_worker(Input, Result)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: qupled
|
3
|
-
Version: 1.3.
|
3
|
+
Version: 1.3.4
|
4
4
|
Summary: qupled: a package to investigate quantum plasmas via the dielectric formalism
|
5
5
|
Author-email: Federico Lucco Castello <federico.luccocastello@gmail.com>
|
6
6
|
License-Expression: GPL-3.0-or-later
|
@@ -1,22 +1,24 @@
|
|
1
|
-
qupled-1.3.
|
2
|
-
qupled-1.3.
|
3
|
-
qupled-1.3.
|
4
|
-
qupled-1.3.
|
5
|
-
qupled-1.3.
|
6
|
-
qupled/qstls.py,sha256=
|
7
|
-
qupled/
|
8
|
-
qupled/
|
1
|
+
qupled-1.3.4.dist-info/RECORD,,
|
2
|
+
qupled-1.3.4.dist-info/WHEEL,sha256=BY2G-e9pCnwWPELNk7GCw-k-0y7AcCiRrhf_nAfhQVk,136
|
3
|
+
qupled-1.3.4.dist-info/top_level.txt,sha256=HLJfvnCPZQVptCRuekWA_3Z98SMkCNCXViGiGh8VenA,7
|
4
|
+
qupled-1.3.4.dist-info/METADATA,sha256=d75nW7MqQlfhF7evEanAi4GrVI2YqjjOdhmh241ptxA,4559
|
5
|
+
qupled-1.3.4.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
6
|
+
qupled/qstls.py,sha256=G2A5e_PUP1lsUaKEajrH3ZuY2lD5wxmsyYi8n7IN6nQ,2424
|
7
|
+
qupled/serialize.py,sha256=uNGQnAE2ABQnWSV-yjtEecByaaW1OzQ7I_Hp7g6z-_0,1325
|
8
|
+
qupled/rpa.py,sha256=5QwdMpqEj8WIR3Ncu605XzNr2Cw3afpqrK3OXSkgCPs,606
|
9
|
+
qupled/timer.py,sha256=q1X9mpvSaq2NxFk6P22ceclTSd2tkdofF1lPdENLuJ8,985
|
10
|
+
qupled/database.py,sha256=soPmbMpIYS7oELwOKU-W61LtwxLwu5xvwOFTb7LXzdI,26636
|
9
11
|
qupled/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
10
|
-
qupled/stlsiet.py,sha256=
|
11
|
-
qupled/qstlsiet.py,sha256=
|
12
|
-
qupled/esa.py,sha256=
|
13
|
-
qupled/mpi.py,sha256=
|
14
|
-
qupled/stls.py,sha256=
|
15
|
-
qupled/vsstls.py,sha256=
|
16
|
-
qupled/native.cpython-310-darwin.so,sha256=
|
17
|
-
qupled/qvsstls.py,sha256=
|
12
|
+
qupled/stlsiet.py,sha256=4zJMMhz1lmqcAGVz2OqwDKZa00jD1wJ5TXnW7siFKbs,3254
|
13
|
+
qupled/qstlsiet.py,sha256=UInCZT6jpTot8TQ6arpgqNMIg_KetCf3NL1r5xwxZhw,1039
|
14
|
+
qupled/esa.py,sha256=5LpHu4zdIe2p9DBnpYAqdW7KDeL75tPmsEbM3C5_nMA,684
|
15
|
+
qupled/mpi.py,sha256=fvFQr0fuQaIOo9si7-AGgctTPxpDvqo1RcsnBkNN4Cc,2998
|
16
|
+
qupled/stls.py,sha256=pxsqQG2yI_I59kCf8QdUbrSat53gX63u-sgFLPzAflQ,2878
|
17
|
+
qupled/vsstls.py,sha256=E07rQGF8HReVioWIw54vitm5lYP_hbEOi2MhoQC4aKk,7607
|
18
|
+
qupled/native.cpython-310-darwin.so,sha256=Aiu4_sw9bkkzv1Gqw9ZUsF4c0OdHeib_eIk3IP_OeG0,732080
|
19
|
+
qupled/qvsstls.py,sha256=ygJilrCV6d6byYerPhkDCccapDlqaBqu9k5O_lg8BB0,1642
|
18
20
|
qupled/output.py,sha256=VP_7oKPuULYa0UB-wX_J_cLnGd2mZZxrYeeTpNY-iwE,3602
|
19
|
-
qupled/hf.py,sha256=
|
21
|
+
qupled/hf.py,sha256=NYjLdeMpXHpNUuuECVGnMHlZGMi8fNESPtrrL2eHXOo,12157
|
20
22
|
qupled/include/fmt/ostream.h,sha256=-DnzYoGzasnlFOTG2UT29mmaIQG7NunUgJqt5L0l_2E,7305
|
21
23
|
qupled/include/fmt/format-inl.h,sha256=w5DfUohEgLEx3_0XhCrz3ejq5s1_Gq_aMLY--jadbmE,73646
|
22
24
|
qupled/include/fmt/ranges.h,sha256=h6mRGvU1Jz6fm-0A1towg7ce7DSRyaVAEyWKiCNCtvM,24446
|
@@ -32,10 +34,10 @@ qupled/include/fmt/format.h,sha256=Y71aNNE5v8oXJ7-6-UGvu1dRyHGtqqkbd9zlinByMHM,1
|
|
32
34
|
qupled/include/fmt/std.h,sha256=BkZ7QF9AKR9A8mxuRsFddWJUWBw5dBOnfAKyt9Yty0E,16239
|
33
35
|
qupled/.dylibs/libgsl.28.dylib,sha256=rcTB771UsiEC1W_E5mVMYKo6G91p0OD5GaUssM8gfk8,2241424
|
34
36
|
qupled/.dylibs/libomp.dylib,sha256=Ic_m8yVNxvjHQ-51C9MX9Bzl0wJAEsBdkx4V0_P_z7Y,735616
|
37
|
+
qupled/.dylibs/libsqlite3.3.50.2.dylib,sha256=Ae6aDP7MmVuBJwO7tcSfvaycvjWi5Dn4Xapjnw_bgzI,1241152
|
35
38
|
qupled/.dylibs/libgslcblas.0.dylib,sha256=3ATUzchJ3MFYqtB5KC07P7gu8g-GTlQ62fUwbNrZqMY,239760
|
36
|
-
qupled/.dylibs/libSQLiteCpp.0.dylib,sha256=
|
37
|
-
qupled
|
38
|
-
qupled/lib/libfmt.a,sha256=TcppYrO1FWyjbJoHz0VR9nTWeh0QmjWK9EVdnpcqffs,214704
|
39
|
+
qupled/.dylibs/libSQLiteCpp.0.dylib,sha256=neCBZ7UIgUr36H01mQ4E-eW8rgtddKk1q6NQRD0QYvc,94368
|
40
|
+
qupled/lib/libfmt.a,sha256=cv02jlJgBIWk2O3Nrgh3oybzwJ8cpb2amhIEnUOb0GQ,214704
|
39
41
|
qupled/lib/pkgconfig/fmt.pc,sha256=KxkEfD-qNYWIIyTdyr44cAa5CjL4pKBQ-xACHyMuA8c,351
|
40
42
|
qupled/lib/cmake/fmt/fmt-targets-release.cmake,sha256=0hurnnAYtVc8r8yvaxkXAS5Op01RPnwKE6SFNOL1nYA,807
|
41
43
|
qupled/lib/cmake/fmt/fmt-config.cmake,sha256=Cd-Xn_HSZ-Lk5ZBDX8q49OQKSvnS0_k4r0-tb6G8LW4,999
|
File without changes
|
File without changes
|
File without changes
|