quant-met 0.0.7__py3-none-any.whl → 0.0.9__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/cli/__init__.py +22 -0
- quant_met/cli/main.py +34 -0
- quant_met/cli/scf.py +40 -0
- quant_met/geometry/__init__.py +12 -3
- quant_met/geometry/base_lattice.py +18 -4
- quant_met/geometry/graphene.py +11 -3
- quant_met/geometry/square.py +11 -3
- quant_met/mean_field/__init__.py +9 -32
- quant_met/mean_field/_utils.py +0 -11
- quant_met/mean_field/hamiltonians/__init__.py +31 -0
- quant_met/mean_field/{base_hamiltonian.py → hamiltonians/base_hamiltonian.py} +88 -77
- quant_met/mean_field/{eg_x.py → hamiltonians/dressed_graphene.py} +26 -58
- quant_met/mean_field/{graphene.py → hamiltonians/graphene.py} +20 -45
- quant_met/mean_field/{one_band_tight_binding.py → hamiltonians/one_band_tight_binding.py} +20 -48
- quant_met/mean_field/hamiltonians/three_band_tight_binding.py +116 -0
- quant_met/mean_field/hamiltonians/two_band_tight_binding.py +107 -0
- quant_met/mean_field/quantum_metric.py +4 -3
- quant_met/mean_field/self_consistency.py +15 -14
- quant_met/mean_field/superfluid_weight.py +7 -4
- quant_met/parameters/__init__.py +36 -0
- quant_met/parameters/hamiltonians.py +147 -0
- quant_met/parameters/main.py +37 -0
- quant_met/utils.py +1 -1
- {quant_met-0.0.7.dist-info → quant_met-0.0.9.dist-info}/METADATA +5 -3
- quant_met-0.0.9.dist-info/RECORD +33 -0
- quant_met-0.0.9.dist-info/entry_points.txt +3 -0
- quant_met/mean_field/free_energy.py +0 -130
- quant_met-0.0.7.dist-info/RECORD +0 -24
- {quant_met-0.0.7.dist-info → quant_met-0.0.9.dist-info}/LICENSE.txt +0 -0
- {quant_met-0.0.7.dist-info → quant_met-0.0.9.dist-info}/LICENSES/MIT.txt +0 -0
- {quant_met-0.0.7.dist-info → quant_met-0.0.9.dist-info}/WHEEL +0 -0
@@ -0,0 +1,36 @@
|
|
1
|
+
# SPDX-FileCopyrightText: 2024 Tjark Sievers
|
2
|
+
#
|
3
|
+
# SPDX-License-Identifier: MIT
|
4
|
+
|
5
|
+
"""
|
6
|
+
Parameters (:mod:`quant_met.parameters`)
|
7
|
+
========================================
|
8
|
+
|
9
|
+
.. autosummary::
|
10
|
+
:toctree: generated/parameters/
|
11
|
+
|
12
|
+
DressedGrapheneParameters
|
13
|
+
GrapheneParameters
|
14
|
+
OneBandParameters
|
15
|
+
Parameters
|
16
|
+
""" # noqa: D205, D400
|
17
|
+
|
18
|
+
from .hamiltonians import (
|
19
|
+
DressedGrapheneParameters,
|
20
|
+
GenericParameters,
|
21
|
+
GrapheneParameters,
|
22
|
+
OneBandParameters,
|
23
|
+
ThreeBandParameters,
|
24
|
+
TwoBandParameters,
|
25
|
+
)
|
26
|
+
from .main import Parameters
|
27
|
+
|
28
|
+
__all__ = [
|
29
|
+
"Parameters",
|
30
|
+
"DressedGrapheneParameters",
|
31
|
+
"GrapheneParameters",
|
32
|
+
"OneBandParameters",
|
33
|
+
"TwoBandParameters",
|
34
|
+
"ThreeBandParameters",
|
35
|
+
"GenericParameters",
|
36
|
+
]
|
@@ -0,0 +1,147 @@
|
|
1
|
+
# SPDX-FileCopyrightText: 2024 Tjark Sievers
|
2
|
+
#
|
3
|
+
# SPDX-License-Identifier: MIT
|
4
|
+
|
5
|
+
"""Pydantic models to hold parameters for Hamiltonians."""
|
6
|
+
|
7
|
+
from typing import Literal, TypeVar
|
8
|
+
|
9
|
+
import numpy as np
|
10
|
+
from numpydantic import NDArray, Shape
|
11
|
+
from pydantic import BaseModel, Field, field_validator
|
12
|
+
from pydantic_core.core_schema import ValidationInfo
|
13
|
+
|
14
|
+
GenericParameters = TypeVar("GenericParameters", bound="HamiltonianParameters")
|
15
|
+
|
16
|
+
|
17
|
+
def check_positive_values(value: float, info: ValidationInfo) -> float:
|
18
|
+
"""Check for positive values."""
|
19
|
+
if value < 0:
|
20
|
+
msg = f"{info.field_name} must be positive"
|
21
|
+
raise ValueError(msg)
|
22
|
+
return value
|
23
|
+
|
24
|
+
|
25
|
+
def validate_float(value: float, info: ValidationInfo) -> float:
|
26
|
+
"""Check for valid floats."""
|
27
|
+
if np.isinf(value):
|
28
|
+
msg = f"{info.field_name} must not be Infinity"
|
29
|
+
raise ValueError(msg)
|
30
|
+
if np.isnan(value):
|
31
|
+
msg = f"{info.field_name} must not be NaN"
|
32
|
+
raise ValueError(msg)
|
33
|
+
return value
|
34
|
+
|
35
|
+
|
36
|
+
class HamiltonianParameters(BaseModel):
|
37
|
+
"""Base class for Hamiltonian parameters."""
|
38
|
+
|
39
|
+
name: str
|
40
|
+
beta: float | None = Field(default=None, description="Inverse temperature")
|
41
|
+
q: NDArray[Shape["2"], int | float] | None = Field(
|
42
|
+
default=None, description="Momentum of Cooper pairs"
|
43
|
+
)
|
44
|
+
hubbard_int_orbital_basis: NDArray = Field(
|
45
|
+
..., description="Hubbard interaction in orbital basis"
|
46
|
+
)
|
47
|
+
|
48
|
+
|
49
|
+
class DressedGrapheneParameters(HamiltonianParameters):
|
50
|
+
"""Parameters for the dressed Graphene model."""
|
51
|
+
|
52
|
+
name: Literal["DressedGraphene"] = "DressedGraphene"
|
53
|
+
hopping_gr: float = Field(..., description="Hopping in graphene")
|
54
|
+
hopping_x: float = Field(..., description="Hopping in impurity")
|
55
|
+
hopping_x_gr_a: float = Field(..., description="Hybridization")
|
56
|
+
lattice_constant: float = Field(..., description="Lattice constant")
|
57
|
+
chemical_potential: float = Field(..., description="Chemical potential")
|
58
|
+
hubbard_int_orbital_basis: NDArray[Shape["3"], np.float64] = Field(
|
59
|
+
..., description="Hubbard interaction in orbital basis"
|
60
|
+
)
|
61
|
+
delta: NDArray[Shape["3"], np.complex64] | None = Field(
|
62
|
+
default=None, description="Initial value for gaps in orbital space"
|
63
|
+
)
|
64
|
+
|
65
|
+
_check_positive_values = field_validator(
|
66
|
+
"hopping_gr", "hopping_x", "hopping_x_gr_a", "lattice_constant"
|
67
|
+
)(check_positive_values)
|
68
|
+
|
69
|
+
_check_valid_floats = field_validator(
|
70
|
+
"hopping_gr", "hopping_x", "hopping_x_gr_a", "lattice_constant", "chemical_potential"
|
71
|
+
)(validate_float)
|
72
|
+
|
73
|
+
|
74
|
+
class GrapheneParameters(HamiltonianParameters):
|
75
|
+
"""Parameters for Graphene model."""
|
76
|
+
|
77
|
+
name: Literal["Graphene"] = "Graphene"
|
78
|
+
hopping: float
|
79
|
+
lattice_constant: float
|
80
|
+
chemical_potential: float
|
81
|
+
hubbard_int_orbital_basis: NDArray[Shape["2"], np.float64] = Field(
|
82
|
+
..., description="Hubbard interaction in orbital basis"
|
83
|
+
)
|
84
|
+
delta: NDArray[Shape["2"], np.complex64] | None = None
|
85
|
+
|
86
|
+
_check_positive_values = field_validator("hopping", "lattice_constant")(check_positive_values)
|
87
|
+
|
88
|
+
_check_valid_floats = field_validator("hopping", "lattice_constant", "chemical_potential")(
|
89
|
+
validate_float
|
90
|
+
)
|
91
|
+
|
92
|
+
|
93
|
+
class OneBandParameters(HamiltonianParameters):
|
94
|
+
"""Parameters for Graphene model."""
|
95
|
+
|
96
|
+
name: Literal["OneBand"] = "OneBand"
|
97
|
+
hopping: float
|
98
|
+
lattice_constant: float
|
99
|
+
chemical_potential: float
|
100
|
+
hubbard_int_orbital_basis: NDArray[Shape["1"], np.float64] = Field(
|
101
|
+
..., description="Hubbard interaction in orbital basis"
|
102
|
+
)
|
103
|
+
delta: NDArray[Shape["1"], np.complex64] | None = None
|
104
|
+
|
105
|
+
_check_positive_values = field_validator("hopping", "lattice_constant")(check_positive_values)
|
106
|
+
|
107
|
+
_check_valid_floats = field_validator("hopping", "lattice_constant", "chemical_potential")(
|
108
|
+
validate_float
|
109
|
+
)
|
110
|
+
|
111
|
+
|
112
|
+
class TwoBandParameters(HamiltonianParameters):
|
113
|
+
"""Parameters for Graphene model."""
|
114
|
+
|
115
|
+
name: Literal["TwoBand"] = "TwoBand"
|
116
|
+
hopping: float
|
117
|
+
lattice_constant: float
|
118
|
+
chemical_potential: float
|
119
|
+
hubbard_int_orbital_basis: NDArray[Shape["2"], np.float64] = Field(
|
120
|
+
..., description="Hubbard interaction in orbital basis"
|
121
|
+
)
|
122
|
+
delta: NDArray[Shape["2"], np.complex64] | None = None
|
123
|
+
|
124
|
+
_check_positive_values = field_validator("hopping", "lattice_constant")(check_positive_values)
|
125
|
+
|
126
|
+
_check_valid_floats = field_validator("hopping", "lattice_constant", "chemical_potential")(
|
127
|
+
validate_float
|
128
|
+
)
|
129
|
+
|
130
|
+
|
131
|
+
class ThreeBandParameters(HamiltonianParameters):
|
132
|
+
"""Parameters for Graphene model."""
|
133
|
+
|
134
|
+
name: Literal["ThreeBand"] = "ThreeBand"
|
135
|
+
hopping: float
|
136
|
+
lattice_constant: float
|
137
|
+
chemical_potential: float
|
138
|
+
hubbard_int_orbital_basis: NDArray[Shape["3"], np.float64] = Field(
|
139
|
+
..., description="Hubbard interaction in orbital basis"
|
140
|
+
)
|
141
|
+
delta: NDArray[Shape["3"], np.complex64] | None = None
|
142
|
+
|
143
|
+
_check_positive_values = field_validator("hopping", "lattice_constant")(check_positive_values)
|
144
|
+
|
145
|
+
_check_valid_floats = field_validator("hopping", "lattice_constant", "chemical_potential")(
|
146
|
+
validate_float
|
147
|
+
)
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# SPDX-FileCopyrightText: 2024 Tjark Sievers
|
2
|
+
#
|
3
|
+
# SPDX-License-Identifier: MIT
|
4
|
+
|
5
|
+
"""Pydantic models to hold parameters to run a simulation."""
|
6
|
+
|
7
|
+
import pathlib
|
8
|
+
|
9
|
+
from pydantic import BaseModel, Field
|
10
|
+
|
11
|
+
from .hamiltonians import DressedGrapheneParameters, GrapheneParameters, OneBandParameters
|
12
|
+
|
13
|
+
|
14
|
+
class Control(BaseModel):
|
15
|
+
"""Control for the calculation."""
|
16
|
+
|
17
|
+
calculation: str
|
18
|
+
prefix: str
|
19
|
+
outdir: pathlib.Path
|
20
|
+
conv_treshold: float
|
21
|
+
|
22
|
+
|
23
|
+
class KPoints(BaseModel):
|
24
|
+
"""Control for k points."""
|
25
|
+
|
26
|
+
nk1: int
|
27
|
+
nk2: int
|
28
|
+
|
29
|
+
|
30
|
+
class Parameters(BaseModel):
|
31
|
+
"""Class to hold the parameters for a calculation."""
|
32
|
+
|
33
|
+
control: Control
|
34
|
+
model: DressedGrapheneParameters | GrapheneParameters | OneBandParameters = Field(
|
35
|
+
..., discriminator="name"
|
36
|
+
)
|
37
|
+
k_points: KPoints
|
quant_met/utils.py
CHANGED
@@ -1,19 +1,21 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: quant-met
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.9
|
4
4
|
Summary: Calculate superconductivity in flat-band systems.
|
5
5
|
Home-page: https://quant-met.tjarksievers.de
|
6
6
|
Author: Tjark Sievers
|
7
7
|
Author-email: tsievers@physnet.uni-hamburg.de
|
8
|
-
Requires-Python: >=3.11,<
|
8
|
+
Requires-Python: >=3.11,<3.13
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
10
10
|
Classifier: Programming Language :: Python :: 3.11
|
11
11
|
Classifier: Programming Language :: Python :: 3.12
|
12
|
-
|
12
|
+
Requires-Dist: click (>=8.1.7,<9.0.0)
|
13
13
|
Requires-Dist: h5py (>=3.12.1,<4.0.0)
|
14
14
|
Requires-Dist: matplotlib (>=3.9.2,<4.0.0)
|
15
15
|
Requires-Dist: numpy (>=2.1.2,<3.0.0)
|
16
|
+
Requires-Dist: numpydantic (>=1.6.4,<2.0.0)
|
16
17
|
Requires-Dist: pandas (>=2.2.3,<3.0.0)
|
18
|
+
Requires-Dist: pydantic (>=2.9.2,<3.0.0)
|
17
19
|
Requires-Dist: scipy (>=1.14.1,<2.0.0)
|
18
20
|
Project-URL: Repository, https://github.com/Ruberhauptmann/quant-met
|
19
21
|
Description-Content-Type: text/markdown
|
@@ -0,0 +1,33 @@
|
|
1
|
+
quant_met/__init__.py,sha256=ZO1UFz1awUYTI7B9ZkBwucvDz7GMGXnLLUGnEwLBhkc,155
|
2
|
+
quant_met/cli/__init__.py,sha256=If5Jdi7mG-5PbIyjQGxnt9o2bsY5VyE3qtdcO5yTGnQ,321
|
3
|
+
quant_met/cli/main.py,sha256=EZTRRTfrN3z-srgbG2BoDg64iYBjzZLuuMtrxTdZU8s,698
|
4
|
+
quant_met/cli/scf.py,sha256=sc26jlsslZkVOw8Y88Fgm8gR6DZ99VhtNePqgsd8Ac4,1434
|
5
|
+
quant_met/geometry/__init__.py,sha256=uCLEDBrYuMUkEgJmPnLAvR2WlmvoM9X9_cV_Q2zMzoA,620
|
6
|
+
quant_met/geometry/base_lattice.py,sha256=dUBk3167cppy5nUNSEbXq57rwgbVnIen20jC_vrhomA,2642
|
7
|
+
quant_met/geometry/bz_path.py,sha256=q_eNhKYjhKLeFNjio8BdKVsseO6slQKlwKKSQQYTVJQ,2497
|
8
|
+
quant_met/geometry/graphene.py,sha256=AIKI2ice7LiKk5LHS27w97FkUds0UFV7EVNML3W5D28,1623
|
9
|
+
quant_met/geometry/square.py,sha256=lAEJ2R_2VBBPI_Bc-x-KhPE5r8AGoY1RgAx8GdoqdNY,1561
|
10
|
+
quant_met/mean_field/__init__.py,sha256=yH_UovKDaP5c06cb1uWPtvIO2WQ76pi6ZTsNBzE8oso,793
|
11
|
+
quant_met/mean_field/_utils.py,sha256=7hr0DDSdIqjft5Jjluvbw_HGoNLWgYJTxyuPJJvhBnc,356
|
12
|
+
quant_met/mean_field/hamiltonians/__init__.py,sha256=bThuXC2jHzyD6rG0CAII8huD2kCRnc_Dp-Cl7g3MDxg,741
|
13
|
+
quant_met/mean_field/hamiltonians/base_hamiltonian.py,sha256=51uargS4B2MNAa-GFxuQ_hzZjIOhlfjBFwyeDMWs8gk,12653
|
14
|
+
quant_met/mean_field/hamiltonians/dressed_graphene.py,sha256=arOfEFegblNTckow1_Xz-sf7xPNahcasjv_kGo-n4PE,4744
|
15
|
+
quant_met/mean_field/hamiltonians/graphene.py,sha256=IDQVWDzGDgIliyNGPP-c-tsfEeevhdrbD1I4fZKHQJw,3972
|
16
|
+
quant_met/mean_field/hamiltonians/one_band_tight_binding.py,sha256=Yj_AX6llD-It_VupY6tOgwUfpypt4S5Hw4yGNpz1GXE,3166
|
17
|
+
quant_met/mean_field/hamiltonians/three_band_tight_binding.py,sha256=4-7ryAM0vYxuLX65Y2IPGv6pTbx7NaY_l-G9wgdDjHI,3967
|
18
|
+
quant_met/mean_field/hamiltonians/two_band_tight_binding.py,sha256=kTqZ5VWGleHhB5leCF22TdnD9yS7T9LKmhs7OqdXe0Q,3539
|
19
|
+
quant_met/mean_field/quantum_metric.py,sha256=dBHh5OW_noTfhNW_kAkjuvfHiMdWmoPPwCDEdR05_2s,3992
|
20
|
+
quant_met/mean_field/self_consistency.py,sha256=riyrqjZZSg9L1Ryu_qz-fT3DY8mU5xUyvpmgK8XQgGo,1203
|
21
|
+
quant_met/mean_field/superfluid_weight.py,sha256=c7fNcq7JQQBpKt0R5JjkGlO-pAoznblPkA__5rNCyVw,4118
|
22
|
+
quant_met/parameters/__init__.py,sha256=t2bjPDW7pVYKP8nLG4mnFEgKiype6xbt8nK4YnKh9UQ,736
|
23
|
+
quant_met/parameters/hamiltonians.py,sha256=JcXXwR31FUSMcqCZmix8oGC4iy1IqregiFtD45Uht-4,5087
|
24
|
+
quant_met/parameters/main.py,sha256=_pBm9tvlOPjoZ-2ECVMegyCaSXkfD6IwdhHk5s9oRKw,790
|
25
|
+
quant_met/plotting/__init__.py,sha256=s-DS22impzozKiS7p-v3yCmeccDQfXmBbtPiYMKwH0Y,620
|
26
|
+
quant_met/plotting/plotting.py,sha256=_SqL8GrDqlBtccHnUWpZPqdSJy0Yd_4dhFdUOxOzPpY,7447
|
27
|
+
quant_met/utils.py,sha256=JG_tShSL1JIi-Fn-N6mVD6J0sl7Egf-zuHnOSEKu7VA,1666
|
28
|
+
quant_met-0.0.9.dist-info/LICENSE.txt,sha256=QO_duPQihSJlaxSLxPAXo52X3esROP5wBkhxqBd1Z4E,1104
|
29
|
+
quant_met-0.0.9.dist-info/LICENSES/MIT.txt,sha256=QO_duPQihSJlaxSLxPAXo52X3esROP5wBkhxqBd1Z4E,1104
|
30
|
+
quant_met-0.0.9.dist-info/METADATA,sha256=mY2CC8l98QgEPyGx4KrRUfQ7kqDtbfqI6qCTYnnHhew,2953
|
31
|
+
quant_met-0.0.9.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
32
|
+
quant_met-0.0.9.dist-info/entry_points.txt,sha256=fuVnEk5wiqPMEhn-Cc7q0Hdk2s_OniOn0zfdFPicH4Y,47
|
33
|
+
quant_met-0.0.9.dist-info/RECORD,,
|
@@ -1,130 +0,0 @@
|
|
1
|
-
# SPDX-FileCopyrightText: 2024 Tjark Sievers
|
2
|
-
#
|
3
|
-
# SPDX-License-Identifier: MIT
|
4
|
-
|
5
|
-
"""Functions to calculate the free energy of a BdG Hamiltonian."""
|
6
|
-
|
7
|
-
import numpy as np
|
8
|
-
import numpy.typing as npt
|
9
|
-
|
10
|
-
from .base_hamiltonian import BaseHamiltonian
|
11
|
-
|
12
|
-
|
13
|
-
def free_energy(
|
14
|
-
hamiltonian: BaseHamiltonian,
|
15
|
-
k_points: npt.NDArray[np.float64],
|
16
|
-
) -> float:
|
17
|
-
"""Calculate the free energy of a BdG Hamiltonian.
|
18
|
-
|
19
|
-
Parameters
|
20
|
-
----------
|
21
|
-
hamiltonian : :class:`BaseHamiltonian`
|
22
|
-
Hamiltonian to be evaluated.
|
23
|
-
k_points : :class:`numpy.ndarray`
|
24
|
-
List of k points
|
25
|
-
|
26
|
-
Returns
|
27
|
-
-------
|
28
|
-
float
|
29
|
-
Free energy from the BdG Hamiltonian.
|
30
|
-
|
31
|
-
"""
|
32
|
-
number_k_points = len(k_points)
|
33
|
-
bdg_energies, _ = hamiltonian.diagonalize_bdg(k_points)
|
34
|
-
|
35
|
-
k_array = np.array(
|
36
|
-
[
|
37
|
-
np.sum(np.abs(bdg_energies[k_index][0 : hamiltonian.number_of_bands]))
|
38
|
-
for k_index in range(number_k_points)
|
39
|
-
]
|
40
|
-
)
|
41
|
-
|
42
|
-
integral: float = -np.sum(k_array, axis=-1) / number_k_points + np.sum(
|
43
|
-
np.power(np.abs(hamiltonian.delta_orbital_basis), 2) / hamiltonian.hubbard_int_orbital_basis
|
44
|
-
)
|
45
|
-
|
46
|
-
return integral
|
47
|
-
|
48
|
-
|
49
|
-
def free_energy_complex_gap(
|
50
|
-
delta_vector: npt.NDArray[np.float64],
|
51
|
-
hamiltonian: BaseHamiltonian,
|
52
|
-
k_points: npt.NDArray[np.float64],
|
53
|
-
) -> float:
|
54
|
-
"""Calculate the free energy of a BdG Hamiltonian, with a complex order parameter.
|
55
|
-
|
56
|
-
Parameters
|
57
|
-
----------
|
58
|
-
delta_vector : :class:`numpy.ndarray`
|
59
|
-
Delta in orbital basis, with consecutive floats getting converted into one complex number,
|
60
|
-
so [a, b, c, d] -> [a+b*j, c+d*j].
|
61
|
-
hamiltonian : :class:`BaseHamiltonian`
|
62
|
-
Hamiltonian to be evaluated.
|
63
|
-
k_points : :class:`numpy.ndarray`
|
64
|
-
List of k points
|
65
|
-
|
66
|
-
Returns
|
67
|
-
-------
|
68
|
-
float
|
69
|
-
Free energy from the BdG Hamiltonian.
|
70
|
-
|
71
|
-
"""
|
72
|
-
hamiltonian.delta_orbital_basis = delta_vector[0::2] + 1j * delta_vector[1::2]
|
73
|
-
|
74
|
-
return free_energy(hamiltonian=hamiltonian, k_points=k_points)
|
75
|
-
|
76
|
-
|
77
|
-
def free_energy_real_gap(
|
78
|
-
delta_vector: npt.NDArray[np.float64],
|
79
|
-
hamiltonian: BaseHamiltonian,
|
80
|
-
k_points: npt.NDArray[np.float64],
|
81
|
-
) -> float:
|
82
|
-
"""Calculate the free energy of a BdG Hamiltonian, with a real order parameter.
|
83
|
-
|
84
|
-
Parameters
|
85
|
-
----------
|
86
|
-
delta_vector : :class:`numpy.ndarray`
|
87
|
-
Delta in orbital basis.
|
88
|
-
hamiltonian : :class:`BaseHamiltonian`
|
89
|
-
Hamiltonian to be evaluated.
|
90
|
-
k_points : :class:`numpy.ndarray`
|
91
|
-
List of k points
|
92
|
-
|
93
|
-
Returns
|
94
|
-
-------
|
95
|
-
float
|
96
|
-
Free energy from the BdG Hamiltonian.
|
97
|
-
|
98
|
-
"""
|
99
|
-
hamiltonian.delta_orbital_basis = delta_vector.astype(np.complex64)
|
100
|
-
|
101
|
-
return free_energy(hamiltonian=hamiltonian, k_points=k_points)
|
102
|
-
|
103
|
-
|
104
|
-
def free_energy_uniform_pairing(
|
105
|
-
delta: float,
|
106
|
-
hamiltonian: BaseHamiltonian,
|
107
|
-
k_points: npt.NDArray[np.float64],
|
108
|
-
) -> float:
|
109
|
-
"""Calculate the free energy of a BdG Hamiltonian, with uniform pairing constraint.
|
110
|
-
|
111
|
-
Parameters
|
112
|
-
----------
|
113
|
-
delta : float
|
114
|
-
Delta.
|
115
|
-
hamiltonian : :class:`BaseHamiltonian`
|
116
|
-
Hamiltonian to be evaluated.
|
117
|
-
k_points : :class:`numpy.ndarray`
|
118
|
-
List of k points
|
119
|
-
|
120
|
-
Returns
|
121
|
-
-------
|
122
|
-
float
|
123
|
-
Free energy from the BdG Hamiltonian.
|
124
|
-
|
125
|
-
"""
|
126
|
-
hamiltonian.delta_orbital_basis = np.full(
|
127
|
-
hamiltonian.number_of_bands, fill_value=delta, dtype=np.float64
|
128
|
-
).astype(np.complex64)
|
129
|
-
|
130
|
-
return free_energy(hamiltonian=hamiltonian, k_points=k_points)
|
quant_met-0.0.7.dist-info/RECORD
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
quant_met/__init__.py,sha256=ZO1UFz1awUYTI7B9ZkBwucvDz7GMGXnLLUGnEwLBhkc,155
|
2
|
-
quant_met/geometry/__init__.py,sha256=dWT4yYDBKsJUI9Hv1DDCGtqx-lDLQF6mH7xSRLomvD4,508
|
3
|
-
quant_met/geometry/base_lattice.py,sha256=QVHuZVy6bOvBSITY_mKhr7hYW1jHJ5UAm3sMCFClYZ0,2276
|
4
|
-
quant_met/geometry/bz_path.py,sha256=q_eNhKYjhKLeFNjio8BdKVsseO6slQKlwKKSQQYTVJQ,2497
|
5
|
-
quant_met/geometry/graphene.py,sha256=37CZXj_NpFsnR1pPE_jFbrAiiMFhs1Q3FLlcgqG2pwM,1264
|
6
|
-
quant_met/geometry/square.py,sha256=1fSrHab07uB6ildNzlbTwINJvPa5C2Az0B0uuOVJmMc,1216
|
7
|
-
quant_met/mean_field/__init__.py,sha256=sXKp572huLdcqYEj0b9ojgefLiOiIHV7CH2XN54WU7E,1368
|
8
|
-
quant_met/mean_field/_utils.py,sha256=plkx6eYjyYV3CT3BWwlulqW7L-Q0t1TzZTLR4k7u0dg,666
|
9
|
-
quant_met/mean_field/base_hamiltonian.py,sha256=kUZ6-eU525l_9e3YoSA66HsE9c5isUNjNqOh6T71OGk,11773
|
10
|
-
quant_met/mean_field/eg_x.py,sha256=w-6UcSVYPC-B58152aJpp0HDNoxyy46c6eXNZCGHi6Q,5805
|
11
|
-
quant_met/mean_field/free_energy.py,sha256=59GPLJhyllyAJEZteAr6iYqCbHGFsmV1zcYxJ8Aw9Ao,3448
|
12
|
-
quant_met/mean_field/graphene.py,sha256=8xMR43ndL5oJ7BbYBVGxWTLU5BscsE8ixTpPlCZzKO8,4917
|
13
|
-
quant_met/mean_field/one_band_tight_binding.py,sha256=ZfZQZxcqoKRtx3oomQyXwuong81K5vKKg0cyjs5JJ48,4138
|
14
|
-
quant_met/mean_field/quantum_metric.py,sha256=3OiwSDxz_Pw4uioGO18lYyYb_myK2kSCwF9AloUZIt4,3870
|
15
|
-
quant_met/mean_field/self_consistency.py,sha256=r2J9mEEcgWkI92exEol0tkwoWlM9ithodgNzdKEQpfs,1193
|
16
|
-
quant_met/mean_field/superfluid_weight.py,sha256=840Fe3aHOVz1W7hi5GrX69_QxQ3vmdy3H0_B852dZqA,3971
|
17
|
-
quant_met/plotting/__init__.py,sha256=s-DS22impzozKiS7p-v3yCmeccDQfXmBbtPiYMKwH0Y,620
|
18
|
-
quant_met/plotting/plotting.py,sha256=_SqL8GrDqlBtccHnUWpZPqdSJy0Yd_4dhFdUOxOzPpY,7447
|
19
|
-
quant_met/utils.py,sha256=Tvw_YfqjIWx0FPGSReikSnw9xfN-T2dpQZN-KPMa69A,1709
|
20
|
-
quant_met-0.0.7.dist-info/LICENSE.txt,sha256=QO_duPQihSJlaxSLxPAXo52X3esROP5wBkhxqBd1Z4E,1104
|
21
|
-
quant_met-0.0.7.dist-info/LICENSES/MIT.txt,sha256=QO_duPQihSJlaxSLxPAXo52X3esROP5wBkhxqBd1Z4E,1104
|
22
|
-
quant_met-0.0.7.dist-info/METADATA,sha256=eq-LGEGvKZsMw_MC5guVaJvrfvF24OmMkNLj6l74CRo,2880
|
23
|
-
quant_met-0.0.7.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
24
|
-
quant_met-0.0.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|