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.
- {quant_met-0.0.26 → quant_met-0.1.0}/.coveragerc +0 -4
- quant_met-0.1.0/.github/codspeed.yml +35 -0
- {quant_met-0.0.26 → quant_met-0.1.0}/.github/dependabot.yml +1 -3
- {quant_met-0.0.26 → quant_met-0.1.0}/.github/workflows/check_version.yml +1 -3
- quant_met-0.1.0/.github/workflows/integration_tests.yml +34 -0
- quant_met-0.1.0/.github/workflows/linting.yml +33 -0
- {quant_met-0.0.26 → quant_met-0.1.0}/.github/workflows/publish.yml +3 -5
- quant_met-0.1.0/.github/workflows/typing.yml +33 -0
- quant_met-0.1.0/.github/workflows/unit_tests.yml +53 -0
- {quant_met-0.0.26 → quant_met-0.1.0}/.gitignore +1 -4
- quant_met-0.1.0/.pre-commit-config.yaml +15 -0
- {quant_met-0.0.26 → quant_met-0.1.0}/.readthedocs.yaml +4 -4
- quant_met-0.1.0/.vscode/settings.json +8 -0
- {quant_met-0.0.26 → quant_met-0.1.0}/CHANGELOG.rst +15 -3
- quant_met-0.1.0/Makefile +25 -0
- {quant_met-0.0.26 → quant_met-0.1.0}/PKG-INFO +7 -11
- {quant_met-0.0.26 → quant_met-0.1.0}/README.md +0 -6
- quant_met-0.1.0/changelog.d/scriv.ini +2 -0
- {quant_met-0.0.26 → quant_met-0.1.0}/check_version.sh +1 -3
- {quant_met-0.0.26 → quant_met-0.1.0}/docs/Makefile +1 -3
- {quant_met-0.0.26 → quant_met-0.1.0}/docs/make.bat +0 -4
- {quant_met-0.0.26 → quant_met-0.1.0}/docs/requirements.txt +1 -6
- {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/_static/custom.css +0 -6
- {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/_templates/autosummary/attribute.rst +1 -3
- {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/_templates/autosummary/class.rst +0 -4
- {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/_templates/autosummary/function.rst +1 -3
- {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/_templates/autosummary/method.rst +1 -3
- {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/_templates/autosummary/module.rst +1 -3
- {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/_templates/autosummary/property.rst +1 -3
- quant_met-0.1.0/docs/source/changelog.rst +6 -0
- {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/conf.py +5 -7
- {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/development.rst +7 -16
- quant_met-0.1.0/docs/source/examples/dec-graphene.HSX +0 -0
- quant_met-0.1.0/docs/source/examples/decorated_graphene_nonint.ipynb +198 -0
- quant_met-0.1.0/docs/source/examples/decorated_graphene_scf.ipynb +202 -0
- quant_met-0.1.0/docs/source/examples/decorated_graphene_sisl.ipynb +185 -0
- quant_met-0.1.0/docs/source/examples/example-crit-temp.yaml +12 -0
- quant_met-0.1.0/docs/source/examples/example-q-analysis-dec-graphene.yaml +9 -0
- quant_met-0.1.0/docs/source/examples/example-q-loop-dec-graphene.yaml +21 -0
- quant_met-0.1.0/docs/source/examples/example-q-loop-from-scratch.yaml +21 -0
- quant_met-0.1.0/docs/source/examples/example-q-loop.yaml +13 -0
- quant_met-0.1.0/docs/source/examples/example-scf.yaml +14 -0
- quant_met-0.1.0/docs/source/examples/hamiltonian.HSX +0 -0
- quant_met-0.1.0/docs/source/examples/test_sisl.ipynb +140 -0
- {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/extra/versions.json +2 -2
- {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/index.rst +1 -3
- quant_met-0.1.0/docs/source/reference/bdg.rst +5 -0
- quant_met-0.1.0/docs/source/reference/cli.rst +5 -0
- quant_met-0.1.0/docs/source/reference/generated/parameters/quant_met.parameters.Control.rst +6 -0
- quant_met-0.1.0/docs/source/reference/generated/parameters/quant_met.parameters.KPoints.rst +6 -0
- quant_met-0.1.0/docs/source/reference/generated/parameters/quant_met.parameters.Parameters.rst +6 -0
- quant_met-0.1.0/docs/source/reference/generated/quant_met.bdg.bdg_hamiltonian.rst +13 -0
- quant_met-0.1.0/docs/source/reference/generated/quant_met.bdg.calculate_current_density.rst +13 -0
- quant_met-0.1.0/docs/source/reference/generated/quant_met.bdg.calculate_superfluid_weight.rst +13 -0
- quant_met-0.1.0/docs/source/reference/generated/quant_met.bdg.diagonalize_bdg.rst +13 -0
- quant_met-0.1.0/docs/source/reference/generated/quant_met.bdg.gap_equation.rst +13 -0
- {quant_met-0.0.26 → quant_met-0.1.0}/docs/source/reference/generated/quant_met.cli.cli.rst +0 -4
- quant_met-0.1.0/docs/source/reference/generated/quant_met.quantum_geometry.calculate_qgt.rst +13 -0
- quant_met-0.1.0/docs/source/reference/generated/quant_met.routines.self_consistency_loop.rst +13 -0
- quant_met-0.1.0/docs/source/reference/index.rst +31 -0
- quant_met-0.1.0/docs/source/reference/parameters.rst +5 -0
- quant_met-0.1.0/docs/source/reference/quantum_geometry.rst +5 -0
- quant_met-0.1.0/docs/source/reference/routines.rst +5 -0
- quant_met-0.1.0/docs/source/user_guide/first-scf.rst +4 -0
- quant_met-0.1.0/docs/source/user_guide/search_T_C.rst +4 -0
- quant_met-0.1.0/docs/source/user_guide.rst +15 -0
- quant_met-0.1.0/justfile +31 -0
- quant_met-0.1.0/pyproject.toml +88 -0
- quant_met-0.1.0/src/quant_met/__init__.py +5 -0
- quant_met-0.1.0/src/quant_met/bdg/__init__.py +26 -0
- quant_met-0.1.0/src/quant_met/bdg/bdg_hamiltonian.py +97 -0
- quant_met-0.1.0/src/quant_met/bdg/gap_equation.py +127 -0
- quant_met-0.1.0/src/quant_met/bdg/sc_current.py +60 -0
- quant_met-0.1.0/src/quant_met/bdg/superfluid_weight.py +110 -0
- {quant_met-0.0.26 → quant_met-0.1.0}/src/quant_met/cli/__init__.py +0 -4
- {quant_met-0.0.26 → quant_met-0.1.0}/src/quant_met/cli/crit_temp.py +18 -15
- {quant_met-0.0.26 → quant_met-0.1.0}/src/quant_met/cli/main.py +8 -8
- quant_met-0.1.0/src/quant_met/cli/q_analysis.py +60 -0
- quant_met-0.1.0/src/quant_met/cli/q_loop.py +91 -0
- quant_met-0.1.0/src/quant_met/cli/scf.py +92 -0
- quant_met-0.1.0/src/quant_met/parameters/__init__.py +24 -0
- quant_met-0.1.0/src/quant_met/parameters/control.py +57 -0
- quant_met-0.1.0/src/quant_met/parameters/main.py +38 -0
- quant_met-0.1.0/src/quant_met/quantum_geometry/__init__.py +13 -0
- quant_met-0.1.0/src/quant_met/quantum_geometry/qgt.py +37 -0
- quant_met-0.1.0/src/quant_met/routines/__init__.py +22 -0
- quant_met-0.1.0/src/quant_met/routines/analyse_q_data.py +226 -0
- quant_met-0.1.0/src/quant_met/routines/loop_over_q.py +154 -0
- {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
- {quant_met-0.0.26/src/quant_met/mean_field → quant_met-0.1.0/src/quant_met/routines}/self_consistency.py +32 -27
- {quant_met-0.0.26 → quant_met-0.1.0}/src/quant_met/utils.py +1 -5
- quant_met-0.1.0/tests/conftest.py +31 -0
- quant_met-0.1.0/tests/test_bdg.py +18 -0
- quant_met-0.1.0/tests/test_scf.py +16 -0
- {quant_met-0.0.26 → quant_met-0.1.0}/uv.lock +873 -268
- quant_met-0.0.26/.github/workflows/integration_tests.yml +0 -39
- quant_met-0.0.26/.github/workflows/unit_tests.yml +0 -40
- quant_met-0.0.26/.pre-commit-config.yaml +0 -32
- quant_met-0.0.26/LICENSES/MIT.txt +0 -9
- quant_met-0.0.26/Makefile +0 -42
- quant_met-0.0.26/changelog.d/scriv.ini +0 -6
- quant_met-0.0.26/docs/source/_templates/autosummary/pydantic.rst +0 -20
- quant_met-0.0.26/docs/source/changelog.rst +0 -8
- quant_met-0.0.26/docs/source/example_input_T_C.yaml +0 -23
- quant_met-0.0.26/docs/source/example_input_T_C_one_band.yaml +0 -21
- quant_met-0.0.26/docs/source/example_input_dmft.yaml +0 -32
- quant_met-0.0.26/docs/source/example_input_scf.yaml +0 -26
- quant_met-0.0.26/docs/source/examples/EG-X bands.pdf +0 -0
- quant_met-0.0.26/docs/source/examples/EG-X bands.pdf.license +0 -3
- quant_met-0.0.26/docs/source/examples/band_structures.ipynb +0 -165
- quant_met-0.0.26/docs/source/examples/band_structures.ipynb.license +0 -3
- quant_met-0.0.26/docs/source/extra/versions.json.license +0 -3
- quant_met-0.0.26/docs/source/reference/cli.rst +0 -7
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.bdg_hamiltonian.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.bdg_hamiltonian_derivative.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.calculate_bandstructure.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.calculate_current_density.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.calculate_density_of_states.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.calculate_free_energy.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.calculate_quantum_metric.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.calculate_spectral_gap.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.calculate_superfluid_weight.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.diagonalize_bdg.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.diagonalize_nonint.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.from_file.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.gap_equation.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.gap_equation_loop.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.get_parameters_model.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.hamiltonian.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.hamiltonian_derivative.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.rst +0 -43
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.save.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.BaseHamiltonian.setup_lattice.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.bdg_hamiltonian.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.bdg_hamiltonian_derivative.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.calculate_bandstructure.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.calculate_current_density.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.calculate_density_of_states.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.calculate_free_energy.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.calculate_quantum_metric.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.calculate_spectral_gap.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.calculate_superfluid_weight.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.diagonalize_bdg.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.diagonalize_nonint.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.from_file.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.gap_equation.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.gap_equation_loop.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.get_parameters_model.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.hamiltonian.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.hamiltonian_derivative.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.rst +0 -43
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.save.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.DressedGraphene.setup_lattice.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.bdg_hamiltonian.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.bdg_hamiltonian_derivative.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.calculate_bandstructure.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.calculate_current_density.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.calculate_density_of_states.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.calculate_free_energy.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.calculate_quantum_metric.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.calculate_spectral_gap.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.calculate_superfluid_weight.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.diagonalize_bdg.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.diagonalize_nonint.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.from_file.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.gap_equation.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.gap_equation_loop.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.get_parameters_model.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.hamiltonian.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.hamiltonian_derivative.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.rst +0 -43
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.save.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.Graphene.setup_lattice.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.bdg_hamiltonian.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.bdg_hamiltonian_derivative.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.calculate_bandstructure.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.calculate_current_density.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.calculate_density_of_states.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.calculate_free_energy.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.calculate_quantum_metric.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.calculate_spectral_gap.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.calculate_superfluid_weight.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.diagonalize_bdg.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.diagonalize_nonint.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.from_file.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.gap_equation.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.gap_equation_loop.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.get_parameters_model.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.hamiltonian.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.hamiltonian_derivative.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.rst +0 -43
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.save.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.OneBand.setup_lattice.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.bdg_hamiltonian.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.bdg_hamiltonian_derivative.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.calculate_bandstructure.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.calculate_current_density.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.calculate_density_of_states.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.calculate_free_energy.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.calculate_quantum_metric.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.calculate_spectral_gap.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.calculate_superfluid_weight.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.diagonalize_bdg.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.diagonalize_nonint.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.from_file.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.gap_equation.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.gap_equation_loop.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.get_parameters_model.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.hamiltonian.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.hamiltonian_derivative.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.rst +0 -43
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.save.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.ThreeBand.setup_lattice.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.bdg_hamiltonian.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.bdg_hamiltonian_derivative.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.calculate_bandstructure.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.calculate_current_density.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.calculate_density_of_states.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.calculate_free_energy.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.calculate_quantum_metric.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.calculate_spectral_gap.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.calculate_superfluid_weight.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.diagonalize_bdg.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.diagonalize_nonint.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.from_file.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.gap_equation.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.gap_equation_loop.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.get_parameters_model.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.hamiltonian.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.hamiltonian_derivative.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.rst +0 -43
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.save.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/hamiltonians/quant_met.mean_field.hamiltonians.TwoBand.setup_lattice.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/parameters/hamiltonians/quant_met.parameters.hamiltonians.DressedGrapheneParameters.rst +0 -20
- quant_met-0.0.26/docs/source/reference/generated/parameters/hamiltonians/quant_met.parameters.hamiltonians.GrapheneParameters.rst +0 -20
- quant_met-0.0.26/docs/source/reference/generated/parameters/hamiltonians/quant_met.parameters.hamiltonians.HamiltonianParameters.rst +0 -20
- quant_met-0.0.26/docs/source/reference/generated/parameters/hamiltonians/quant_met.parameters.hamiltonians.OneBandParameters.rst +0 -20
- quant_met-0.0.26/docs/source/reference/generated/parameters/hamiltonians/quant_met.parameters.hamiltonians.ThreeBandParameters.rst +0 -20
- quant_met-0.0.26/docs/source/reference/generated/parameters/hamiltonians/quant_met.parameters.hamiltonians.TwoBandParameters.rst +0 -20
- quant_met-0.0.26/docs/source/reference/generated/parameters/hamiltonians/quant_met.parameters.hamiltonians.rst +0 -14
- quant_met-0.0.26/docs/source/reference/generated/parameters/quant_met.parameters.Control.rst +0 -20
- quant_met-0.0.26/docs/source/reference/generated/parameters/quant_met.parameters.KPoints.rst +0 -20
- quant_met-0.0.26/docs/source/reference/generated/parameters/quant_met.parameters.Parameters.rst +0 -20
- quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.BaseLattice.bz_corners.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.BaseLattice.generate_bz_grid.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.BaseLattice.generate_high_symmetry_path.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.BaseLattice.high_symmetry_points.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.BaseLattice.lattice_constant.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.BaseLattice.reciprocal_basis.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.BaseLattice.rst +0 -39
- quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.GrapheneLattice.bz_corners.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.GrapheneLattice.generate_bz_grid.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.GrapheneLattice.generate_high_symmetry_path.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.GrapheneLattice.high_symmetry_points.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.GrapheneLattice.lattice_constant.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.GrapheneLattice.reciprocal_basis.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.GrapheneLattice.rst +0 -39
- quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.SquareLattice.bz_corners.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.SquareLattice.generate_bz_grid.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.SquareLattice.generate_high_symmetry_path.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.SquareLattice.high_symmetry_points.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.SquareLattice.lattice_constant.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.SquareLattice.reciprocal_basis.rst +0 -17
- quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.SquareLattice.rst +0 -39
- quant_met-0.0.26/docs/source/reference/generated/quant_met.geometry.generate_bz_path.rst +0 -15
- quant_met-0.0.26/docs/source/reference/generated/quant_met.mean_field.hamiltonians.rst +0 -14
- quant_met-0.0.26/docs/source/reference/generated/quant_met.mean_field.search_crit_temp.rst +0 -15
- quant_met-0.0.26/docs/source/reference/generated/quant_met.mean_field.self_consistency_loop.rst +0 -15
- quant_met-0.0.26/docs/source/reference/generated/quant_met.plotting.format_plot.rst +0 -15
- quant_met-0.0.26/docs/source/reference/generated/quant_met.plotting.plot_bandstructure.rst +0 -15
- quant_met-0.0.26/docs/source/reference/generated/quant_met.plotting.plot_superfluid_weight.rst +0 -15
- quant_met-0.0.26/docs/source/reference/generated/quant_met.plotting.scatter_into_bz.rst +0 -15
- quant_met-0.0.26/docs/source/reference/generated/quant_met.utils.generate_uniform_grid.rst +0 -15
- quant_met-0.0.26/docs/source/reference/geometry.rst +0 -7
- quant_met-0.0.26/docs/source/reference/index.rst +0 -29
- quant_met-0.0.26/docs/source/reference/mean_field.rst +0 -7
- quant_met-0.0.26/docs/source/reference/parameters.rst +0 -7
- quant_met-0.0.26/docs/source/reference/plotting.rst +0 -7
- quant_met-0.0.26/docs/source/reference/utils.rst +0 -7
- quant_met-0.0.26/docs/source/user_guide/first-scf.rst +0 -6
- quant_met-0.0.26/docs/source/user_guide/search_T_C.rst +0 -6
- quant_met-0.0.26/docs/source/user_guide.rst +0 -19
- quant_met-0.0.26/environment.yml +0 -39
- quant_met-0.0.26/pyproject.toml +0 -61
- quant_met-0.0.26/src/quant_met/__init__.py +0 -5
- quant_met-0.0.26/src/quant_met/cli/_utils.py +0 -66
- quant_met-0.0.26/src/quant_met/cli/dmft.py +0 -96
- quant_met-0.0.26/src/quant_met/cli/scf.py +0 -70
- quant_met-0.0.26/src/quant_met/dmft/__init__.py +0 -5
- quant_met-0.0.26/src/quant_met/dmft/dmft_loop.py +0 -178
- quant_met-0.0.26/src/quant_met/dmft/utils.py +0 -207
- quant_met-0.0.26/src/quant_met/geometry/__init__.py +0 -35
- quant_met-0.0.26/src/quant_met/geometry/base_lattice.py +0 -99
- quant_met-0.0.26/src/quant_met/geometry/bz_path.py +0 -89
- quant_met-0.0.26/src/quant_met/geometry/graphene.py +0 -47
- quant_met-0.0.26/src/quant_met/geometry/square.py +0 -46
- quant_met-0.0.26/src/quant_met/mean_field/__init__.py +0 -39
- quant_met-0.0.26/src/quant_met/mean_field/_utils.py +0 -16
- quant_met-0.0.26/src/quant_met/mean_field/hamiltonians/__init__.py +0 -33
- quant_met-0.0.26/src/quant_met/mean_field/hamiltonians/base_hamiltonian.py +0 -792
- quant_met-0.0.26/src/quant_met/mean_field/hamiltonians/dressed_graphene.py +0 -117
- quant_met-0.0.26/src/quant_met/mean_field/hamiltonians/graphene.py +0 -94
- quant_met-0.0.26/src/quant_met/mean_field/hamiltonians/one_band_tight_binding.py +0 -69
- quant_met-0.0.26/src/quant_met/mean_field/hamiltonians/three_band_tight_binding.py +0 -84
- quant_met-0.0.26/src/quant_met/mean_field/hamiltonians/two_band_tight_binding.py +0 -75
- quant_met-0.0.26/src/quant_met/parameters/__init__.py +0 -49
- quant_met-0.0.26/src/quant_met/parameters/hamiltonians.py +0 -181
- quant_met-0.0.26/src/quant_met/parameters/main.py +0 -90
- quant_met-0.0.26/src/quant_met/plotting/__init__.py +0 -30
- quant_met-0.0.26/src/quant_met/plotting/plotting.py +0 -214
- quant_met-0.0.26/tests/__init__.py +0 -5
- quant_met-0.0.26/tests/baseline_images/test_plotting/nonint_bandstructure_dressed_graphene.png +0 -0
- quant_met-0.0.26/tests/baseline_images/test_plotting/nonint_bandstructure_dressed_graphene.png.license +0 -3
- quant_met-0.0.26/tests/baseline_images/test_plotting/nonint_bandstructure_graphene.png +0 -0
- quant_met-0.0.26/tests/baseline_images/test_plotting/nonint_bandstructure_graphene.png.license +0 -3
- quant_met-0.0.26/tests/baseline_images/test_plotting/nonint_bandstructure_one_band.png +0 -0
- quant_met-0.0.26/tests/baseline_images/test_plotting/nonint_bandstructure_one_band.png.license +0 -3
- quant_met-0.0.26/tests/baseline_images/test_plotting/scatter_into_bz.png +0 -0
- quant_met-0.0.26/tests/baseline_images/test_plotting/scatter_into_bz.png.license +0 -3
- quant_met-0.0.26/tests/baseline_images/test_plotting/scatter_into_bz_with_data.png +0 -0
- quant_met-0.0.26/tests/baseline_images/test_plotting/scatter_into_bz_with_data.png.license +0 -3
- quant_met-0.0.26/tests/baseline_images/test_plotting/sf_weight.png +0 -0
- quant_met-0.0.26/tests/baseline_images/test_plotting/sf_weight.png.license +0 -3
- quant_met-0.0.26/tests/test_benchmarks.py +0 -140
- quant_met-0.0.26/tests/test_cli.py +0 -134
- quant_met-0.0.26/tests/test_geometry.py +0 -40
- quant_met-0.0.26/tests/test_hamiltonians/__init__.py +0 -5
- quant_met-0.0.26/tests/test_hamiltonians/test_fixed_values.py +0 -126
- quant_met-0.0.26/tests/test_hamiltonians/test_invalid_values.py +0 -93
- quant_met-0.0.26/tests/test_hamiltonians/test_random_samples.py +0 -162
- quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_bdg_hamiltonian_derivative_graphene.npz +0 -0
- quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_bdg_hamiltonian_derivative_graphene.npz.license +0 -3
- quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_current.npz +0 -0
- quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_current.npz.license +0 -3
- quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_density_of_states.npz +0 -0
- quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_density_of_states.npz.license +0 -3
- quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_free_energy.npz +0 -0
- quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_free_energy.npz.license +0 -3
- quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_hamiltonian_derivative_graphene.npz +0 -0
- quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_hamiltonian_derivative_graphene.npz.license +0 -3
- quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_hamiltonian_derivative_one_band.npz +0 -0
- quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_hamiltonian_derivative_one_band.npz.license +0 -3
- quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_hamiltonian_three_band.npz +0 -0
- quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_hamiltonian_three_band.npz.license +0 -3
- quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_hamiltonian_two_band.npz +0 -0
- quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_hamiltonian_two_band.npz.license +0 -3
- quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_spectral_gap.npz +0 -0
- quant_met-0.0.26/tests/test_hamiltonians/test_regressions/test_spectral_gap.npz.license +0 -3
- quant_met-0.0.26/tests/test_hamiltonians/test_regressions.py +0 -304
- quant_met-0.0.26/tests/test_hamiltonians/test_save.py +0 -213
- quant_met-0.0.26/tests/test_integration/__init__.py +0 -5
- quant_met-0.0.26/tests/test_integration/test_crit_temp.py +0 -69
- quant_met-0.0.26/tests/test_integration/test_scf.py +0 -43
- quant_met-0.0.26/tests/test_plotting.py +0 -287
- quant_met-0.0.26/tests/test_quantum_metric/test_quantum_metric_bdg_dressed_graphene.npz.license +0 -3
- quant_met-0.0.26/tests/test_quantum_metric/test_quantum_metric_bdg_graphene.npz.license +0 -3
- quant_met-0.0.26/tests/test_quantum_metric/test_quantum_metric_dressed_graphene.npz +0 -0
- quant_met-0.0.26/tests/test_quantum_metric/test_quantum_metric_dressed_graphene.npz.license +0 -3
- quant_met-0.0.26/tests/test_quantum_metric/test_quantum_metric_graphene.npz +0 -0
- quant_met-0.0.26/tests/test_quantum_metric/test_quantum_metric_graphene.npz.license +0 -3
- quant_met-0.0.26/tests/test_quantum_metric.py +0 -74
- quant_met-0.0.26/tests/test_self_consistency.py +0 -62
- quant_met-0.0.26/tests/test_superfluid_weight/test_superfluid_weight_dressed_graphene.npz +0 -0
- quant_met-0.0.26/tests/test_superfluid_weight/test_superfluid_weight_dressed_graphene.npz.license +0 -3
- quant_met-0.0.26/tests/test_superfluid_weight/test_superfluid_weight_graphene.npz +0 -0
- quant_met-0.0.26/tests/test_superfluid_weight/test_superfluid_weight_graphene.npz.license +0 -3
- quant_met-0.0.26/tests/test_superfluid_weight.py +0 -72
- quant_met-0.0.26/tests/test_utils.py +0 -82
- quant_met-0.0.26/tox.ini +0 -28
- quant_met-0.0.26/uv.lock.license +0 -3
- {quant_met-0.0.26 → quant_met-0.1.0}/LICENSE.txt +0 -0
@@ -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
|
@@ -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
|
-
|
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
|
-
|
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@
|
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"
|
@@ -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
|
-
|
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
|
-
|
30
|
+
install:
|
33
31
|
- requirements: docs/requirements.txt
|
32
|
+
- method: pip
|
33
|
+
path: .
|
@@ -1,6 +1,18 @@
|
|
1
|
-
|
2
|
-
..
|
3
|
-
|
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:
|
quant_met-0.1.0/Makefile
ADDED
@@ -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
|
3
|
+
Version: 0.1.0
|
4
4
|
Summary: Calculate superconductivity in flat-band systems.
|
5
|
-
Author-email: Tjark Sievers <
|
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.
|
12
|
-
Requires-Dist: numpy
|
13
|
-
Requires-Dist: numpydantic>=1.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
|
[](https://zenodo.org/badge/latestdoi/800628635)
|
30
27
|
[](https://github.com/Ruberhauptmann/quant-met/actions/workflows/unit_tests.yml)
|
31
28
|
[](https://coveralls.io/github/Ruberhauptmann/quant-met?branch=main)
|
32
|
-
[](https://pypi.org/project/quant-met/)
|
33
29
|
[](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
|
[](https://zenodo.org/badge/latestdoi/800628635)
|
10
5
|
[](https://github.com/Ruberhauptmann/quant-met/actions/workflows/unit_tests.yml)
|
11
6
|
[](https://coveralls.io/github/Ruberhauptmann/quant-met?branch=main)
|
12
|
-
[](https://pypi.org/project/quant-met/)
|
13
7
|
[](https://pypi.org/project/quant-met/)
|
14
8
|
|
15
9
|
quant-met is a python package to treat superconductivity in flat-band systems.
|
@@ -1,6 +1,4 @@
|
|
1
|
-
|
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 = "
|
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
|
-
*
|
13
|
+
* just
|
14
|
+
* uv
|
19
15
|
|
20
16
|
Set up the development environment:
|
21
17
|
|
22
18
|
* clone the repository
|
23
|
-
* run ``
|
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 ``
|
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
|
-
|
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 ``
|
67
|
+
In ``pyproject.toml``, then lock the new version via ``uv lock``.
|
77
68
|
|
78
69
|
6. Prepare Github release
|
79
70
|
+++++++++++++++++++++++++
|
Binary file
|