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) 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