quant-met 0.0.26__tar.gz → 0.1.0__tar.gz

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.
Files changed (371) hide show
  1. {quant_met-0.0.26 → quant_met-0.1.0}/.coveragerc +0 -4
  2. quant_met-0.1.0/.github/codspeed.yml +35 -0
  3. {quant_met-0.0.26 → quant_met-0.1.0}/.github/dependabot.yml +1 -3
  4. {quant_met-0.0.26 → quant_met-0.1.0}/.github/workflows/check_version.yml +1 -3
  5. quant_met-0.1.0/.github/workflows/integration_tests.yml +34 -0
  6. quant_met-0.1.0/.github/workflows/linting.yml +33 -0
  7. {quant_met-0.0.26 → quant_met-0.1.0}/.github/workflows/publish.yml +3 -5
  8. quant_met-0.1.0/.github/workflows/typing.yml +33 -0
  9. quant_met-0.1.0/.github/workflows/unit_tests.yml +53 -0
  10. {quant_met-0.0.26 → quant_met-0.1.0}/.gitignore +1 -4
  11. quant_met-0.1.0/.pre-commit-config.yaml +15 -0
  12. {quant_met-0.0.26 → quant_met-0.1.0}/.readthedocs.yaml +4 -4
  13. quant_met-0.1.0/.vscode/settings.json +8 -0
  14. {quant_met-0.0.26 → quant_met-0.1.0}/CHANGELOG.rst +15 -3
  15. quant_met-0.1.0/Makefile +25 -0
  16. {quant_met-0.0.26 → quant_met-0.1.0}/PKG-INFO +7 -11
  17. {quant_met-0.0.26 → quant_met-0.1.0}/README.md +0 -6
  18. quant_met-0.1.0/changelog.d/scriv.ini +2 -0
  19. {quant_met-0.0.26 → quant_met-0.1.0}/check_version.sh +1 -3
  20. {quant_met-0.0.26 → quant_met-0.1.0}/docs/Makefile +1 -3
  21. {quant_met-0.0.26 → quant_met-0.1.0}/docs/make.bat +0 -4
  22. {quant_met-0.0.26 → quant_met-0.1.0}/docs/requirements.txt +1 -6
  23. {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/_static/custom.css +0 -6
  24. {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/_templates/autosummary/attribute.rst +1 -3
  25. {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/_templates/autosummary/class.rst +0 -4
  26. {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/_templates/autosummary/function.rst +1 -3
  27. {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/_templates/autosummary/method.rst +1 -3
  28. {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/_templates/autosummary/module.rst +1 -3
  29. {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/_templates/autosummary/property.rst +1 -3
  30. quant_met-0.1.0/docs/source/changelog.rst +6 -0
  31. {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/conf.py +5 -7
  32. {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/development.rst +7 -16
  33. quant_met-0.1.0/docs/source/examples/dec-graphene.HSX +0 -0
  34. quant_met-0.1.0/docs/source/examples/decorated_graphene_nonint.ipynb +198 -0
  35. quant_met-0.1.0/docs/source/examples/decorated_graphene_scf.ipynb +202 -0
  36. quant_met-0.1.0/docs/source/examples/decorated_graphene_sisl.ipynb +185 -0
  37. quant_met-0.1.0/docs/source/examples/example-crit-temp.yaml +12 -0
  38. quant_met-0.1.0/docs/source/examples/example-q-analysis-dec-graphene.yaml +9 -0
  39. quant_met-0.1.0/docs/source/examples/example-q-loop-dec-graphene.yaml +21 -0
  40. quant_met-0.1.0/docs/source/examples/example-q-loop-from-scratch.yaml +21 -0
  41. quant_met-0.1.0/docs/source/examples/example-q-loop.yaml +13 -0
  42. quant_met-0.1.0/docs/source/examples/example-scf.yaml +14 -0
  43. quant_met-0.1.0/docs/source/examples/hamiltonian.HSX +0 -0
  44. quant_met-0.1.0/docs/source/examples/test_sisl.ipynb +140 -0
  45. {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/extra/versions.json +2 -2
  46. {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/index.rst +1 -3
  47. quant_met-0.1.0/docs/source/reference/bdg.rst +5 -0
  48. quant_met-0.1.0/docs/source/reference/cli.rst +5 -0
  49. quant_met-0.1.0/docs/source/reference/generated/parameters/quant_met.parameters.Control.rst +6 -0
  50. quant_met-0.1.0/docs/source/reference/generated/parameters/quant_met.parameters.KPoints.rst +6 -0
  51. quant_met-0.1.0/docs/source/reference/generated/parameters/quant_met.parameters.Parameters.rst +6 -0
  52. quant_met-0.1.0/docs/source/reference/generated/quant_met.bdg.bdg_hamiltonian.rst +13 -0
  53. quant_met-0.1.0/docs/source/reference/generated/quant_met.bdg.calculate_current_density.rst +13 -0
  54. quant_met-0.1.0/docs/source/reference/generated/quant_met.bdg.calculate_superfluid_weight.rst +13 -0
  55. quant_met-0.1.0/docs/source/reference/generated/quant_met.bdg.diagonalize_bdg.rst +13 -0
  56. quant_met-0.1.0/docs/source/reference/generated/quant_met.bdg.gap_equation.rst +13 -0
  57. {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/reference/generated/quant_met.cli.cli.rst +0 -4
  58. quant_met-0.1.0/docs/source/reference/generated/quant_met.quantum_geometry.calculate_qgt.rst +13 -0
  59. quant_met-0.1.0/docs/source/reference/generated/quant_met.routines.self_consistency_loop.rst +13 -0
  60. quant_met-0.1.0/docs/source/reference/index.rst +31 -0
  61. quant_met-0.1.0/docs/source/reference/parameters.rst +5 -0
  62. quant_met-0.1.0/docs/source/reference/quantum_geometry.rst +5 -0
  63. quant_met-0.1.0/docs/source/reference/routines.rst +5 -0
  64. quant_met-0.1.0/docs/source/user_guide/first-scf.rst +4 -0
  65. quant_met-0.1.0/docs/source/user_guide/search_T_C.rst +4 -0
  66. quant_met-0.1.0/docs/source/user_guide.rst +15 -0
  67. quant_met-0.1.0/justfile +31 -0
  68. quant_met-0.1.0/pyproject.toml +88 -0
  69. quant_met-0.1.0/src/quant_met/__init__.py +5 -0
  70. quant_met-0.1.0/src/quant_met/bdg/__init__.py +26 -0
  71. quant_met-0.1.0/src/quant_met/bdg/bdg_hamiltonian.py +97 -0
  72. quant_met-0.1.0/src/quant_met/bdg/gap_equation.py +127 -0
  73. quant_met-0.1.0/src/quant_met/bdg/sc_current.py +60 -0
  74. quant_met-0.1.0/src/quant_met/bdg/superfluid_weight.py +110 -0
  75. {quant_met-0.0.26 → quant_met-0.1.0}/src/quant_met/cli/__init__.py +0 -4
  76. {quant_met-0.0.26 → quant_met-0.1.0}/src/quant_met/cli/crit_temp.py +18 -15
  77. {quant_met-0.0.26 → quant_met-0.1.0}/src/quant_met/cli/main.py +8 -8
  78. quant_met-0.1.0/src/quant_met/cli/q_analysis.py +60 -0
  79. quant_met-0.1.0/src/quant_met/cli/q_loop.py +91 -0
  80. quant_met-0.1.0/src/quant_met/cli/scf.py +92 -0
  81. quant_met-0.1.0/src/quant_met/parameters/__init__.py +24 -0
  82. quant_met-0.1.0/src/quant_met/parameters/control.py +57 -0
  83. quant_met-0.1.0/src/quant_met/parameters/main.py +38 -0
  84. quant_met-0.1.0/src/quant_met/quantum_geometry/__init__.py +13 -0
  85. quant_met-0.1.0/src/quant_met/quantum_geometry/qgt.py +37 -0
  86. quant_met-0.1.0/src/quant_met/routines/__init__.py +22 -0
  87. quant_met-0.1.0/src/quant_met/routines/analyse_q_data.py +226 -0
  88. quant_met-0.1.0/src/quant_met/routines/loop_over_q.py +154 -0
  89. {quant_met-0.0.26/src/quant_met/mean_field → quant_met-0.1.0/src/quant_met/routines}/search_crit_temp.py +71 -47
  90. {quant_met-0.0.26/src/quant_met/mean_field → quant_met-0.1.0/src/quant_met/routines}/self_consistency.py +32 -27
  91. {quant_met-0.0.26 → quant_met-0.1.0}/src/quant_met/utils.py +1 -5
  92. quant_met-0.1.0/tests/conftest.py +31 -0
  93. quant_met-0.1.0/tests/test_bdg.py +18 -0
  94. quant_met-0.1.0/tests/test_scf.py +16 -0
  95. {quant_met-0.0.26 → quant_met-0.1.0}/uv.lock +873 -268
  96. quant_met-0.0.26/.github/workflows/integration_tests.yml +0 -39
  97. quant_met-0.0.26/.github/workflows/unit_tests.yml +0 -40
  98. quant_met-0.0.26/.pre-commit-config.yaml +0 -32
  99. quant_met-0.0.26/LICENSES/MIT.txt +0 -9
  100. quant_met-0.0.26/Makefile +0 -42
  101. quant_met-0.0.26/changelog.d/scriv.ini +0 -6
  102. quant_met-0.0.26/docs/source/_templates/autosummary/pydantic.rst +0 -20
  103. quant_met-0.0.26/docs/source/changelog.rst +0 -8
  104. quant_met-0.0.26/docs/source/example_input_T_C.yaml +0 -23
  105. quant_met-0.0.26/docs/source/example_input_T_C_one_band.yaml +0 -21
  106. quant_met-0.0.26/docs/source/example_input_dmft.yaml +0 -32
  107. quant_met-0.0.26/docs/source/example_input_scf.yaml +0 -26
  108. quant_met-0.0.26/docs/source/examples/EG-X bands.pdf +0 -0
  109. quant_met-0.0.26/docs/source/examples/EG-X bands.pdf.license +0 -3
  110. quant_met-0.0.26/docs/source/examples/band_structures.ipynb +0 -165
  111. quant_met-0.0.26/docs/source/examples/band_structures.ipynb.license +0 -3
  112. quant_met-0.0.26/docs/source/extra/versions.json.license +0 -3
  113. quant_met-0.0.26/docs/source/reference/cli.rst +0 -7
  114. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.bdg_hamiltonian.rst +0 -17
  115. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.bdg_hamiltonian_derivative.rst +0 -17
  116. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.calculate_bandstructure.rst +0 -17
  117. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.calculate_current_density.rst +0 -17
  118. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.calculate_density_of_states.rst +0 -17
  119. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.calculate_free_energy.rst +0 -17
  120. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.calculate_quantum_metric.rst +0 -17
  121. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.calculate_spectral_gap.rst +0 -17
  122. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.calculate_superfluid_weight.rst +0 -17
  123. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.diagonalize_bdg.rst +0 -17
  124. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.diagonalize_nonint.rst +0 -17
  125. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.from_file.rst +0 -17
  126. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.gap_equation.rst +0 -17
  127. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.gap_equation_loop.rst +0 -17
  128. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.get_parameters_model.rst +0 -17
  129. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.hamiltonian.rst +0 -17
  130. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.hamiltonian_derivative.rst +0 -17
  131. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.rst +0 -43
  132. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.save.rst +0 -17
  133. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.setup_lattice.rst +0 -17
  134. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.bdg_hamiltonian.rst +0 -17
  135. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.bdg_hamiltonian_derivative.rst +0 -17
  136. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.calculate_bandstructure.rst +0 -17
  137. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.calculate_current_density.rst +0 -17
  138. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.calculate_density_of_states.rst +0 -17
  139. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.calculate_free_energy.rst +0 -17
  140. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.calculate_quantum_metric.rst +0 -17
  141. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.calculate_spectral_gap.rst +0 -17
  142. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.calculate_superfluid_weight.rst +0 -17
  143. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.diagonalize_bdg.rst +0 -17
  144. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.diagonalize_nonint.rst +0 -17
  145. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.from_file.rst +0 -17
  146. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.gap_equation.rst +0 -17
  147. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.gap_equation_loop.rst +0 -17
  148. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.get_parameters_model.rst +0 -17
  149. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.hamiltonian.rst +0 -17
  150. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.hamiltonian_derivative.rst +0 -17
  151. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.rst +0 -43
  152. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.save.rst +0 -17
  153. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.setup_lattice.rst +0 -17
  154. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.bdg_hamiltonian.rst +0 -17
  155. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.bdg_hamiltonian_derivative.rst +0 -17
  156. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.calculate_bandstructure.rst +0 -17
  157. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.calculate_current_density.rst +0 -17
  158. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.calculate_density_of_states.rst +0 -17
  159. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.calculate_free_energy.rst +0 -17
  160. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.calculate_quantum_metric.rst +0 -17
  161. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.calculate_spectral_gap.rst +0 -17
  162. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.calculate_superfluid_weight.rst +0 -17
  163. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.diagonalize_bdg.rst +0 -17
  164. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.diagonalize_nonint.rst +0 -17
  165. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.from_file.rst +0 -17
  166. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.gap_equation.rst +0 -17
  167. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.gap_equation_loop.rst +0 -17
  168. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.get_parameters_model.rst +0 -17
  169. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.hamiltonian.rst +0 -17
  170. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.hamiltonian_derivative.rst +0 -17
  171. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.rst +0 -43
  172. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.save.rst +0 -17
  173. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.setup_lattice.rst +0 -17
  174. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.bdg_hamiltonian.rst +0 -17
  175. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.bdg_hamiltonian_derivative.rst +0 -17
  176. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.calculate_bandstructure.rst +0 -17
  177. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.calculate_current_density.rst +0 -17
  178. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.calculate_density_of_states.rst +0 -17
  179. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.calculate_free_energy.rst +0 -17
  180. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.calculate_quantum_metric.rst +0 -17
  181. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.calculate_spectral_gap.rst +0 -17
  182. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.calculate_superfluid_weight.rst +0 -17
  183. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.diagonalize_bdg.rst +0 -17
  184. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.diagonalize_nonint.rst +0 -17
  185. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.from_file.rst +0 -17
  186. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.gap_equation.rst +0 -17
  187. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.gap_equation_loop.rst +0 -17
  188. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.get_parameters_model.rst +0 -17
  189. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.hamiltonian.rst +0 -17
  190. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.hamiltonian_derivative.rst +0 -17
  191. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.rst +0 -43
  192. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.save.rst +0 -17
  193. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.setup_lattice.rst +0 -17
  194. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.bdg_hamiltonian.rst +0 -17
  195. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.bdg_hamiltonian_derivative.rst +0 -17
  196. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.calculate_bandstructure.rst +0 -17
  197. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.calculate_current_density.rst +0 -17
  198. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.calculate_density_of_states.rst +0 -17
  199. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.calculate_free_energy.rst +0 -17
  200. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.calculate_quantum_metric.rst +0 -17
  201. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.calculate_spectral_gap.rst +0 -17
  202. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.calculate_superfluid_weight.rst +0 -17
  203. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.diagonalize_bdg.rst +0 -17
  204. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.diagonalize_nonint.rst +0 -17
  205. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.from_file.rst +0 -17
  206. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.gap_equation.rst +0 -17
  207. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.gap_equation_loop.rst +0 -17
  208. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.get_parameters_model.rst +0 -17
  209. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.hamiltonian.rst +0 -17
  210. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.hamiltonian_derivative.rst +0 -17
  211. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.rst +0 -43
  212. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.save.rst +0 -17
  213. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.setup_lattice.rst +0 -17
  214. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.bdg_hamiltonian.rst +0 -17
  215. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.bdg_hamiltonian_derivative.rst +0 -17
  216. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.calculate_bandstructure.rst +0 -17
  217. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.calculate_current_density.rst +0 -17
  218. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.calculate_density_of_states.rst +0 -17
  219. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.calculate_free_energy.rst +0 -17
  220. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.calculate_quantum_metric.rst +0 -17
  221. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.calculate_spectral_gap.rst +0 -17
  222. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.calculate_superfluid_weight.rst +0 -17
  223. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.diagonalize_bdg.rst +0 -17
  224. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.diagonalize_nonint.rst +0 -17
  225. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.from_file.rst +0 -17
  226. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.gap_equation.rst +0 -17
  227. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.gap_equation_loop.rst +0 -17
  228. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.get_parameters_model.rst +0 -17
  229. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.hamiltonian.rst +0 -17
  230. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.hamiltonian_derivative.rst +0 -17
  231. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.rst +0 -43
  232. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.save.rst +0 -17
  233. quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.setup_lattice.rst +0 -17
  234. quant_met-0.0.26/docs/source/reference/generated/parameters/hamiltonians/quant_met.parameters.hamiltonians.DressedGrapheneParameters.rst +0 -20
  235. quant_met-0.0.26/docs/source/reference/generated/parameters/hamiltonians/quant_met.parameters.hamiltonians.GrapheneParameters.rst +0 -20
  236. quant_met-0.0.26/docs/source/reference/generated/parameters/hamiltonians/quant_met.parameters.hamiltonians.HamiltonianParameters.rst +0 -20
  237. quant_met-0.0.26/docs/source/reference/generated/parameters/hamiltonians/quant_met.parameters.hamiltonians.OneBandParameters.rst +0 -20
  238. quant_met-0.0.26/docs/source/reference/generated/parameters/hamiltonians/quant_met.parameters.hamiltonians.ThreeBandParameters.rst +0 -20
  239. quant_met-0.0.26/docs/source/reference/generated/parameters/hamiltonians/quant_met.parameters.hamiltonians.TwoBandParameters.rst +0 -20
  240. quant_met-0.0.26/docs/source/reference/generated/parameters/hamiltonians/quant_met.parameters.hamiltonians.rst +0 -14
  241. quant_met-0.0.26/docs/source/reference/generated/parameters/quant_met.parameters.Control.rst +0 -20
  242. quant_met-0.0.26/docs/source/reference/generated/parameters/quant_met.parameters.KPoints.rst +0 -20
  243. quant_met-0.0.26/docs/source/reference/generated/parameters/quant_met.parameters.Parameters.rst +0 -20
  244. quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.BaseLattice.bz_corners.rst +0 -17
  245. quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.BaseLattice.generate_bz_grid.rst +0 -17
  246. quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.BaseLattice.generate_high_symmetry_path.rst +0 -17
  247. quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.BaseLattice.high_symmetry_points.rst +0 -17
  248. quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.BaseLattice.lattice_constant.rst +0 -17
  249. quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.BaseLattice.reciprocal_basis.rst +0 -17
  250. quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.BaseLattice.rst +0 -39
  251. quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.GrapheneLattice.bz_corners.rst +0 -17
  252. quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.GrapheneLattice.generate_bz_grid.rst +0 -17
  253. quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.GrapheneLattice.generate_high_symmetry_path.rst +0 -17
  254. quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.GrapheneLattice.high_symmetry_points.rst +0 -17
  255. quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.GrapheneLattice.lattice_constant.rst +0 -17
  256. quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.GrapheneLattice.reciprocal_basis.rst +0 -17
  257. quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.GrapheneLattice.rst +0 -39
  258. quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.SquareLattice.bz_corners.rst +0 -17
  259. quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.SquareLattice.generate_bz_grid.rst +0 -17
  260. quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.SquareLattice.generate_high_symmetry_path.rst +0 -17
  261. quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.SquareLattice.high_symmetry_points.rst +0 -17
  262. quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.SquareLattice.lattice_constant.rst +0 -17
  263. quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.SquareLattice.reciprocal_basis.rst +0 -17
  264. quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.SquareLattice.rst +0 -39
  265. quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.generate_bz_path.rst +0 -15
  266. quant_met-0.0.26/docs/source/reference/generated/quant_met.mean_field.hamiltonians.rst +0 -14
  267. quant_met-0.0.26/docs/source/reference/generated/quant_met.mean_field.search_crit_temp.rst +0 -15
  268. quant_met-0.0.26/docs/source/reference/generated/quant_met.mean_field.self_consistency_loop.rst +0 -15
  269. quant_met-0.0.26/docs/source/reference/generated/quant_met.plotting.format_plot.rst +0 -15
  270. quant_met-0.0.26/docs/source/reference/generated/quant_met.plotting.plot_bandstructure.rst +0 -15
  271. quant_met-0.0.26/docs/source/reference/generated/quant_met.plotting.plot_superfluid_weight.rst +0 -15
  272. quant_met-0.0.26/docs/source/reference/generated/quant_met.plotting.scatter_into_bz.rst +0 -15
  273. quant_met-0.0.26/docs/source/reference/generated/quant_met.utils.generate_uniform_grid.rst +0 -15
  274. quant_met-0.0.26/docs/source/reference/geometry.rst +0 -7
  275. quant_met-0.0.26/docs/source/reference/index.rst +0 -29
  276. quant_met-0.0.26/docs/source/reference/mean_field.rst +0 -7
  277. quant_met-0.0.26/docs/source/reference/parameters.rst +0 -7
  278. quant_met-0.0.26/docs/source/reference/plotting.rst +0 -7
  279. quant_met-0.0.26/docs/source/reference/utils.rst +0 -7
  280. quant_met-0.0.26/docs/source/user_guide/first-scf.rst +0 -6
  281. quant_met-0.0.26/docs/source/user_guide/search_T_C.rst +0 -6
  282. quant_met-0.0.26/docs/source/user_guide.rst +0 -19
  283. quant_met-0.0.26/environment.yml +0 -39
  284. quant_met-0.0.26/pyproject.toml +0 -61
  285. quant_met-0.0.26/src/quant_met/__init__.py +0 -5
  286. quant_met-0.0.26/src/quant_met/cli/_utils.py +0 -66
  287. quant_met-0.0.26/src/quant_met/cli/dmft.py +0 -96
  288. quant_met-0.0.26/src/quant_met/cli/scf.py +0 -70
  289. quant_met-0.0.26/src/quant_met/dmft/__init__.py +0 -5
  290. quant_met-0.0.26/src/quant_met/dmft/dmft_loop.py +0 -178
  291. quant_met-0.0.26/src/quant_met/dmft/utils.py +0 -207
  292. quant_met-0.0.26/src/quant_met/geometry/__init__.py +0 -35
  293. quant_met-0.0.26/src/quant_met/geometry/base_lattice.py +0 -99
  294. quant_met-0.0.26/src/quant_met/geometry/bz_path.py +0 -89
  295. quant_met-0.0.26/src/quant_met/geometry/graphene.py +0 -47
  296. quant_met-0.0.26/src/quant_met/geometry/square.py +0 -46
  297. quant_met-0.0.26/src/quant_met/mean_field/__init__.py +0 -39
  298. quant_met-0.0.26/src/quant_met/mean_field/_utils.py +0 -16
  299. quant_met-0.0.26/src/quant_met/mean_field/hamiltonians/__init__.py +0 -33
  300. quant_met-0.0.26/src/quant_met/mean_field/hamiltonians/base_hamiltonian.py +0 -792
  301. quant_met-0.0.26/src/quant_met/mean_field/hamiltonians/dressed_graphene.py +0 -117
  302. quant_met-0.0.26/src/quant_met/mean_field/hamiltonians/graphene.py +0 -94
  303. quant_met-0.0.26/src/quant_met/mean_field/hamiltonians/one_band_tight_binding.py +0 -69
  304. quant_met-0.0.26/src/quant_met/mean_field/hamiltonians/three_band_tight_binding.py +0 -84
  305. quant_met-0.0.26/src/quant_met/mean_field/hamiltonians/two_band_tight_binding.py +0 -75
  306. quant_met-0.0.26/src/quant_met/parameters/__init__.py +0 -49
  307. quant_met-0.0.26/src/quant_met/parameters/hamiltonians.py +0 -181
  308. quant_met-0.0.26/src/quant_met/parameters/main.py +0 -90
  309. quant_met-0.0.26/src/quant_met/plotting/__init__.py +0 -30
  310. quant_met-0.0.26/src/quant_met/plotting/plotting.py +0 -214
  311. quant_met-0.0.26/tests/__init__.py +0 -5
  312. quant_met-0.0.26/tests/baseline_images/test_plotting/nonint_bandstructure_dressed_graphene.png +0 -0
  313. quant_met-0.0.26/tests/baseline_images/test_plotting/nonint_bandstructure_dressed_graphene.png.license +0 -3
  314. quant_met-0.0.26/tests/baseline_images/test_plotting/nonint_bandstructure_graphene.png +0 -0
  315. quant_met-0.0.26/tests/baseline_images/test_plotting/nonint_bandstructure_graphene.png.license +0 -3
  316. quant_met-0.0.26/tests/baseline_images/test_plotting/nonint_bandstructure_one_band.png +0 -0
  317. quant_met-0.0.26/tests/baseline_images/test_plotting/nonint_bandstructure_one_band.png.license +0 -3
  318. quant_met-0.0.26/tests/baseline_images/test_plotting/scatter_into_bz.png +0 -0
  319. quant_met-0.0.26/tests/baseline_images/test_plotting/scatter_into_bz.png.license +0 -3
  320. quant_met-0.0.26/tests/baseline_images/test_plotting/scatter_into_bz_with_data.png +0 -0
  321. quant_met-0.0.26/tests/baseline_images/test_plotting/scatter_into_bz_with_data.png.license +0 -3
  322. quant_met-0.0.26/tests/baseline_images/test_plotting/sf_weight.png +0 -0
  323. quant_met-0.0.26/tests/baseline_images/test_plotting/sf_weight.png.license +0 -3
  324. quant_met-0.0.26/tests/test_benchmarks.py +0 -140
  325. quant_met-0.0.26/tests/test_cli.py +0 -134
  326. quant_met-0.0.26/tests/test_geometry.py +0 -40
  327. quant_met-0.0.26/tests/test_hamiltonians/__init__.py +0 -5
  328. quant_met-0.0.26/tests/test_hamiltonians/test_fixed_values.py +0 -126
  329. quant_met-0.0.26/tests/test_hamiltonians/test_invalid_values.py +0 -93
  330. quant_met-0.0.26/tests/test_hamiltonians/test_random_samples.py +0 -162
  331. quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_bdg_hamiltonian_derivative_graphene.npz +0 -0
  332. quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_bdg_hamiltonian_derivative_graphene.npz.license +0 -3
  333. quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_current.npz +0 -0
  334. quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_current.npz.license +0 -3
  335. quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_density_of_states.npz +0 -0
  336. quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_density_of_states.npz.license +0 -3
  337. quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_free_energy.npz +0 -0
  338. quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_free_energy.npz.license +0 -3
  339. quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_hamiltonian_derivative_graphene.npz +0 -0
  340. quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_hamiltonian_derivative_graphene.npz.license +0 -3
  341. quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_hamiltonian_derivative_one_band.npz +0 -0
  342. quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_hamiltonian_derivative_one_band.npz.license +0 -3
  343. quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_hamiltonian_three_band.npz +0 -0
  344. quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_hamiltonian_three_band.npz.license +0 -3
  345. quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_hamiltonian_two_band.npz +0 -0
  346. quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_hamiltonian_two_band.npz.license +0 -3
  347. quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_spectral_gap.npz +0 -0
  348. quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_spectral_gap.npz.license +0 -3
  349. quant_met-0.0.26/tests/test_hamiltonians/test_regressions.py +0 -304
  350. quant_met-0.0.26/tests/test_hamiltonians/test_save.py +0 -213
  351. quant_met-0.0.26/tests/test_integration/__init__.py +0 -5
  352. quant_met-0.0.26/tests/test_integration/test_crit_temp.py +0 -69
  353. quant_met-0.0.26/tests/test_integration/test_scf.py +0 -43
  354. quant_met-0.0.26/tests/test_plotting.py +0 -287
  355. quant_met-0.0.26/tests/test_quantum_metric/test_quantum_metric_bdg_dressed_graphene.npz.license +0 -3
  356. quant_met-0.0.26/tests/test_quantum_metric/test_quantum_metric_bdg_graphene.npz.license +0 -3
  357. quant_met-0.0.26/tests/test_quantum_metric/test_quantum_metric_dressed_graphene.npz +0 -0
  358. quant_met-0.0.26/tests/test_quantum_metric/test_quantum_metric_dressed_graphene.npz.license +0 -3
  359. quant_met-0.0.26/tests/test_quantum_metric/test_quantum_metric_graphene.npz +0 -0
  360. quant_met-0.0.26/tests/test_quantum_metric/test_quantum_metric_graphene.npz.license +0 -3
  361. quant_met-0.0.26/tests/test_quantum_metric.py +0 -74
  362. quant_met-0.0.26/tests/test_self_consistency.py +0 -62
  363. quant_met-0.0.26/tests/test_superfluid_weight/test_superfluid_weight_dressed_graphene.npz +0 -0
  364. quant_met-0.0.26/tests/test_superfluid_weight/test_superfluid_weight_dressed_graphene.npz.license +0 -3
  365. quant_met-0.0.26/tests/test_superfluid_weight/test_superfluid_weight_graphene.npz +0 -0
  366. quant_met-0.0.26/tests/test_superfluid_weight/test_superfluid_weight_graphene.npz.license +0 -3
  367. quant_met-0.0.26/tests/test_superfluid_weight.py +0 -72
  368. quant_met-0.0.26/tests/test_utils.py +0 -82
  369. quant_met-0.0.26/tox.ini +0 -28
  370. quant_met-0.0.26/uv.lock.license +0 -3
  371. {quant_met-0.0.26 → quant_met-0.1.0}/LICENSE.txt +0 -0
@@ -1,7 +1,3 @@
1
- # SPDX-FileCopyrightText: 2024 Tjark Sievers
2
- #
3
- # SPDX-License-Identifier: MIT
4
-
5
1
  [paths]
6
2
  source =
7
3
  src
@@ -0,0 +1,35 @@
1
+
2
+
3
+ name: Codspeed
4
+
5
+ on:
6
+ pull_request:
7
+ push:
8
+ branches:
9
+ - 'main'
10
+
11
+ permissions:
12
+ pull-requests: write
13
+
14
+ env:
15
+ NUMBA_DISABLE_JIT: 0
16
+
17
+ jobs:
18
+ test:
19
+ name: Codspeed
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - uses: actions/checkout@v4
23
+ with:
24
+ fetch-depth: 0
25
+ - uses: actions/checkout@v4
26
+ - name: Install uv
27
+ uses: astral-sh/setup-uv@v6
28
+ - name: Install the project
29
+ run: uv sync --group=test
30
+ - uses: extractions/setup-just@v3
31
+ - name: Run benchmarks
32
+ uses: CodSpeedHQ/action@v3
33
+ with:
34
+ token: ${{ secrets.CODSPEED_TOKEN }}
35
+ run: just test --codspeed
@@ -1,6 +1,4 @@
1
- # SPDX-FileCopyrightText: 2024 Tjark Sievers
2
- #
3
- # SPDX-License-Identifier: MIT
1
+
4
2
 
5
3
  # Set update schedule for GitHub Actions
6
4
  version: 2
@@ -1,6 +1,4 @@
1
- # SPDX-FileCopyrightText: 2024 Tjark Sievers
2
- #
3
- # SPDX-License-Identifier: MIT
1
+
4
2
 
5
3
  name: Check version
6
4
 
@@ -0,0 +1,34 @@
1
+
2
+
3
+ name: Integration tests
4
+
5
+ on:
6
+ workflow_call:
7
+ pull_request:
8
+ push:
9
+ branches:
10
+ - 'main'
11
+
12
+ permissions:
13
+ pull-requests: write
14
+
15
+ env:
16
+ NUMBA_DISABLE_JIT: 1
17
+
18
+ jobs:
19
+ test:
20
+ name: Integration tests
21
+ if: ${{ contains(github.event.head_commit.message, 'needs-integration') || github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') }}
22
+ runs-on: ubuntu-latest
23
+ steps:
24
+ - uses: actions/checkout@v4
25
+ with:
26
+ fetch-depth: 0
27
+ - uses: actions/checkout@v4
28
+ - name: Install uv
29
+ uses: astral-sh/setup-uv@v6
30
+ - name: Install the project
31
+ run: uv sync --group=test
32
+ - uses: extractions/setup-just@v3
33
+ - name: Run test suite
34
+ run: just test --with-slow-integration
@@ -0,0 +1,33 @@
1
+
2
+
3
+ name: Linting
4
+
5
+ on:
6
+ workflow_call:
7
+ pull_request:
8
+ push:
9
+ branches:
10
+ - 'main'
11
+
12
+ permissions:
13
+ pull-requests: write
14
+
15
+ jobs:
16
+ test:
17
+ name: Linting
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - uses: actions/checkout@v4
21
+ with:
22
+ fetch-depth: 0
23
+ - name: Set up Python 3.12
24
+ uses: actions/setup-python@v5
25
+ with:
26
+ python-version: "3.12"
27
+ - name: Install uv
28
+ uses: astral-sh/setup-uv@v6
29
+ - name: Install the project
30
+ run: uv sync --group=lint
31
+ - uses: extractions/setup-just@v3
32
+ - name: Run test suite
33
+ run: just lint
@@ -1,6 +1,4 @@
1
- # SPDX-FileCopyrightText: 2024 Tjark Sievers
2
- #
3
- # SPDX-License-Identifier: MIT
1
+
4
2
 
5
3
  name: Publish python package
6
4
 
@@ -16,13 +14,13 @@ jobs:
16
14
  tests:
17
15
  uses: ./.github/workflows/integration_tests.yml
18
16
  build:
19
- #needs: [tests]
17
+ needs: [tests]
20
18
  runs-on: ubuntu-latest
21
19
  permissions:
22
20
  id-token: write
23
21
  steps:
24
22
  - uses: actions/checkout@v4
25
23
  - name: Install uv
26
- uses: astral-sh/setup-uv@v5
24
+ uses: astral-sh/setup-uv@v6
27
25
  - name: Build and publish to pypi
28
26
  run: uv build && uv publish
@@ -0,0 +1,33 @@
1
+
2
+
3
+ name: Type checking
4
+
5
+ on:
6
+ workflow_call:
7
+ pull_request:
8
+ push:
9
+ branches:
10
+ - 'main'
11
+
12
+ permissions:
13
+ pull-requests: write
14
+
15
+ jobs:
16
+ test:
17
+ name: Type checking
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - uses: actions/checkout@v4
21
+ with:
22
+ fetch-depth: 0
23
+ - name: Set up Python 3.12
24
+ uses: actions/setup-python@v5
25
+ with:
26
+ python-version: "3.12"
27
+ - name: Install uv
28
+ uses: astral-sh/setup-uv@v6
29
+ - name: Install the project
30
+ run: uv sync --group=type
31
+ - uses: extractions/setup-just@v3
32
+ - name: Run test suite
33
+ run: just type
@@ -0,0 +1,53 @@
1
+
2
+
3
+ name: Unit tests
4
+
5
+ on:
6
+ workflow_call:
7
+ pull_request:
8
+ push:
9
+ branches:
10
+ - 'main'
11
+
12
+ permissions:
13
+ pull-requests: write
14
+
15
+ env:
16
+ NUMBA_DISABLE_JIT: 1
17
+
18
+ jobs:
19
+ test:
20
+ name: Unit tests
21
+ runs-on: ubuntu-latest
22
+ strategy:
23
+ matrix:
24
+ python-version: [ "3.11", "3.12", "3.13" ]
25
+ steps:
26
+ - uses: actions/checkout@v4
27
+ with:
28
+ fetch-depth: 0
29
+ - name: Install uv
30
+ uses: astral-sh/setup-uv@v6
31
+ with:
32
+ python-version: ${{ matrix.python-version }}
33
+ enable-cache: true
34
+ - name: Install the project
35
+ run: uv sync --group=test
36
+ - uses: extractions/setup-just@v3
37
+ - name: Run test suite
38
+ run: just test --without-slow-integration
39
+ - name: Coveralls
40
+ uses: coverallsapp/github-action@v2
41
+ with:
42
+ parallel: true
43
+ flag-name: python-${{ matrix.python-version }}
44
+
45
+ finish:
46
+ needs: test
47
+ runs-on: ubuntu-latest
48
+ steps:
49
+ - name: Close parallel build
50
+ uses: coverallsapp/github-action@v2
51
+ with:
52
+ parallel-finished: true
53
+ carryforward: "python-3.10,python-3.11,python-3.12,python-3.13"
@@ -1,7 +1,3 @@
1
- # SPDX-FileCopyrightText: 2024 Tjark Sievers
2
- #
3
- # SPDX-License-Identifier: MIT
4
-
5
1
  .idea/
6
2
  .coverage
7
3
  coverage.xml
@@ -9,6 +5,7 @@ report.xml
9
5
  .tox/
10
6
  **/__pycache__/
11
7
  docs/build
8
+ .codspeed/
12
9
  .hypothesis/
13
10
  result_images/
14
11
  **/.DS_Store
@@ -0,0 +1,15 @@
1
+
2
+
3
+ repos:
4
+ - repo: https://github.com/pre-commit/pre-commit-hooks
5
+ rev: v5.0.0
6
+ hooks:
7
+ - id: check-toml
8
+ - id: check-yaml
9
+ - id: end-of-file-fixer
10
+ - id: trailing-whitespace
11
+ - repo: https://github.com/pre-commit/pre-commit-hooks
12
+ rev: v5.0.0
13
+ hooks:
14
+ - id: no-commit-to-branch
15
+ args: [ --branch, main ]
@@ -1,6 +1,4 @@
1
- # SPDX-FileCopyrightText: 2024 Tjark Sievers
2
- #
3
- # SPDX-License-Identifier: MIT
1
+
4
2
 
5
3
  # .readthedocs.yaml
6
4
  # Read the Docs configuration file
@@ -29,5 +27,7 @@ sphinx:
29
27
  # to build your documentation
30
28
  # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
31
29
  python:
32
- install:
30
+ install:
33
31
  - requirements: docs/requirements.txt
32
+ - method: pip
33
+ path: .
@@ -0,0 +1,8 @@
1
+ {
2
+ "python.testing.pytestArgs": [
3
+ "tests"
4
+ ],
5
+ "python.testing.unittestEnabled": false,
6
+ "python.testing.pytestEnabled": true,
7
+ "python.analysis.typeCheckingMode": "standard"
8
+ }
@@ -1,6 +1,18 @@
1
- .. SPDX-FileCopyrightText: 2024 Tjark Sievers
2
- ..
3
- .. SPDX-License-Identifier: MIT
1
+
2
+ .. _changelog-0.1.0:
3
+
4
+ 0.1.0 — 2025-07-27
5
+ ------------------
6
+
7
+ Added
8
+ ^^^^^
9
+
10
+ - Routines to loop over finite momenta and analyse the resulting data
11
+
12
+ Changed
13
+ ^^^^^^^
14
+
15
+ - Switch whole architecture to use sisl as a basis for tight binding Hamiltonians
4
16
 
5
17
 
6
18
  .. _changelog-0.0.25:
@@ -0,0 +1,25 @@
1
+
2
+
3
+ SHELL:=/bin/bash
4
+
5
+ # Variables to test the conda environment
6
+ ifeq (,$(shell which uv))
7
+ HAS_UV=False
8
+ else
9
+ HAS_UV=True
10
+ endif
11
+
12
+ .PHONY: help
13
+ help: # Show help for each of the Makefile recipes.
14
+ @grep -E '^[a-zA-Z0-9 -]+:.*#' Makefile | sort | while read -r l; do printf "\033[1;32m$$(echo $$l | cut -f 1 -d':')\033[00m:$$(echo $$l | cut -f 2- -d'#')\n"; done
15
+
16
+
17
+ environment: # Install the development environment.
18
+ ifeq (True,$(HAS_UV))
19
+ @echo ">>> Detected uv."
20
+ uv sync --all-groups
21
+ uv run pre-commit install
22
+ else
23
+ @echo ">>> Install uv first."
24
+ exit
25
+ endif
@@ -1,35 +1,31 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: quant-met
3
- Version: 0.0.26
3
+ Version: 0.1.0
4
4
  Summary: Calculate superconductivity in flat-band systems.
5
- Author-email: Tjark Sievers <tsievers@physnet.uni-hamburg.de>
5
+ Author-email: Tjark Sievers <tjarksievers@icloud.com>
6
6
  License-File: LICENSE.txt
7
7
  Requires-Python: >=3.11
8
8
  Requires-Dist: click>=8.1.8
9
9
  Requires-Dist: h5py>=3.12.1
10
10
  Requires-Dist: matplotlib>=3.10.0
11
- Requires-Dist: numba>=0.60.0
12
- Requires-Dist: numpy<2.1
13
- Requires-Dist: numpydantic>=1.6.6
11
+ Requires-Dist: numba>=0.61.0
12
+ Requires-Dist: numpy>=2.1
13
+ Requires-Dist: numpydantic>=1.6.8
14
14
  Requires-Dist: pandas>=2.2.3
15
15
  Requires-Dist: pydantic>=2.10.4
16
16
  Requires-Dist: pyyaml>=6.0.2
17
17
  Requires-Dist: scipy>=1.15.0
18
+ Requires-Dist: sisl[viz]>0.16.0
18
19
  Requires-Dist: tables>=3.10.2
20
+ Requires-Dist: tbmodels>=1.4.3
19
21
  Description-Content-Type: text/markdown
20
22
 
21
- <!--
22
- SPDX-FileCopyrightText: 2024 Tjark Sievers
23
-
24
- SPDX-License-Identifier: MIT
25
- -->
26
23
 
27
24
  # quant-met
28
25
 
29
26
  [![DOI](https://zenodo.org/badge/800628635.svg)](https://zenodo.org/badge/latestdoi/800628635)
30
27
  [![Test](https://github.com/Ruberhauptmann/quant-met/actions/workflows/unit_tests.yml/badge.svg)](https://github.com/Ruberhauptmann/quant-met/actions/workflows/unit_tests.yml)
31
28
  [![Coverage Status](https://coveralls.io/repos/github/Ruberhauptmann/quant-met/badge.svg?branch=main)](https://coveralls.io/github/Ruberhauptmann/quant-met?branch=main)
32
- [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/quant-met)](https://pypi.org/project/quant-met/)
33
29
  [![PyPI - Version](https://img.shields.io/pypi/v/quant-met)](https://pypi.org/project/quant-met/)
34
30
 
35
31
  quant-met is a python package to treat superconductivity in flat-band systems.
@@ -1,15 +1,9 @@
1
- <!--
2
- SPDX-FileCopyrightText: 2024 Tjark Sievers
3
-
4
- SPDX-License-Identifier: MIT
5
- -->
6
1
 
7
2
  # quant-met
8
3
 
9
4
  [![DOI](https://zenodo.org/badge/800628635.svg)](https://zenodo.org/badge/latestdoi/800628635)
10
5
  [![Test](https://github.com/Ruberhauptmann/quant-met/actions/workflows/unit_tests.yml/badge.svg)](https://github.com/Ruberhauptmann/quant-met/actions/workflows/unit_tests.yml)
11
6
  [![Coverage Status](https://coveralls.io/repos/github/Ruberhauptmann/quant-met/badge.svg?branch=main)](https://coveralls.io/github/Ruberhauptmann/quant-met?branch=main)
12
- [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/quant-met)](https://pypi.org/project/quant-met/)
13
7
  [![PyPI - Version](https://img.shields.io/pypi/v/quant-met)](https://pypi.org/project/quant-met/)
14
8
 
15
9
  quant-met is a python package to treat superconductivity in flat-band systems.
@@ -0,0 +1,2 @@
1
+ [scriv]
2
+ rst_header_chars = -^
@@ -1,8 +1,6 @@
1
1
  #!/bin/bash
2
2
 
3
- # SPDX-FileCopyrightText: 2024 Tjark Sievers
4
- #
5
- # SPDX-License-Identifier: MIT
3
+
6
4
 
7
5
  set -e
8
6
 
@@ -1,6 +1,4 @@
1
- # SPDX-FileCopyrightText: 2024 Tjark Sievers
2
- #
3
- # SPDX-License-Identifier: MIT
1
+
4
2
 
5
3
  # Minimal makefile for Sphinx documentation
6
4
  #
@@ -1,7 +1,3 @@
1
- REM SPDX-FileCopyrightText: 2024 Tjark Sievers
2
- REM
3
- REM SPDX-License-Identifier: MIT
4
-
5
1
  @ECHO OFF
6
2
 
7
3
  pushd %~dp0
@@ -1,9 +1,4 @@
1
- # SPDX-FileCopyrightText: 2024 Tjark Sievers
2
- #
3
- # SPDX-License-Identifier: MIT
4
-
5
- -e .
6
- sphinx>=6.1.3
1
+ sphinx>=8.2
7
2
  pydata-sphinx-theme>=0.15.4
8
3
  myst-parser>=3.0.1
9
4
  nbsphinx>=0.9.4
@@ -1,9 +1,3 @@
1
- /*
2
- * SPDX-FileCopyrightText: 2024 Tjark Sievers
3
- *
4
- * SPDX-License-Identifier: MIT
5
- */
6
-
7
1
  /* Wrap long titles in pages */
8
2
  h1 {
9
3
  word-wrap: break-word;
@@ -1,6 +1,4 @@
1
- .. SPDX-FileCopyrightText: 2024 Tjark Sievers
2
- ..
3
- .. SPDX-License-Identifier: MIT
1
+
4
2
 
5
3
  :orphan:
6
4
 
@@ -1,7 +1,3 @@
1
- .. SPDX-FileCopyrightText: 2024 Tjark Sievers
2
- ..
3
- .. SPDX-License-Identifier: MIT
4
-
5
1
  .. raw:: html
6
2
 
7
3
  <div class="prename">{{ module }}.</div>
@@ -1,6 +1,4 @@
1
- .. SPDX-FileCopyrightText: 2024 Tjark Sievers
2
- ..
3
- .. SPDX-License-Identifier: MIT
1
+
4
2
 
5
3
  .. raw:: html
6
4
 
@@ -1,6 +1,4 @@
1
- .. SPDX-FileCopyrightText: 2024 Tjark Sievers
2
- ..
3
- .. SPDX-License-Identifier: MIT
1
+
4
2
 
5
3
  :orphan:
6
4
 
@@ -1,6 +1,4 @@
1
- .. SPDX-FileCopyrightText: 2024 Tjark Sievers
2
- ..
3
- .. SPDX-License-Identifier: MIT
1
+
4
2
 
5
3
  :orphan:
6
4
 
@@ -1,6 +1,4 @@
1
- .. SPDX-FileCopyrightText: 2024 Tjark Sievers
2
- ..
3
- .. SPDX-License-Identifier: MIT
1
+
4
2
 
5
3
  :orphan:
6
4
 
@@ -0,0 +1,6 @@
1
+
2
+
3
+ Changelog
4
+ =========
5
+
6
+ .. include:: ../../CHANGELOG.rst
@@ -1,6 +1,4 @@
1
- # SPDX-FileCopyrightText: 2024 Tjark Sievers
2
- #
3
- # SPDX-License-Identifier: MIT
1
+
4
2
 
5
3
  # Configuration file for the Sphinx documentation builder.
6
4
  #
@@ -13,9 +11,11 @@
13
11
 
14
12
  import importlib.metadata
15
13
  import os
14
+ import sys
15
+ sys.path.insert(0, os.path.abspath('../../src/'))
16
16
 
17
17
  project = "quant-met"
18
- copyright = "2024, Tjark Sievers"
18
+ copyright = "2025, Tjark Sievers"
19
19
  author = "Tjark Sievers"
20
20
  language = "en"
21
21
 
@@ -35,6 +35,7 @@ extensions = [
35
35
  "sphinx_design",
36
36
  "sphinxcontrib.autodoc_pydantic"
37
37
  ]
38
+ extensions.remove("sphinxcontrib.autodoc_pydantic")
38
39
 
39
40
  intersphinx_mapping = {
40
41
  "h5py": ("https://docs.h5py.org/en/latest/", None),
@@ -65,9 +66,6 @@ if not version_match or version_match.isdigit() or version_match == "latest":
65
66
  elif version_match == "stable":
66
67
  version_match = f"{release}"
67
68
 
68
- print(version_match)
69
- print(json_url)
70
-
71
69
  html_theme_options = {
72
70
  "github_url": "https://github.com/Ruberhauptmann/quant-met",
73
71
  "logo": {
@@ -1,7 +1,3 @@
1
- .. SPDX-FileCopyrightText: 2024 Tjark Sievers
2
- ..
3
- .. SPDX-License-Identifier: MIT
4
-
5
1
  Development
6
2
  ===========
7
3
 
@@ -13,26 +9,21 @@ This should help you get set up to start this.
13
9
 
14
10
  Prerequisites:
15
11
 
16
- * make
17
12
  * python
18
- * conda
13
+ * just
14
+ * uv
19
15
 
20
16
  Set up the development environment:
21
17
 
22
18
  * clone the repository
23
- * run ``make environment``
24
- * now activate the conda environment ``conda activate quant-met-dev``
19
+ * run ``just environment``
25
20
 
26
- You can manually run tests using for example ``tox -e py312`` (for running against python 3.12).
21
+ You can manually run tests using for example ``just test``.
27
22
  After pushing your branch, all tests will also be run via Github Actions.
28
23
 
29
24
  Using ``pre-commit``, automatic linting and formatting is done before every commit, which may cause the first commit to fail.
30
25
  A second try should then succeed.
31
26
 
32
- To fix the reuse copyright::
33
-
34
- reuse annotate --license=MIT --copyright="Tjark Sievers" --skip-unrecognised -r .
35
-
36
27
  After you are done working on an issue and all tests are running successful, you can add a new piece of changelog via ``scriv create`` and make a pull request.
37
28
 
38
29
  Release Walkthrough
@@ -51,9 +42,9 @@ Where ``x.x.x`` is the version number for the upcoming release.
51
42
  2. Make sure all tests pass
52
43
  +++++++++++++++++++++++++++
53
44
 
54
- Run all tests via::
45
+ Run all tests, linting and typechecking via::
55
46
 
56
- tox
47
+ just
57
48
 
58
49
 
59
50
  3. Collect changelog
@@ -73,7 +64,7 @@ This needs to be changed in ``docs/source/extra/versions.json``.
73
64
  5. Bump version
74
65
  +++++++++++++++
75
66
 
76
- In ``pyproject.toml``, then lock the new version via ``poetry lock``.
67
+ In ``pyproject.toml``, then lock the new version via ``uv lock``.
77
68
 
78
69
  6. Prepare Github release
79
70
  +++++++++++++++++++++++++