Skip to content

Commit e39cd7e

Browse files
committed
Merge remote-tracking branch 'upstream/main' into new_structure
2 parents aaf14b1 + 40507e0 commit e39cd7e

21 files changed

+184
-146
lines changed

.github/renovate.json5

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
$schema: "https://docs.renovatebot.com/renovate-schema.json",
3-
extends: ["config:recommended", ":gitSignOff", "helpers:pinGitHubActionDigests"],
3+
extends: ["config:recommended", ":gitSignOff", "helpers:pinGitHubActionDigestsToSemver"],
44
prHourlyLimit: 10,
55
enabledManagers: ["cargo", "github-actions", "npm", "pep621", "pre-commit"],
66
"pre-commit": {
@@ -37,7 +37,8 @@
3737
{
3838
matchManagers: ["pre-commit"],
3939
addLabels: ["pre-commit"],
40-
commitMessagePrefix: "⬆\uFE0F\uD83E\uDE9D"
40+
commitMessagePrefix: "⬆\uFE0F\uD83E\uDE9D",
41+
versioning: "pep440"
4142
},
4243
{
4344
matchUpdateTypes: ["lockFileMaintenance"],

.github/workflows/cd.yml

Lines changed: 5 additions & 5 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@v1.16
13+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-sdist.yml@56cf3608b07dc10bda5b98d77ed6ad21ecf7ef5d # v1.17.0
1414

1515
build-wheel:
1616
name: 🐍 Packaging
17-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-build.yml@v1.16
17+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-build.yml@56cf3608b07dc10bda5b98d77ed6ad21ecf7ef5d # v1.17.0
1818

1919
deploy:
2020
if: github.event_name == 'release' && github.event.action == 'published'
@@ -29,13 +29,13 @@ jobs:
2929
contents: read
3030
needs: [build-sdist, build-wheel]
3131
steps:
32-
- uses: actions/download-artifact@v5
32+
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
3333
with:
3434
pattern: cibw-*
3535
path: dist
3636
merge-multiple: true
3737
- name: Generate artifact attestation for sdist and wheel(s)
38-
uses: actions/attest-build-provenance@v3
38+
uses: actions/attest-build-provenance@977bb373ede98d70efdf65b84cb5f73e068dcc2a # v3.0.0
3939
with:
4040
subject-path: "dist/*"
41-
- uses: pypa/gh-action-pypi-publish@release/v1
41+
- uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0

.github/workflows/ci.yml

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,7 @@ concurrency:
1414
jobs:
1515
change-detection:
1616
name: 🔍 Change
17-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-change-detection.yml@v1.16
18-
19-
python-linter:
20-
name: 🐍 Lint
21-
needs: change-detection
22-
if: fromJSON(needs.change-detection.outputs.run-python-tests)
23-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-linter.yml@v1.16
17+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-change-detection.yml@56cf3608b07dc10bda5b98d77ed6ad21ecf7ef5d # v1.17.0
2418

2519
python-tests:
2620
name: 🐍 Test
@@ -30,62 +24,57 @@ jobs:
3024
fail-fast: false
3125
matrix:
3226
runs-on: [ubuntu-24.04, macos-14, windows-2022]
33-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-tests.yml@v1.16
27+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-tests.yml@56cf3608b07dc10bda5b98d77ed6ad21ecf7ef5d # v1.17.0
3428
with:
3529
runs-on: ${{ matrix.runs-on }}
3630

3731
python-coverage:
3832
name: 🐍 Coverage
3933
needs: [change-detection, python-tests]
4034
if: fromJSON(needs.change-detection.outputs.run-python-tests)
41-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-coverage.yml@v1.16
35+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-coverage.yml@56cf3608b07dc10bda5b98d77ed6ad21ecf7ef5d # v1.17.0
4236
permissions:
4337
contents: read
4438
id-token: write
4539

46-
code-ql:
47-
name: 📝 CodeQL
40+
python-linter:
41+
name: 🐍 Lint
4842
needs: change-detection
49-
if: fromJSON(needs.change-detection.outputs.run-code-ql)
50-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-code-ql-python.yml@v1.16
43+
if: fromJSON(needs.change-detection.outputs.run-python-tests)
44+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-linter.yml@56cf3608b07dc10bda5b98d77ed6ad21ecf7ef5d # v1.17.0
5145

5246
build-sdist:
5347
name: 🚀 CD
5448
needs: change-detection
5549
if: fromJSON(needs.change-detection.outputs.run-cd)
56-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-sdist.yml@v1.16
50+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-sdist.yml@56cf3608b07dc10bda5b98d77ed6ad21ecf7ef5d # v1.17.0
5751

5852
build-wheel:
5953
name: 🚀 CD
6054
needs: change-detection
6155
if: fromJSON(needs.change-detection.outputs.run-cd)
62-
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-build.yml@v1.16
56+
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-build.yml@56cf3608b07dc10bda5b98d77ed6ad21ecf7ef5d # v1.17.0
6357

6458
# this job does nothing and is only used for branch protection
6559
required-checks-pass:
6660
name: 🚦 Check
6761
if: always()
6862
needs:
6963
- change-detection
70-
- python-linter
7164
- python-tests
7265
- python-coverage
73-
- code-ql
66+
- python-linter
7467
- build-sdist
7568
- build-wheel
7669
runs-on: ubuntu-latest
7770
steps:
7871
- name: Decide whether the needed jobs succeeded or failed
79-
uses: re-actors/alls-green@release/v1
72+
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
8073
with:
8174
allowed-skips: >-
8275
${{
8376
fromJSON(needs.change-detection.outputs.run-python-tests)
84-
&& '' || 'python-linter,python-tests,python-coverage,'
85-
}}
86-
${{
87-
fromJSON(needs.change-detection.outputs.run-code-ql)
88-
&& '' || 'code-ql,'
77+
&& '' || 'python-tests,python-coverage,python-linter,'
8978
}}
9079
${{
9180
fromJSON(needs.change-detection.outputs.run-cd)

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
pull-requests: write
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: release-drafter/release-drafter@v6
20+
- uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6.1.0
2121
env:
2222
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/templating.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
pull-requests: write
1515
steps:
1616
- id: create-token
17-
uses: actions/create-github-app-token@v2
17+
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
1818
with:
1919
app-id: ${{ secrets.APP_ID }}
2020
private-key: ${{ secrets.APP_PRIVATE_KEY }}
21-
- uses: munich-quantum-toolkit/templates@79179b743b3909010c5df4073cbb110eb6e0167b # v1.1.5
21+
- uses: munich-quantum-toolkit/templates@ee3423de8b910ad0846d5f48edf47d5aebee222f # v1.1.9
2222
with:
2323
token: ${{ steps.create-token.outputs.token }}
2424
name: Predictor

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,5 @@ venv.bak/
5151

5252
.ruff_cache/
5353
.mypy_cache/
54+
55+
src/**/_version.py

.pre-commit-config.yaml

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,18 @@ repos:
5757

5858
# Python linting and formatting using ruff
5959
- repo: https://github.com/astral-sh/ruff-pre-commit
60-
rev: v0.12.12
60+
rev: v0.14.4
6161
hooks:
62-
- id: ruff
62+
- id: ruff-check
6363
args: ["--fix", "--show-fixes"]
6464
- id: ruff-format
6565

6666
# Also run Black on examples in the documentation
6767
- repo: https://github.com/adamchainz/blacken-docs
68-
rev: 1.19.1
68+
rev: 1.20.0
6969
hooks:
7070
- id: blacken-docs
71-
additional_dependencies: [black==24.*]
71+
additional_dependencies: [black==25.*]
7272

7373
# Check for license headers
7474
- repo: https://github.com/emzeat/mz-lictools
@@ -85,7 +85,7 @@ repos:
8585

8686
# Check static types with mypy
8787
- repo: https://github.com/pre-commit/mirrors-mypy
88-
rev: v1.17.1
88+
rev: v1.18.2
8989
hooks:
9090
- id: mypy
9191
files: ^(src/mqt|test/python)
@@ -104,7 +104,7 @@ repos:
104104

105105
# Check for spelling
106106
- repo: https://github.com/crate-ci/typos
107-
rev: v1.36.2
107+
rev: v1.39.0
108108
hooks:
109109
- id: typos
110110

@@ -119,21 +119,39 @@ repos:
119119

120120
# Check best practices for scientific Python code
121121
- repo: https://github.com/scientific-python/cookie
122-
rev: 2025.05.02
122+
rev: 2025.11.07
123123
hooks:
124124
- id: sp-repo-review
125125
additional_dependencies: ["repo-review[cli]"]
126126

127127
# Check JSON schemata
128128
- repo: https://github.com/python-jsonschema/check-jsonschema
129-
rev: 0.33.3
129+
rev: 0.34.1
130130
hooks:
131131
- id: check-dependabot
132132
- id: check-github-workflows
133133
- id: check-readthedocs
134134

135135
# Check the pyproject.toml file
136136
- repo: https://github.com/henryiii/validate-pyproject-schema-store
137-
rev: 2025.06.23
137+
rev: 2025.11.04
138138
hooks:
139139
- id: validate-pyproject
140+
141+
# Tidy up BibTeX files
142+
- repo: https://github.com/FlamingTempura/bibtex-tidy
143+
rev: v1.14.0
144+
hooks:
145+
- id: bibtex-tidy
146+
args:
147+
[
148+
"--align=20",
149+
"--curly",
150+
"--months",
151+
"--blank-lines",
152+
"--sort",
153+
"--strip-enclosing-braces",
154+
"--sort-fields",
155+
"--trailing-commas",
156+
"--remove-empty-fields",
157+
]

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ This project adheres to [Semantic Versioning], with the exception that minor rel
1212
### Changed
1313

1414
- 🔧 Changed test circuit level for RL predictor from ALG to INDEP
15+
- ✨ Remove support for custom names of trained models ([#489]) ([**@bachase**])
1516
- 🔥 Drop support for x86 macOS systems ([#421]) ([**@denialhaag**])
1617

1718
## [2.3.0] - 2025-07-29
@@ -44,6 +45,7 @@ _📚 Refer to the [GitHub Release Notes](https://github.com/munich-quantum-tool
4445

4546
<!-- PR links -->
4647

48+
[#489]: https://github.com/munich-quantum-toolkit/predictor/pull/489
4749
[#421]: https://github.com/munich-quantum-toolkit/predictor/pull/421
4850
[#406]: https://github.com/munich-quantum-toolkit/predictor/pull/406
4951
[#405]: https://github.com/munich-quantum-toolkit/predictor/pull/405
@@ -59,6 +61,7 @@ _📚 Refer to the [GitHub Release Notes](https://github.com/munich-quantum-tool
5961
[**@nquetschlich**]: https://github.com/nquetschlich
6062
[**@flowerthrower**]: https://github.com/flowerthrower
6163
[**@denialhaag**]: https://github.com/denialhaag
64+
[**@bachase**]: https://github.com/bachase
6265

6366
<!-- General links -->
6467

CITATION.bib

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
@ARTICLE{quetschlich2025mqtpredictor,
2-
AUTHOR = {N. Quetschlich and L. Burgholzer and R. Wille},
3-
TITLE = {{MQT Predictor: Automatic Device Selection with Device-Specific Circuit Compilation for Quantum Computing}},
4-
YEAR = {2025},
5-
JOURNAL = {ACM Transactions on Quantum Computing (TQC)},
6-
DOI = {10.1145/3673241},
7-
EPRINT = {2310.06889},
8-
EPRINTTYPE = {arxiv},
1+
@article{quetschlich2025mqtpredictor,
2+
title = {{{MQT Predictor}}: {{Automatic}} Device Selection with Device-Specific Circuit Compilation for Quantum Computing},
3+
author = {N. Quetschlich and L. Burgholzer and R. Wille},
4+
year = {2025},
5+
journal = {ACM Transactions on Quantum Computing (TQC)},
6+
doi = {10.1145/3673241},
7+
eprint = {2310.06889},
8+
eprinttype = {arxiv},
99
}

UPGRADING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ This document describes breaking changes and how to upgrade. For a complete list
88

99
Starting with this release, MQT Predictor no longer supports x86 macOS systems.
1010
This step is necessary to ensure compatibility with PyTorch.
11-
Furthermore, this coincides with GitHub removing the `macos-13` runners from their infrastructure.
1211
x86 macOS systems are no longer tested in our CI.
1312

1413
## [2.3.0] - 2025-07-29

0 commit comments

Comments
 (0)