Skip to content

Commit 2e1ac72

Browse files
⬆️🪝 Update patch updates (#549)
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [astral-sh/ruff-pre-commit](https://redirect.github.com/astral-sh/ruff-pre-commit) | repository | patch | `v0.14.9` -> `v0.14.10` | | [astral-sh/uv-pre-commit](https://redirect.github.com/astral-sh/uv-pre-commit) | repository | patch | `0.9.17` -> `0.9.18` | | [munich-quantum-toolkit/workflows](https://redirect.github.com/munich-quantum-toolkit/workflows) | action | patch | `v1.17.4` -> `v1.17.5` | | [pre-commit/mirrors-mypy](https://redirect.github.com/pre-commit/mirrors-mypy) | repository | patch | `v1.19.0` -> `v1.19.1` | Note: The `pre-commit` manager in Renovate is not supported by the `pre-commit` maintainers or community. Please do not report any problems there, instead [create a Discussion in the Renovate repository](https://redirect.github.com/renovatebot/renovate/discussions/new) if you have any questions. --- ### Release Notes <details> <summary>astral-sh/ruff-pre-commit (astral-sh/ruff-pre-commit)</summary> ### [`v0.14.10`](https://redirect.github.com/astral-sh/ruff-pre-commit/releases/tag/v0.14.10) [Compare Source](https://redirect.github.com/astral-sh/ruff-pre-commit/compare/v0.14.9...v0.14.10) See: <https://github.com/astral-sh/ruff/releases/tag/0.14.10> </details> <details> <summary>astral-sh/uv-pre-commit (astral-sh/uv-pre-commit)</summary> ### [`v0.9.18`](https://redirect.github.com/astral-sh/uv-pre-commit/releases/tag/0.9.18) [Compare Source](https://redirect.github.com/astral-sh/uv-pre-commit/compare/0.9.17...0.9.18) See: <https://github.com/astral-sh/uv/releases/tag/0.9.18> </details> <details> <summary>munich-quantum-toolkit/workflows (munich-quantum-toolkit/workflows)</summary> ### [`v1.17.5`](https://redirect.github.com/munich-quantum-toolkit/workflows/blob/HEAD/CHANGELOG.md#181---2025-04-04) [Compare Source](https://redirect.github.com/munich-quantum-toolkit/workflows/compare/v1.17.4...v1.17.5) *📚 Refer to the [GitHub Release Notes] for previous changelogs.* <!-- Version links --> [unreleased]: https://redirect.github.com/munich-quantum-toolkit/workflows/compare/v1.17.5...HEAD [1.17.5]: https://redirect.github.com/munich-quantum-toolkit/workflows/releases/tag/v1.17.5 [1.17.4]: https://redirect.github.com/munich-quantum-toolkit/workflows/releases/tag/v1.17.4 [1.17.3]: https://redirect.github.com/munich-quantum-toolkit/workflows/releases/tag/v1.17.3 [1.17.2]: https://redirect.github.com/munich-quantum-toolkit/workflows/releases/tag/v1.17.2 [1.17.1]: https://redirect.github.com/munich-quantum-toolkit/workflows/releases/tag/v1.17.1 [1.17.0]: https://redirect.github.com/munich-quantum-toolkit/workflows/releases/tag/v1.17.0 [1.16.2]: https://redirect.github.com/munich-quantum-toolkit/workflows/releases/tag/v1.16.2 [1.16.1]: https://redirect.github.com/munich-quantum-toolkit/workflows/releases/tag/v1.16.1 [1.16.0]: https://redirect.github.com/munich-quantum-toolkit/workflows/releases/tag/v1.16.0 [1.15.1]: https://redirect.github.com/munich-quantum-toolkit/workflows/releases/tag/v1.15.1 [1.15.0]: https://redirect.github.com/munich-quantum-toolkit/workflows/releases/tag/v1.15.0 [1.14.0]: https://redirect.github.com/munich-quantum-toolkit/workflows/releases/tag/v1.14.0 [1.13.0]: https://redirect.github.com/munich-quantum-toolkit/workflows/releases/tag/v1.13.0 [1.12.0]: https://redirect.github.com/munich-quantum-toolkit/workflows/releases/tag/v1.12.0 [1.11.0]: https://redirect.github.com/munich-quantum-toolkit/workflows/releases/tag/v1.11.0 [1.10.0]: https://redirect.github.com/munich-quantum-toolkit/workflows/releases/tag/v1.10.0 [1.9.0]: https://redirect.github.com/munich-quantum-toolkit/workflows/releases/tag/v1.9.0 [1.8.1]: https://redirect.github.com/munich-quantum-toolkit/workflows/releases/tag/v1.8.1 <!-- PR links --> [#&#8203;286]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/286 [#&#8203;276]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/276 [#&#8203;271]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/271 [#&#8203;270]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/270 [#&#8203;257]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/257 [#&#8203;255]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/255 [#&#8203;254]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/254 [#&#8203;247]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/247 [#&#8203;241]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/241 [#&#8203;206]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/206 [#&#8203;188]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/188 [#&#8203;184]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/184 [#&#8203;160]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/160 [#&#8203;157]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/157 [#&#8203;151]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/151 [#&#8203;150]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/150 [#&#8203;146]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/146 [#&#8203;142]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/142 [#&#8203;128]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/128 [#&#8203;126]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/126 [#&#8203;119]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/119 [#&#8203;114]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/114 [#&#8203;102]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/102 [#&#8203;100]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/100 [#&#8203;96]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/96 [#&#8203;95]: https://redirect.github.com/munich-quantum-toolkit/workflows/pull/95 <!-- Contributor --> [**@&#8203;burgholzer**]: https://redirect.github.com/burgholzer [**@&#8203;ystade**]: https://redirect.github.com/ystade [**@&#8203;denialhaag**]: https://redirect.github.com/denialhaag [**@&#8203;flowerthrower**]: https://redirect.github.com/flowerthrower <!-- General links --> [Keep a Changelog]: https://keepachangelog.com/en/1.1.0/ [Common Changelog]: https://common-changelog.org [Semantic Versioning]: https://semver.org/spec/v2.0.0.html [GitHub Release Notes]: https://redirect.github.com/munich-quantum-toolkit/workflows/releases </details> <details> <summary>pre-commit/mirrors-mypy (pre-commit/mirrors-mypy)</summary> ### [`v1.19.1`](https://redirect.github.com/pre-commit/mirrors-mypy/compare/v1.19.0...v1.19.1) [Compare Source](https://redirect.github.com/pre-commit/mirrors-mypy/compare/v1.19.0...v1.19.1) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/munich-quantum-toolkit/predictor). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi41OS4wIiwidXBkYXRlZEluVmVyIjoiNDIuNTkuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIiwiZ2l0aHViLWFjdGlvbnMiLCJwcmUtY29tbWl0Il19--> --------- Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 968c3e8 commit 2e1ac72

4 files changed

Lines changed: 39 additions & 34 deletions

File tree

.github/workflows/cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ on:
1010
jobs:
1111
build-sdist:
1212
name: 🐍 Packaging
13-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-sdist.yml@89734354f64f30a80dd16602d4e271df34348987 # v1.17.4
13+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-sdist.yml@654680ab77b3af8226a9f5cd9acfd157bd106f17 # v1.17.5
1414

1515
build-wheel:
1616
name: 🐍 Packaging
17-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-build.yml@89734354f64f30a80dd16602d4e271df34348987 # v1.17.4
17+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-build.yml@654680ab77b3af8226a9f5cd9acfd157bd106f17 # v1.17.5
1818

1919
deploy:
2020
if: github.event_name == 'release' && github.event.action == 'published'

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414
jobs:
1515
change-detection:
1616
name: 🔍 Change
17-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-change-detection.yml@89734354f64f30a80dd16602d4e271df34348987 # v1.17.4
17+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-change-detection.yml@654680ab77b3af8226a9f5cd9acfd157bd106f17 # v1.17.5
1818

1919
python-tests:
2020
name: 🐍 Test
@@ -24,15 +24,15 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
runs-on: [ubuntu-24.04, macos-14, windows-2022]
27-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-tests.yml@89734354f64f30a80dd16602d4e271df34348987 # v1.17.4
27+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-tests.yml@654680ab77b3af8226a9f5cd9acfd157bd106f17 # v1.17.5
2828
with:
2929
runs-on: ${{ matrix.runs-on }}
3030

3131
python-coverage:
3232
name: 🐍 Coverage
3333
needs: [change-detection, python-tests]
3434
if: fromJSON(needs.change-detection.outputs.run-python-tests)
35-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-coverage.yml@89734354f64f30a80dd16602d4e271df34348987 # v1.17.4
35+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-coverage.yml@654680ab77b3af8226a9f5cd9acfd157bd106f17 # v1.17.5
3636
permissions:
3737
contents: read
3838
id-token: write
@@ -41,19 +41,19 @@ jobs:
4141
name: 🐍 Lint
4242
needs: change-detection
4343
if: fromJSON(needs.change-detection.outputs.run-python-tests)
44-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-linter.yml@89734354f64f30a80dd16602d4e271df34348987 # v1.17.4
44+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-linter.yml@654680ab77b3af8226a9f5cd9acfd157bd106f17 # v1.17.5
4545

4646
build-sdist:
4747
name: 🚀 CD
4848
needs: change-detection
4949
if: fromJSON(needs.change-detection.outputs.run-cd)
50-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-sdist.yml@89734354f64f30a80dd16602d4e271df34348987 # v1.17.4
50+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-sdist.yml@654680ab77b3af8226a9f5cd9acfd157bd106f17 # v1.17.5
5151

5252
build-wheel:
5353
name: 🚀 CD
5454
needs: change-detection
5555
if: fromJSON(needs.change-detection.outputs.run-cd)
56-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-build.yml@89734354f64f30a80dd16602d4e271df34348987 # v1.17.4
56+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-build.yml@654680ab77b3af8226a9f5cd9acfd157bd106f17 # v1.17.5
5757

5858
# this job does nothing and is only used for branch protection
5959
required-checks-pass:

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ repos:
6060

6161
# Ensure uv lock file is up-to-date
6262
- repo: https://github.com/astral-sh/uv-pre-commit
63-
rev: 0.9.17
63+
rev: 0.9.18
6464
hooks:
6565
- id: uv-lock
6666

6767
# Python linting and formatting using ruff
6868
- repo: https://github.com/astral-sh/ruff-pre-commit
69-
rev: v0.14.9
69+
rev: v0.14.10
7070
hooks:
7171
- id: ruff-check
7272
- id: ruff-format
@@ -93,7 +93,7 @@ repos:
9393

9494
# Check static types with mypy
9595
- repo: https://github.com/pre-commit/mirrors-mypy
96-
rev: v1.19.0
96+
rev: v1.19.1
9797
hooks:
9898
- id: mypy
9999
files: ^(src/mqt|test/python)

src/mqt/predictor/rl/actions.py

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,9 @@ def remove_action(name: str) -> None:
369369
EnlargeWithAncilla(),
370370
ApplyLayout(),
371371
],
372-
condition=lambda property_set: property_set["VF2Layout_stop_reason"]
373-
== VF2LayoutStopReason.SOLUTION_FOUND,
372+
condition=lambda property_set: (
373+
property_set["VF2Layout_stop_reason"] == VF2LayoutStopReason.SOLUTION_FOUND
374+
),
374375
),
375376
],
376377
)
@@ -404,19 +405,21 @@ def remove_action(name: str) -> None:
404405
"BQSKitMapping",
405406
CompilationOrigin.BQSKIT,
406407
PassType.MAPPING,
407-
transpile_pass=lambda device: lambda bqskit_circuit: bqskit_compile(
408-
bqskit_circuit,
409-
model=MachineModel(
410-
num_qudits=device.num_qubits,
411-
gate_set=get_bqskit_native_gates(device),
412-
coupling_graph=[(elem[0], elem[1]) for elem in device.build_coupling_map()],
413-
),
414-
with_mapping=True,
415-
optimization_level=1 if os.getenv("GITHUB_ACTIONS") == "true" else 2,
416-
synthesis_epsilon=1e-1 if os.getenv("GITHUB_ACTIONS") == "true" else 1e-8,
417-
max_synthesis_size=2 if os.getenv("GITHUB_ACTIONS") == "true" else 3,
418-
seed=10,
419-
num_workers=1 if os.getenv("GITHUB_ACTIONS") == "true" else -1,
408+
transpile_pass=lambda device: (
409+
lambda bqskit_circuit: bqskit_compile(
410+
bqskit_circuit,
411+
model=MachineModel(
412+
num_qudits=device.num_qubits,
413+
gate_set=get_bqskit_native_gates(device),
414+
coupling_graph=[(elem[0], elem[1]) for elem in device.build_coupling_map()],
415+
),
416+
with_mapping=True,
417+
optimization_level=1 if os.getenv("GITHUB_ACTIONS") == "true" else 2,
418+
synthesis_epsilon=1e-1 if os.getenv("GITHUB_ACTIONS") == "true" else 1e-8,
419+
max_synthesis_size=2 if os.getenv("GITHUB_ACTIONS") == "true" else 3,
420+
seed=10,
421+
num_workers=1 if os.getenv("GITHUB_ACTIONS") == "true" else -1,
422+
)
420423
),
421424
)
422425
)
@@ -437,14 +440,16 @@ def remove_action(name: str) -> None:
437440
"BQSKitSynthesis",
438441
CompilationOrigin.BQSKIT,
439442
PassType.SYNTHESIS,
440-
transpile_pass=lambda device: lambda bqskit_circuit: bqskit_compile(
441-
bqskit_circuit,
442-
model=MachineModel(bqskit_circuit.num_qudits, gate_set=get_bqskit_native_gates(device)),
443-
optimization_level=1 if os.getenv("GITHUB_ACTIONS") == "true" else 2,
444-
synthesis_epsilon=1e-1 if os.getenv("GITHUB_ACTIONS") == "true" else 1e-8,
445-
max_synthesis_size=2 if os.getenv("GITHUB_ACTIONS") == "true" else 3,
446-
seed=10,
447-
num_workers=1 if os.getenv("GITHUB_ACTIONS") == "true" else -1,
443+
transpile_pass=lambda device: (
444+
lambda bqskit_circuit: bqskit_compile(
445+
bqskit_circuit,
446+
model=MachineModel(bqskit_circuit.num_qudits, gate_set=get_bqskit_native_gates(device)),
447+
optimization_level=1 if os.getenv("GITHUB_ACTIONS") == "true" else 2,
448+
synthesis_epsilon=1e-1 if os.getenv("GITHUB_ACTIONS") == "true" else 1e-8,
449+
max_synthesis_size=2 if os.getenv("GITHUB_ACTIONS") == "true" else 3,
450+
seed=10,
451+
num_workers=1 if os.getenv("GITHUB_ACTIONS") == "true" else -1,
452+
)
448453
),
449454
)
450455
)

0 commit comments

Comments
 (0)