quant-met 0.0.20__tar.gz → 0.0.21__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 (295) hide show
  1. {quant_met-0.0.20 → quant_met-0.0.21}/CHANGELOG.rst +15 -0
  2. {quant_met-0.0.20 → quant_met-0.0.21}/PKG-INFO +1 -1
  3. quant_met-0.0.21/edipack2triqs/pyproject.toml.license +3 -0
  4. {quant_met-0.0.20 → quant_met-0.0.21}/pyproject.toml +1 -1
  5. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/mean_field/__init__.py +0 -2
  6. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/mean_field/hamiltonians/base_hamiltonian.py +59 -0
  7. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_quantum_metric.py +5 -5
  8. quant_met-0.0.20/src/quant_met/mean_field/quantum_metric.py +0 -69
  9. {quant_met-0.0.20 → quant_met-0.0.21}/.coveragerc +0 -0
  10. {quant_met-0.0.20 → quant_met-0.0.21}/.github/dependabot.yml +0 -0
  11. {quant_met-0.0.20 → quant_met-0.0.21}/.github/workflows/check_version.yml +0 -0
  12. {quant_met-0.0.20 → quant_met-0.0.21}/.github/workflows/codspeed.yml +0 -0
  13. {quant_met-0.0.20 → quant_met-0.0.21}/.github/workflows/integration_tests.yml +0 -0
  14. {quant_met-0.0.20 → quant_met-0.0.21}/.github/workflows/publish.yml +0 -0
  15. {quant_met-0.0.20 → quant_met-0.0.21}/.github/workflows/unit_tests.yml +0 -0
  16. {quant_met-0.0.20 → quant_met-0.0.21}/.gitignore +0 -0
  17. {quant_met-0.0.20 → quant_met-0.0.21}/.pre-commit-config.yaml +0 -0
  18. {quant_met-0.0.20 → quant_met-0.0.21}/.readthedocs.yaml +0 -0
  19. {quant_met-0.0.20 → quant_met-0.0.21}/LICENSE.txt +0 -0
  20. {quant_met-0.0.20 → quant_met-0.0.21}/LICENSES/MIT.txt +0 -0
  21. {quant_met-0.0.20 → quant_met-0.0.21}/Makefile +0 -0
  22. {quant_met-0.0.20 → quant_met-0.0.21}/README.md +0 -0
  23. {quant_met-0.0.20 → quant_met-0.0.21}/changelog.d/scriv.ini +0 -0
  24. {quant_met-0.0.20 → quant_met-0.0.21}/check_version.sh +0 -0
  25. {quant_met-0.0.20 → quant_met-0.0.21}/docs/Makefile +0 -0
  26. {quant_met-0.0.20 → quant_met-0.0.21}/docs/make.bat +0 -0
  27. {quant_met-0.0.20 → quant_met-0.0.21}/docs/requirements.txt +0 -0
  28. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/_static/custom.css +0 -0
  29. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/_templates/autosummary/attribute.rst +0 -0
  30. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/_templates/autosummary/class.rst +0 -0
  31. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/_templates/autosummary/function.rst +0 -0
  32. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/_templates/autosummary/method.rst +0 -0
  33. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/_templates/autosummary/module.rst +0 -0
  34. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/_templates/autosummary/property.rst +0 -0
  35. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/_templates/autosummary/pydantic.rst +0 -0
  36. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/changelog.rst +0 -0
  37. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/conf.py +0 -0
  38. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/development.rst +0 -0
  39. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/example_input_T_C.yaml +0 -0
  40. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/example_input_T_C_one_band.yaml +0 -0
  41. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/example_input_dmft.yaml +0 -0
  42. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/example_input_scf.yaml +0 -0
  43. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/examples/band_structures.ipynb +0 -0
  44. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/examples/band_structures.ipynb.license +0 -0
  45. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/extra/versions.json +0 -0
  46. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/extra/versions.json.license +0 -0
  47. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/index.rst +0 -0
  48. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/cli.rst +0 -0
  49. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.bdg_hamiltonian.rst +0 -0
  50. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.bdg_hamiltonian_derivative.rst +0 -0
  51. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.calculate_bandstructure.rst +0 -0
  52. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.calculate_density_of_states.rst +0 -0
  53. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.calculate_spectral_gap.rst +0 -0
  54. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.diagonalize_bdg.rst +0 -0
  55. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.diagonalize_nonint.rst +0 -0
  56. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.from_file.rst +0 -0
  57. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.gap_equation.rst +0 -0
  58. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.get_parameters_model.rst +0 -0
  59. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.hamiltonian.rst +0 -0
  60. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.hamiltonian_derivative.rst +0 -0
  61. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.rst +0 -0
  62. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.save.rst +0 -0
  63. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.setup_lattice.rst +0 -0
  64. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.bdg_hamiltonian.rst +0 -0
  65. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.bdg_hamiltonian_derivative.rst +0 -0
  66. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.calculate_bandstructure.rst +0 -0
  67. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.calculate_density_of_states.rst +0 -0
  68. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.calculate_spectral_gap.rst +0 -0
  69. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.diagonalize_bdg.rst +0 -0
  70. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.diagonalize_nonint.rst +0 -0
  71. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.from_file.rst +0 -0
  72. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.gap_equation.rst +0 -0
  73. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.get_parameters_model.rst +0 -0
  74. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.hamiltonian.rst +0 -0
  75. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.hamiltonian_derivative.rst +0 -0
  76. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.rst +0 -0
  77. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.save.rst +0 -0
  78. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.setup_lattice.rst +0 -0
  79. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.bdg_hamiltonian.rst +0 -0
  80. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.bdg_hamiltonian_derivative.rst +0 -0
  81. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.calculate_bandstructure.rst +0 -0
  82. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.calculate_density_of_states.rst +0 -0
  83. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.calculate_spectral_gap.rst +0 -0
  84. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.diagonalize_bdg.rst +0 -0
  85. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.diagonalize_nonint.rst +0 -0
  86. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.from_file.rst +0 -0
  87. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.gap_equation.rst +0 -0
  88. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.get_parameters_model.rst +0 -0
  89. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.hamiltonian.rst +0 -0
  90. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.hamiltonian_derivative.rst +0 -0
  91. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.rst +0 -0
  92. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.save.rst +0 -0
  93. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.setup_lattice.rst +0 -0
  94. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.bdg_hamiltonian.rst +0 -0
  95. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.bdg_hamiltonian_derivative.rst +0 -0
  96. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.calculate_bandstructure.rst +0 -0
  97. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.calculate_density_of_states.rst +0 -0
  98. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.calculate_spectral_gap.rst +0 -0
  99. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.diagonalize_bdg.rst +0 -0
  100. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.diagonalize_nonint.rst +0 -0
  101. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.from_file.rst +0 -0
  102. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.gap_equation.rst +0 -0
  103. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.get_parameters_model.rst +0 -0
  104. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.hamiltonian.rst +0 -0
  105. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.hamiltonian_derivative.rst +0 -0
  106. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.rst +0 -0
  107. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.save.rst +0 -0
  108. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.setup_lattice.rst +0 -0
  109. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.bdg_hamiltonian.rst +0 -0
  110. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.bdg_hamiltonian_derivative.rst +0 -0
  111. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.calculate_bandstructure.rst +0 -0
  112. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.calculate_density_of_states.rst +0 -0
  113. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.calculate_spectral_gap.rst +0 -0
  114. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.diagonalize_bdg.rst +0 -0
  115. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.diagonalize_nonint.rst +0 -0
  116. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.from_file.rst +0 -0
  117. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.gap_equation.rst +0 -0
  118. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.get_parameters_model.rst +0 -0
  119. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.hamiltonian.rst +0 -0
  120. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.hamiltonian_derivative.rst +0 -0
  121. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.rst +0 -0
  122. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.save.rst +0 -0
  123. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.setup_lattice.rst +0 -0
  124. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.bdg_hamiltonian.rst +0 -0
  125. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.bdg_hamiltonian_derivative.rst +0 -0
  126. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.calculate_bandstructure.rst +0 -0
  127. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.calculate_density_of_states.rst +0 -0
  128. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.calculate_spectral_gap.rst +0 -0
  129. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.diagonalize_bdg.rst +0 -0
  130. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.diagonalize_nonint.rst +0 -0
  131. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.from_file.rst +0 -0
  132. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.gap_equation.rst +0 -0
  133. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.get_parameters_model.rst +0 -0
  134. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.hamiltonian.rst +0 -0
  135. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.hamiltonian_derivative.rst +0 -0
  136. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.rst +0 -0
  137. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.save.rst +0 -0
  138. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.setup_lattice.rst +0 -0
  139. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/parameters/hamiltonians/quant_met.parameters.hamiltonians.DressedGrapheneParameters.rst +0 -0
  140. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/parameters/hamiltonians/quant_met.parameters.hamiltonians.GrapheneParameters.rst +0 -0
  141. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/parameters/hamiltonians/quant_met.parameters.hamiltonians.HamiltonianParameters.rst +0 -0
  142. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/parameters/hamiltonians/quant_met.parameters.hamiltonians.OneBandParameters.rst +0 -0
  143. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/parameters/hamiltonians/quant_met.parameters.hamiltonians.ThreeBandParameters.rst +0 -0
  144. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/parameters/hamiltonians/quant_met.parameters.hamiltonians.TwoBandParameters.rst +0 -0
  145. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/parameters/hamiltonians/quant_met.parameters.hamiltonians.rst +0 -0
  146. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/parameters/quant_met.parameters.Control.rst +0 -0
  147. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/parameters/quant_met.parameters.KPoints.rst +0 -0
  148. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/parameters/quant_met.parameters.Parameters.rst +0 -0
  149. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.cli.cli.rst +0 -0
  150. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.geometry.BaseLattice.bz_corners.rst +0 -0
  151. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.geometry.BaseLattice.generate_bz_grid.rst +0 -0
  152. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.geometry.BaseLattice.generate_high_symmetry_path.rst +0 -0
  153. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.geometry.BaseLattice.high_symmetry_points.rst +0 -0
  154. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.geometry.BaseLattice.lattice_constant.rst +0 -0
  155. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.geometry.BaseLattice.reciprocal_basis.rst +0 -0
  156. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.geometry.BaseLattice.rst +0 -0
  157. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.geometry.GrapheneLattice.bz_corners.rst +0 -0
  158. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.geometry.GrapheneLattice.generate_bz_grid.rst +0 -0
  159. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.geometry.GrapheneLattice.generate_high_symmetry_path.rst +0 -0
  160. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.geometry.GrapheneLattice.high_symmetry_points.rst +0 -0
  161. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.geometry.GrapheneLattice.lattice_constant.rst +0 -0
  162. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.geometry.GrapheneLattice.reciprocal_basis.rst +0 -0
  163. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.geometry.GrapheneLattice.rst +0 -0
  164. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.geometry.SquareLattice.bz_corners.rst +0 -0
  165. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.geometry.SquareLattice.generate_bz_grid.rst +0 -0
  166. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.geometry.SquareLattice.generate_high_symmetry_path.rst +0 -0
  167. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.geometry.SquareLattice.high_symmetry_points.rst +0 -0
  168. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.geometry.SquareLattice.lattice_constant.rst +0 -0
  169. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.geometry.SquareLattice.reciprocal_basis.rst +0 -0
  170. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.geometry.SquareLattice.rst +0 -0
  171. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.geometry.generate_bz_path.rst +0 -0
  172. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.mean_field.hamiltonians.rst +0 -0
  173. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.mean_field.quantum_metric.rst +0 -0
  174. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.mean_field.search_crit_temp.rst +0 -0
  175. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.mean_field.self_consistency_loop.rst +0 -0
  176. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.mean_field.superfluid_weight.rst +0 -0
  177. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.plotting.format_plot.rst +0 -0
  178. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.plotting.plot_bandstructure.rst +0 -0
  179. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.plotting.plot_superfluid_weight.rst +0 -0
  180. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.plotting.scatter_into_bz.rst +0 -0
  181. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/generated/quant_met.utils.generate_uniform_grid.rst +0 -0
  182. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/geometry.rst +0 -0
  183. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/index.rst +0 -0
  184. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/mean_field.rst +0 -0
  185. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/parameters.rst +0 -0
  186. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/plotting.rst +0 -0
  187. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/reference/utils.rst +0 -0
  188. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/user_guide/first-scf.rst +0 -0
  189. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/user_guide/search_T_C.rst +0 -0
  190. {quant_met-0.0.20 → quant_met-0.0.21}/docs/source/user_guide.rst +0 -0
  191. {quant_met-0.0.20 → quant_met-0.0.21}/edipack2triqs/edipack2triqs/__init__.py +0 -0
  192. {quant_met-0.0.20 → quant_met-0.0.21}/edipack2triqs/edipack2triqs/bath.py +0 -0
  193. {quant_met-0.0.20 → quant_met-0.0.21}/edipack2triqs/edipack2triqs/bath.py.license +0 -0
  194. {quant_met-0.0.20 → quant_met-0.0.21}/edipack2triqs/edipack2triqs/fit.py +0 -0
  195. {quant_met-0.0.20 → quant_met-0.0.21}/edipack2triqs/edipack2triqs/fit.py.license +0 -0
  196. {quant_met-0.0.20 → quant_met-0.0.21}/edipack2triqs/edipack2triqs/hamiltonian.py +0 -0
  197. {quant_met-0.0.20 → quant_met-0.0.21}/edipack2triqs/edipack2triqs/hamiltonian.py.license +0 -0
  198. {quant_met-0.0.20 → quant_met-0.0.21}/edipack2triqs/edipack2triqs/solver.py +0 -0
  199. {quant_met-0.0.20 → quant_met-0.0.21}/edipack2triqs/edipack2triqs/solver.py.license +0 -0
  200. {quant_met-0.0.20 → quant_met-0.0.21}/edipack2triqs/edipack2triqs/util.py +0 -0
  201. {quant_met-0.0.20 → quant_met-0.0.21}/edipack2triqs/edipack2triqs/util.py.license +0 -0
  202. {quant_met-0.0.20 → quant_met-0.0.21}/edipack2triqs/pyproject.toml +0 -0
  203. {quant_met-0.0.20 → quant_met-0.0.21}/environment.yml +0 -0
  204. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/__init__.py +0 -0
  205. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/cli/__init__.py +0 -0
  206. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/cli/_utils.py +0 -0
  207. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/cli/crit_temp.py +0 -0
  208. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/cli/dmft.py +0 -0
  209. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/cli/main.py +0 -0
  210. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/cli/scf.py +0 -0
  211. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/dmft/__init__.py +0 -0
  212. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/dmft/dmft_loop.py +0 -0
  213. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/dmft/utils.py +0 -0
  214. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/geometry/__init__.py +0 -0
  215. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/geometry/base_lattice.py +0 -0
  216. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/geometry/bz_path.py +0 -0
  217. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/geometry/graphene.py +0 -0
  218. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/geometry/square.py +0 -0
  219. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/mean_field/_utils.py +0 -0
  220. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/mean_field/hamiltonians/__init__.py +0 -0
  221. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/mean_field/hamiltonians/dressed_graphene.py +0 -0
  222. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/mean_field/hamiltonians/graphene.py +0 -0
  223. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/mean_field/hamiltonians/one_band_tight_binding.py +0 -0
  224. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/mean_field/hamiltonians/three_band_tight_binding.py +0 -0
  225. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/mean_field/hamiltonians/two_band_tight_binding.py +0 -0
  226. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/mean_field/search_crit_temp.py +0 -0
  227. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/mean_field/self_consistency.py +0 -0
  228. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/parameters/__init__.py +0 -0
  229. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/parameters/hamiltonians.py +0 -0
  230. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/parameters/main.py +0 -0
  231. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/plotting/__init__.py +0 -0
  232. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/plotting/plotting.py +0 -0
  233. {quant_met-0.0.20 → quant_met-0.0.21}/src/quant_met/utils.py +0 -0
  234. {quant_met-0.0.20 → quant_met-0.0.21}/tests/__init__.py +0 -0
  235. {quant_met-0.0.20 → quant_met-0.0.21}/tests/baseline_images/test_plotting/nonint_bandstructure_dressed_graphene.png +0 -0
  236. {quant_met-0.0.20 → quant_met-0.0.21}/tests/baseline_images/test_plotting/nonint_bandstructure_dressed_graphene.png.license +0 -0
  237. {quant_met-0.0.20 → quant_met-0.0.21}/tests/baseline_images/test_plotting/nonint_bandstructure_graphene.png +0 -0
  238. {quant_met-0.0.20 → quant_met-0.0.21}/tests/baseline_images/test_plotting/nonint_bandstructure_graphene.png.license +0 -0
  239. {quant_met-0.0.20 → quant_met-0.0.21}/tests/baseline_images/test_plotting/nonint_bandstructure_one_band.png +0 -0
  240. {quant_met-0.0.20 → quant_met-0.0.21}/tests/baseline_images/test_plotting/nonint_bandstructure_one_band.png.license +0 -0
  241. {quant_met-0.0.20 → quant_met-0.0.21}/tests/baseline_images/test_plotting/scatter_into_bz.png +0 -0
  242. {quant_met-0.0.20 → quant_met-0.0.21}/tests/baseline_images/test_plotting/scatter_into_bz.png.license +0 -0
  243. {quant_met-0.0.20 → quant_met-0.0.21}/tests/baseline_images/test_plotting/scatter_into_bz_with_data.png +0 -0
  244. {quant_met-0.0.20 → quant_met-0.0.21}/tests/baseline_images/test_plotting/scatter_into_bz_with_data.png.license +0 -0
  245. {quant_met-0.0.20 → quant_met-0.0.21}/tests/baseline_images/test_plotting/sf_weight.png +0 -0
  246. {quant_met-0.0.20 → quant_met-0.0.21}/tests/baseline_images/test_plotting/sf_weight.png.license +0 -0
  247. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_benchmarks.py +0 -0
  248. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_cli.py +0 -0
  249. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_geometry.py +0 -0
  250. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/__init__.py +0 -0
  251. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/test_fixed_values.py +0 -0
  252. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/test_invalid_values.py +0 -0
  253. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/test_random_samples.py +0 -0
  254. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/test_regressions/test_bdg_hamiltonian_derivative_graphene.npz +0 -0
  255. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/test_regressions/test_bdg_hamiltonian_derivative_graphene.npz.license +0 -0
  256. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/test_regressions/test_current.npz +0 -0
  257. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/test_regressions/test_current.npz.license +0 -0
  258. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/test_regressions/test_density_of_states.npz +0 -0
  259. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/test_regressions/test_density_of_states.npz.license +0 -0
  260. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/test_regressions/test_free_energy.npz +0 -0
  261. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/test_regressions/test_free_energy.npz.license +0 -0
  262. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/test_regressions/test_hamiltonian_derivative_graphene.npz +0 -0
  263. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/test_regressions/test_hamiltonian_derivative_graphene.npz.license +0 -0
  264. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/test_regressions/test_hamiltonian_derivative_one_band.npz +0 -0
  265. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/test_regressions/test_hamiltonian_derivative_one_band.npz.license +0 -0
  266. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/test_regressions/test_hamiltonian_three_band.npz +0 -0
  267. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/test_regressions/test_hamiltonian_three_band.npz.license +0 -0
  268. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/test_regressions/test_hamiltonian_two_band.npz +0 -0
  269. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/test_regressions/test_hamiltonian_two_band.npz.license +0 -0
  270. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/test_regressions/test_spectral_gap.npz +0 -0
  271. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/test_regressions/test_spectral_gap.npz.license +0 -0
  272. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/test_regressions.py +0 -0
  273. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_hamiltonians/test_save.py +0 -0
  274. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_integration/__init__.py +0 -0
  275. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_integration/test_crit_temp.py +0 -0
  276. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_integration/test_scf.py +0 -0
  277. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_plotting.py +0 -0
  278. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_quantum_metric/test_quantum_metric_bdg_dressed_graphene.npz +0 -0
  279. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_quantum_metric/test_quantum_metric_bdg_dressed_graphene.npz.license +0 -0
  280. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_quantum_metric/test_quantum_metric_bdg_graphene.npz +0 -0
  281. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_quantum_metric/test_quantum_metric_bdg_graphene.npz.license +0 -0
  282. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_quantum_metric/test_quantum_metric_dressed_graphene.npz +0 -0
  283. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_quantum_metric/test_quantum_metric_dressed_graphene.npz.license +0 -0
  284. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_quantum_metric/test_quantum_metric_graphene.npz +0 -0
  285. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_quantum_metric/test_quantum_metric_graphene.npz.license +0 -0
  286. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_self_consistency.py +0 -0
  287. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_superfluid_weight/test_superfluid_weight_dressed_graphene.npz +0 -0
  288. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_superfluid_weight/test_superfluid_weight_dressed_graphene.npz.license +0 -0
  289. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_superfluid_weight/test_superfluid_weight_graphene.npz +0 -0
  290. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_superfluid_weight/test_superfluid_weight_graphene.npz.license +0 -0
  291. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_superfluid_weight.py +0 -0
  292. {quant_met-0.0.20 → quant_met-0.0.21}/tests/test_utils.py +0 -0
  293. {quant_met-0.0.20 → quant_met-0.0.21}/tox.ini +0 -0
  294. {quant_met-0.0.20 → quant_met-0.0.21}/uv.lock +0 -0
  295. {quant_met-0.0.20 → quant_met-0.0.21}/uv.lock.license +0 -0
@@ -2,6 +2,21 @@
2
2
  ..
3
3
  .. SPDX-License-Identifier: MIT
4
4
 
5
+ .. _changelog-0.0.21:
6
+
7
+ 0.0.21 — 2025-03-07
8
+ -------------------
9
+
10
+ Changed
11
+ ^^^^^^^
12
+
13
+ - Moved calculation of quantum metric into the Hamiltonian
14
+
15
+ Fixed
16
+ ^^^^^
17
+
18
+ - Fix one wrong conjugate in calculation of SF weight
19
+
5
20
  .. _changelog-0.0.20:
6
21
 
7
22
  0.0.20 — 2025-03-07
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: quant-met
3
- Version: 0.0.20
3
+ Version: 0.0.21
4
4
  Summary: Calculate superconductivity in flat-band systems.
5
5
  Author-email: Tjark Sievers <tsievers@physnet.uni-hamburg.de>
6
6
  License-File: LICENSE.txt
@@ -0,0 +1,3 @@
1
+ SPDX-FileCopyrightText: 2025 Tjark Sievers
2
+
3
+ SPDX-License-Identifier: MIT
@@ -4,7 +4,7 @@
4
4
 
5
5
  [project]
6
6
  name = "quant-met"
7
- version = "0.0.20"
7
+ version = "0.0.21"
8
8
  description = "Calculate superconductivity in flat-band systems."
9
9
  authors = [{name="Tjark Sievers", email="tsievers@physnet.uni-hamburg.de"}]
10
10
  readme = "README.md"
@@ -29,13 +29,11 @@ Functions
29
29
 
30
30
  from quant_met.mean_field import hamiltonians
31
31
 
32
- from .quantum_metric import quantum_metric
33
32
  from .search_crit_temp import search_crit_temp
34
33
  from .self_consistency import self_consistency_loop
35
34
 
36
35
  __all__ = [
37
36
  "hamiltonians",
38
- "quantum_metric",
39
37
  "search_crit_temp",
40
38
  "self_consistency_loop",
41
39
  ]
@@ -721,6 +721,65 @@ class BaseHamiltonian(Generic[GenericParameters], ABC):
721
721
 
722
722
  return c_mnpq
723
723
 
724
+ def calculate_quantum_metric(
725
+ self, k: npt.NDArray[np.floating], bands: list[int]
726
+ ) -> npt.NDArray[np.floating]:
727
+ """Calculate the quantum metric (geometric tensor) for specified bands.
728
+
729
+ This function computes the quantum geometric tensor associated with
730
+ the specified bands of a given Hamiltonian over a grid of k-points.
731
+ The output is a 2x2 matrix representing the quantum metric.
732
+
733
+ Parameters
734
+ ----------
735
+ h : BaseHamiltonian
736
+ Hamiltonian object used to compute Bloch states and their derivatives.
737
+ k : numpy.ndarray
738
+ Array of k points in the Brillouin zone.
739
+ bands : list of int
740
+ Indices of the bands for which the quantum metric is to be calculated.
741
+
742
+ Returns
743
+ -------
744
+ :class:`numpy.ndarray`
745
+ A 2x2 matrix representing the quantum metric.
746
+
747
+ Raises
748
+ ------
749
+ ValueError
750
+ If `bands` contains invalid indices or `k_grid` is empty.
751
+ """
752
+ energies, bloch = self.diagonalize_nonint(k)
753
+
754
+ number_k_points = len(k)
755
+
756
+ quantum_geom_tensor = np.zeros(shape=(2, 2), dtype=np.complex128)
757
+
758
+ for band in bands:
759
+ for i, direction_1 in enumerate(["x", "y"]):
760
+ h_derivative_direction_1 = self.hamiltonian_derivative(k=k, direction=direction_1)
761
+ for j, direction_2 in enumerate(["x", "y"]):
762
+ h_derivative_direction_2 = self.hamiltonian_derivative(
763
+ k=k, direction=direction_2
764
+ )
765
+ for k_index in range(len(k)):
766
+ for n in [i for i in range(self.number_of_bands) if i != band]:
767
+ quantum_geom_tensor[i, j] += (
768
+ (
769
+ bloch[k_index][:, band].conjugate()
770
+ @ h_derivative_direction_1[k_index]
771
+ @ bloch[k_index][:, n]
772
+ )
773
+ * (
774
+ bloch[k_index][:, n].conjugate()
775
+ @ h_derivative_direction_2[k_index]
776
+ @ bloch[k_index][:, band]
777
+ )
778
+ / (energies[k_index][band] - energies[k_index][n]) ** 2
779
+ )
780
+
781
+ return np.real(quantum_geom_tensor) / number_k_points
782
+
724
783
 
725
784
  def _fermi_dirac_derivative() -> float:
726
785
  return 0
@@ -31,9 +31,9 @@ def test_quantum_metric_dressed_graphene(ndarrays_regression: NDArraysRegression
31
31
  )
32
32
  )
33
33
 
34
- quantum_metric_0 = mean_field.quantum_metric(h=dressed_graphene_h, k=bz_grid, bands=[0])
35
- quantum_metric_1 = mean_field.quantum_metric(h=dressed_graphene_h, k=bz_grid, bands=[1])
36
- quantum_metric_2 = mean_field.quantum_metric(h=dressed_graphene_h, k=bz_grid, bands=[2])
34
+ quantum_metric_0 = dressed_graphene_h.calculate_quantum_metric(k=bz_grid, bands=[0])
35
+ quantum_metric_1 = dressed_graphene_h.calculate_quantum_metric(k=bz_grid, bands=[1])
36
+ quantum_metric_2 = dressed_graphene_h.calculate_quantum_metric(k=bz_grid, bands=[2])
37
37
 
38
38
  ndarrays_regression.check(
39
39
  {
@@ -62,8 +62,8 @@ def test_quantum_metric_graphene(ndarrays_regression: NDArraysRegressionFixture)
62
62
  )
63
63
  )
64
64
 
65
- quantum_metric_0 = mean_field.quantum_metric(h=graphene_h, k=bz_grid, bands=[0])
66
- quantum_metric_1 = mean_field.quantum_metric(h=graphene_h, k=bz_grid, bands=[1])
65
+ quantum_metric_0 = graphene_h.calculate_quantum_metric(k=bz_grid, bands=[0])
66
+ quantum_metric_1 = graphene_h.calculate_quantum_metric(k=bz_grid, bands=[1])
67
67
 
68
68
  ndarrays_regression.check(
69
69
  {
@@ -1,69 +0,0 @@
1
- # SPDX-FileCopyrightText: 2024 Tjark Sievers
2
- #
3
- # SPDX-License-Identifier: MIT
4
-
5
- """Functions to calculate the quantum metric."""
6
-
7
- import numpy as np
8
- import numpy.typing as npt
9
-
10
- from quant_met.mean_field.hamiltonians.base_hamiltonian import BaseHamiltonian
11
- from quant_met.parameters import GenericParameters
12
-
13
-
14
- def quantum_metric(
15
- h: BaseHamiltonian[GenericParameters], k: npt.NDArray[np.floating], bands: list[int]
16
- ) -> npt.NDArray[np.floating]:
17
- """Calculate the quantum metric (geometric tensor) for specified bands.
18
-
19
- This function computes the quantum geometric tensor associated with
20
- the specified bands of a given Hamiltonian over a grid of k-points.
21
- The output is a 2x2 matrix representing the quantum metric.
22
-
23
- Parameters
24
- ----------
25
- h : BaseHamiltonian
26
- Hamiltonian object used to compute Bloch states and their derivatives.
27
- k : numpy.ndarray
28
- Array of k points in the Brillouin zone.
29
- bands : list of int
30
- Indices of the bands for which the quantum metric is to be calculated.
31
-
32
- Returns
33
- -------
34
- :class:`numpy.ndarray`
35
- A 2x2 matrix representing the quantum metric.
36
-
37
- Raises
38
- ------
39
- ValueError
40
- If `bands` contains invalid indices or `k_grid` is empty.
41
- """
42
- energies, bloch = h.diagonalize_nonint(k)
43
-
44
- number_k_points = len(k)
45
-
46
- quantum_geom_tensor = np.zeros(shape=(2, 2), dtype=np.complex128)
47
-
48
- for band in bands:
49
- for i, direction_1 in enumerate(["x", "y"]):
50
- h_derivative_direction_1 = h.hamiltonian_derivative(k=k, direction=direction_1)
51
- for j, direction_2 in enumerate(["x", "y"]):
52
- h_derivative_direction_2 = h.hamiltonian_derivative(k=k, direction=direction_2)
53
- for k_index in range(len(k)):
54
- for n in [i for i in range(h.number_of_bands) if i != band]:
55
- quantum_geom_tensor[i, j] += (
56
- (
57
- bloch[k_index][:, band].conjugate()
58
- @ h_derivative_direction_1[k_index]
59
- @ bloch[k_index][:, n]
60
- )
61
- * (
62
- bloch[k_index][:, n].conjugate()
63
- @ h_derivative_direction_2[k_index]
64
- @ bloch[k_index][:, band]
65
- )
66
- / (energies[k_index][band] - energies[k_index][n]) ** 2
67
- )
68
-
69
- return np.real(quantum_geom_tensor) / number_k_points
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes