diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bb6af4b1..cebaba85 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.03.27 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 @@ -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.8 hooks: - id: ruff-format priority: 1 diff --git a/src/mqt/problemsolver/tsp.py b/src/mqt/problemsolver/tsp.py index d90b4262..bab6ccf6 100644 --- a/src/mqt/problemsolver/tsp.py +++ b/src/mqt/problemsolver/tsp.py @@ -310,8 +310,6 @@ def encode_eigenstate( for i in range(len(eigen_register)): if eigenstate[i] == "1": qc.x(eigen_register[i]) - if eigenstate[i] == "0": - pass qc.barrier() return qc