quant-met 0.1.0__tar.gz → 0.1.2__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 (96) hide show
  1. {quant_met-0.1.0 → quant_met-0.1.2}/CHANGELOG.rst +22 -0
  2. {quant_met-0.1.0 → quant_met-0.1.2}/PKG-INFO +1 -1
  3. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/extra/versions.json +1 -1
  4. {quant_met-0.1.0 → quant_met-0.1.2}/pyproject.toml +1 -1
  5. {quant_met-0.1.0 → quant_met-0.1.2}/src/quant_met/cli/q_analysis.py +2 -1
  6. {quant_met-0.1.0 → quant_met-0.1.2}/src/quant_met/cli/q_loop.py +10 -6
  7. {quant_met-0.1.0 → quant_met-0.1.2}/.coveragerc +0 -0
  8. {quant_met-0.1.0 → quant_met-0.1.2}/.github/codspeed.yml +0 -0
  9. {quant_met-0.1.0 → quant_met-0.1.2}/.github/dependabot.yml +0 -0
  10. {quant_met-0.1.0 → quant_met-0.1.2}/.github/workflows/check_version.yml +0 -0
  11. {quant_met-0.1.0 → quant_met-0.1.2}/.github/workflows/integration_tests.yml +0 -0
  12. {quant_met-0.1.0 → quant_met-0.1.2}/.github/workflows/linting.yml +0 -0
  13. {quant_met-0.1.0 → quant_met-0.1.2}/.github/workflows/publish.yml +0 -0
  14. {quant_met-0.1.0 → quant_met-0.1.2}/.github/workflows/typing.yml +0 -0
  15. {quant_met-0.1.0 → quant_met-0.1.2}/.github/workflows/unit_tests.yml +0 -0
  16. {quant_met-0.1.0 → quant_met-0.1.2}/.gitignore +0 -0
  17. {quant_met-0.1.0 → quant_met-0.1.2}/.pre-commit-config.yaml +0 -0
  18. {quant_met-0.1.0 → quant_met-0.1.2}/.readthedocs.yaml +0 -0
  19. {quant_met-0.1.0 → quant_met-0.1.2}/.vscode/settings.json +0 -0
  20. {quant_met-0.1.0 → quant_met-0.1.2}/LICENSE.txt +0 -0
  21. {quant_met-0.1.0 → quant_met-0.1.2}/Makefile +0 -0
  22. {quant_met-0.1.0 → quant_met-0.1.2}/README.md +0 -0
  23. {quant_met-0.1.0 → quant_met-0.1.2}/changelog.d/scriv.ini +0 -0
  24. {quant_met-0.1.0 → quant_met-0.1.2}/check_version.sh +0 -0
  25. {quant_met-0.1.0 → quant_met-0.1.2}/docs/Makefile +0 -0
  26. {quant_met-0.1.0 → quant_met-0.1.2}/docs/make.bat +0 -0
  27. {quant_met-0.1.0 → quant_met-0.1.2}/docs/requirements.txt +0 -0
  28. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/_static/custom.css +0 -0
  29. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/_templates/autosummary/attribute.rst +0 -0
  30. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/_templates/autosummary/class.rst +0 -0
  31. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/_templates/autosummary/function.rst +0 -0
  32. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/_templates/autosummary/method.rst +0 -0
  33. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/_templates/autosummary/module.rst +0 -0
  34. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/_templates/autosummary/property.rst +0 -0
  35. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/changelog.rst +0 -0
  36. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/conf.py +0 -0
  37. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/development.rst +0 -0
  38. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/examples/dec-graphene.HSX +0 -0
  39. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/examples/decorated_graphene_nonint.ipynb +0 -0
  40. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/examples/decorated_graphene_scf.ipynb +0 -0
  41. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/examples/decorated_graphene_sisl.ipynb +0 -0
  42. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/examples/example-crit-temp.yaml +0 -0
  43. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/examples/example-q-analysis-dec-graphene.yaml +0 -0
  44. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/examples/example-q-loop-dec-graphene.yaml +0 -0
  45. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/examples/example-q-loop-from-scratch.yaml +0 -0
  46. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/examples/example-q-loop.yaml +0 -0
  47. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/examples/example-scf.yaml +0 -0
  48. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/examples/hamiltonian.HSX +0 -0
  49. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/examples/test_sisl.ipynb +0 -0
  50. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/index.rst +0 -0
  51. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/reference/bdg.rst +0 -0
  52. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/reference/cli.rst +0 -0
  53. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/reference/generated/parameters/quant_met.parameters.Control.rst +0 -0
  54. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/reference/generated/parameters/quant_met.parameters.KPoints.rst +0 -0
  55. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/reference/generated/parameters/quant_met.parameters.Parameters.rst +0 -0
  56. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/reference/generated/quant_met.bdg.bdg_hamiltonian.rst +0 -0
  57. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/reference/generated/quant_met.bdg.calculate_current_density.rst +0 -0
  58. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/reference/generated/quant_met.bdg.calculate_superfluid_weight.rst +0 -0
  59. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/reference/generated/quant_met.bdg.diagonalize_bdg.rst +0 -0
  60. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/reference/generated/quant_met.bdg.gap_equation.rst +0 -0
  61. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/reference/generated/quant_met.cli.cli.rst +0 -0
  62. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/reference/generated/quant_met.quantum_geometry.calculate_qgt.rst +0 -0
  63. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/reference/generated/quant_met.routines.self_consistency_loop.rst +0 -0
  64. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/reference/index.rst +0 -0
  65. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/reference/parameters.rst +0 -0
  66. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/reference/quantum_geometry.rst +0 -0
  67. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/reference/routines.rst +0 -0
  68. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/user_guide/first-scf.rst +0 -0
  69. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/user_guide/search_T_C.rst +0 -0
  70. {quant_met-0.1.0 → quant_met-0.1.2}/docs/source/user_guide.rst +0 -0
  71. {quant_met-0.1.0 → quant_met-0.1.2}/justfile +0 -0
  72. {quant_met-0.1.0 → quant_met-0.1.2}/src/quant_met/__init__.py +0 -0
  73. {quant_met-0.1.0 → quant_met-0.1.2}/src/quant_met/bdg/__init__.py +0 -0
  74. {quant_met-0.1.0 → quant_met-0.1.2}/src/quant_met/bdg/bdg_hamiltonian.py +0 -0
  75. {quant_met-0.1.0 → quant_met-0.1.2}/src/quant_met/bdg/gap_equation.py +0 -0
  76. {quant_met-0.1.0 → quant_met-0.1.2}/src/quant_met/bdg/sc_current.py +0 -0
  77. {quant_met-0.1.0 → quant_met-0.1.2}/src/quant_met/bdg/superfluid_weight.py +0 -0
  78. {quant_met-0.1.0 → quant_met-0.1.2}/src/quant_met/cli/__init__.py +0 -0
  79. {quant_met-0.1.0 → quant_met-0.1.2}/src/quant_met/cli/crit_temp.py +0 -0
  80. {quant_met-0.1.0 → quant_met-0.1.2}/src/quant_met/cli/main.py +0 -0
  81. {quant_met-0.1.0 → quant_met-0.1.2}/src/quant_met/cli/scf.py +0 -0
  82. {quant_met-0.1.0 → quant_met-0.1.2}/src/quant_met/parameters/__init__.py +0 -0
  83. {quant_met-0.1.0 → quant_met-0.1.2}/src/quant_met/parameters/control.py +0 -0
  84. {quant_met-0.1.0 → quant_met-0.1.2}/src/quant_met/parameters/main.py +0 -0
  85. {quant_met-0.1.0 → quant_met-0.1.2}/src/quant_met/quantum_geometry/__init__.py +0 -0
  86. {quant_met-0.1.0 → quant_met-0.1.2}/src/quant_met/quantum_geometry/qgt.py +0 -0
  87. {quant_met-0.1.0 → quant_met-0.1.2}/src/quant_met/routines/__init__.py +0 -0
  88. {quant_met-0.1.0 → quant_met-0.1.2}/src/quant_met/routines/analyse_q_data.py +0 -0
  89. {quant_met-0.1.0 → quant_met-0.1.2}/src/quant_met/routines/loop_over_q.py +0 -0
  90. {quant_met-0.1.0 → quant_met-0.1.2}/src/quant_met/routines/search_crit_temp.py +0 -0
  91. {quant_met-0.1.0 → quant_met-0.1.2}/src/quant_met/routines/self_consistency.py +0 -0
  92. {quant_met-0.1.0 → quant_met-0.1.2}/src/quant_met/utils.py +0 -0
  93. {quant_met-0.1.0 → quant_met-0.1.2}/tests/conftest.py +0 -0
  94. {quant_met-0.1.0 → quant_met-0.1.2}/tests/test_bdg.py +0 -0
  95. {quant_met-0.1.0 → quant_met-0.1.2}/tests/test_scf.py +0 -0
  96. {quant_met-0.1.0 → quant_met-0.1.2}/uv.lock +0 -0
@@ -1,4 +1,26 @@
1
1
 
2
+ .. _changelog-0.1.2:
3
+
4
+ 0.1.2 — 2025-07-27
5
+ ------------------
6
+
7
+ Fixed
8
+ ^^^^^
9
+
10
+ - q-analysis CLI routine deletes the result file only if it exists
11
+
12
+ .. _changelog-0.1.1:
13
+
14
+ 0.1.1 — 2025-07-27
15
+ ------------------
16
+
17
+ Fixed
18
+ ^^^^^
19
+
20
+ - The crit-temp calculation in the q-loop now uses the correct control parameters instead of the ones in the q-loop calculation
21
+
22
+ - Delete the q-loop result file only if it exists
23
+
2
24
  .. _changelog-0.1.0:
3
25
 
4
26
  0.1.0 — 2025-07-27
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: quant-met
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Calculate superconductivity in flat-band systems.
5
5
  Author-email: Tjark Sievers <tjarksievers@icloud.com>
6
6
  License-File: LICENSE.txt
@@ -5,7 +5,7 @@
5
5
  },
6
6
  {
7
7
  "name": "0.1 (stable)",
8
- "version": "0.1.0",
8
+ "version": "0.1.2",
9
9
  "url": "https://quant-met.tjarksievers.de/en/stable/",
10
10
  "preferred": true
11
11
  }
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "quant-met"
3
- version = "0.1.0"
3
+ version = "0.1.2"
4
4
  description = "Calculate superconductivity in flat-band systems."
5
5
  authors = [{name="Tjark Sievers", email="tjarksievers@icloud.com"}]
6
6
  readme = "README.md"
@@ -44,7 +44,8 @@ def q_analysis(parameters: Parameters) -> None:
44
44
  ) = routines.get_lengths_vs_temp(q_data=q_data, hamiltonian=hamiltonian)
45
45
 
46
46
  result_file = Path(f"{parameters.control.outdir}/{parameters.control.prefix}_sc_lengths.hdf5")
47
- result_file.unlink()
47
+ if result_file.exists():
48
+ result_file.unlink()
48
49
  lengths_vs_temp.to_hdf(result_file, key="lengths_vs_temp")
49
50
  gap_and_current_fig.savefig(
50
51
  f"{parameters.control.outdir}/{parameters.control.prefix}_gap_and_current_vs_q.pdf",
@@ -40,22 +40,24 @@ def q_loop(parameters: Parameters) -> None:
40
40
  delta_vs_temp, critical_temperatures, fit_fig = routines.search_crit_temp(
41
41
  hamiltonian=hamiltonian,
42
42
  kgrid=k_grid_obj,
43
- hubbard_int_orbital_basis=np.array(parameters.control.hubbard_int_orbital_basis),
44
- epsilon=parameters.control.conv_treshold,
45
- max_iter=parameters.control.max_iter,
43
+ hubbard_int_orbital_basis=np.array(parameters.control.crit_temp.hubbard_int_orbital_basis),
44
+ epsilon=parameters.control.crit_temp.conv_treshold,
45
+ max_iter=parameters.control.crit_temp.max_iter,
46
46
  n_temp_points=20,
47
47
  )
48
48
  logger.info("Search for T_C completed successfully.")
49
49
  logger.info("Obtained T_Cs: %s", critical_temperatures)
50
50
 
51
51
  fit_fig.savefig(
52
- result_path / f"{parameters.control.prefix}_critical_temperatures_fit.pdf",
52
+ result_path / f"{parameters.control.crit_temp.prefix}_critical_temperatures_fit.pdf",
53
53
  bbox_inches="tight",
54
54
  )
55
55
 
56
56
  result_file_crit_temp = (
57
- result_path / f"{parameters.control.prefix}_critical_temperatures.hdf5"
57
+ result_path / f"{parameters.control.crit_temp.prefix}_critical_temperatures.hdf5"
58
58
  )
59
+ if result_file_crit_temp.exists():
60
+ result_file_crit_temp.exists()
59
61
  delta_vs_temp.to_hdf(result_file_crit_temp, key="delta_vs_temp")
60
62
  with h5py.File(result_file_crit_temp, mode="a") as file:
61
63
  for orbital, crit_temp_orbital in enumerate(critical_temperatures):
@@ -82,7 +84,9 @@ def q_loop(parameters: Parameters) -> None:
82
84
  )
83
85
 
84
86
  result_file_q = result_path / f"{parameters.control.prefix}_q.hdf5"
85
- result_file_q.unlink()
87
+
88
+ if result_file_q.exists():
89
+ result_file_q.unlink()
86
90
  for key, df in delta_vs_q.items():
87
91
  df.to_hdf(result_file_q, key=f"temp_{float(key):.6f}")
88
92
  with h5py.File(result_file_q, "a") as f:
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
File without changes
File without changes
File without changes
File without changes
File without changes