From 09fdb1b1be14e2b70693c7daea078a0784792974 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2026 19:15:10 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E2=AC=86=EF=B8=8F=F0=9F=AA=9D=20update=20p?= =?UTF-8?q?re-commit=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/henryiii/validate-pyproject-schema-store: 2026.03.15 → 2026.04.03](https://github.com/henryiii/validate-pyproject-schema-store/compare/2026.03.15...2026.04.03) - [github.com/python-jsonschema/check-jsonschema: 0.37.0 → 0.37.1](https://github.com/python-jsonschema/check-jsonschema/compare/0.37.0...0.37.1) - [github.com/adhtruong/mirrors-typos: v1.44.0 → v1.45.0](https://github.com/adhtruong/mirrors-typos/compare/v1.44.0...v1.45.0) - [github.com/scientific-python/cookie: 2026.03.02 → 2026.04.04](https://github.com/scientific-python/cookie/compare/2026.03.02...2026.04.04) - [github.com/astral-sh/uv-pre-commit: 0.11.2 → 0.11.3](https://github.com/astral-sh/uv-pre-commit/compare/0.11.2...0.11.3) - [github.com/astral-sh/ruff-pre-commit: v0.15.7 → v0.15.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.7...v0.15.9) - [github.com/pre-commit/mirrors-mypy: v1.19.1 → v1.20.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.19.1...v1.20.0) --- .pre-commit-config.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e1e6c325..b86f4350 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,14 +30,14 @@ repos: ## Check the pyproject.toml file - repo: https://github.com/henryiii/validate-pyproject-schema-store - rev: 2026.03.15 + rev: 2026.04.03 hooks: - id: validate-pyproject priority: 0 ## Check JSON schemata - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.37.0 + rev: 0.37.1 hooks: - id: check-github-workflows priority: 0 @@ -56,14 +56,14 @@ repos: ## Check for spelling - repo: https://github.com/adhtruong/mirrors-typos - rev: v1.44.0 + rev: v1.45.0 hooks: - id: typos priority: 0 ## Check best practices for scientific Python code - repo: https://github.com/scientific-python/cookie - rev: 2026.03.02 + rev: 2026.04.04 hooks: - id: sp-repo-review additional_dependencies: ["repo-review[cli]"] @@ -78,7 +78,7 @@ repos: ## Ensure uv lock file is up-to-date - repo: https://github.com/astral-sh/uv-pre-commit - rev: 0.11.2 + rev: 0.11.3 hooks: - id: uv-lock priority: 0 @@ -114,7 +114,7 @@ repos: ## Python linting using ruff - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.7 + rev: v0.15.9 hooks: - id: ruff-format priority: 1 @@ -147,7 +147,7 @@ repos: ## Static type checking using mypy (needs to run after lockfile update/ruff format, and ruff lint) - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.19.1 + rev: v1.20.0 hooks: - id: mypy files: ^(src/mqt|tests|noxfile.py) From 1596b656434268c817b24be308f4f71eb116d408 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2026 19:34:08 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=8E=A8=20pre-commit=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mqt/problemsolver/tsp.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mqt/problemsolver/tsp.py b/src/mqt/problemsolver/tsp.py index d90b4262..21ccde8a 100644 --- a/src/mqt/problemsolver/tsp.py +++ b/src/mqt/problemsolver/tsp.py @@ -310,8 +310,7 @@ def encode_eigenstate( for i in range(len(eigen_register)): if eigenstate[i] == "1": qc.x(eigen_register[i]) - if eigenstate[i] == "0": - pass + eigenstate[i] == "0" qc.barrier() return qc