Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,20 @@ on:
paths:
- .github/workflows/cd.yml

permissions:
contents: read
id-token: write
permissions: {}

jobs:
build-sdist:
name: 🐍 Packaging
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-sdist.yml@579203ef22082fa5d5483412f442e50d0c5ff4a7 # v2.2.2
permissions:
contents: read

build-wheel:
name: 🐍 Packaging
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-build.yml@579203ef22082fa5d5483412f442e50d0c5ff4a7 # v2.2.2
permissions:
contents: read

deploy:
if: github.event_name == 'release' && github.event.action == 'published'
Expand All @@ -27,11 +29,11 @@ jobs:
environment:
name: pypi
url: https://pypi.org/p/mqt.problemsolver
needs: [build-sdist, build-wheel]
permissions:
id-token: write
attestations: write
attestations: write # Needed to attest the built artifacts
contents: read
needs: [build-sdist, build-wheel]
id-token: write # Needed to attest and to publish to PyPI
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions:
contents: read
id-token: write
security-events: write
permissions: {}

jobs:
change-detection:
name: 🔍 Change
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-change-detection.yml@579203ef22082fa5d5483412f442e50d0c5ff4a7 # v2.2.2
permissions:
contents: read

python-tests:
name: 🐍 Test
Expand All @@ -32,6 +31,8 @@ jobs:
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-tests.yml@579203ef22082fa5d5483412f442e50d0c5ff4a7 # v2.2.2
with:
runs-on: ${{ matrix.runs-on }}
permissions:
contents: read

python-coverage:
name: 🐍 Coverage
Expand All @@ -50,20 +51,27 @@ jobs:
with:
enable-ty: true
enable-mypy: false
permissions:
contents: read

build-sdist:
name: 🚀 CD
needs: change-detection
if: fromJSON(needs.change-detection.outputs.run-cd)
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-sdist.yml@579203ef22082fa5d5483412f442e50d0c5ff4a7 # v2.2.2
permissions:
contents: read

build-wheel:
name: 🚀 CD
needs: change-detection
if: fromJSON(needs.change-detection.outputs.run-cd)
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-build.yml@579203ef22082fa5d5483412f442e50d0c5ff4a7 # v2.2.2
permissions:
contents: read

required-checks-pass: # This job does nothing and is only used for branch protection
# This job does nothing and is only used for branch protection
required-checks-pass:
name: 🚦 Check
if: always()
needs:
Expand Down
25 changes: 13 additions & 12 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,12 @@
name: Deploy Next.js site to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
branches:
- main
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
permissions: {}

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
Expand All @@ -28,17 +22,21 @@ jobs:
# Build job
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Setup Pages
- name: Set up GitHub Pages
id: pages
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
with:
static_site_generator: next

- name: Setup Node
- name: Set up Node
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "24"
Expand All @@ -64,11 +62,14 @@ jobs:

# Deployment job
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
permissions:
id-token: write # Needed to verify the deployment originates from this workflow
pages: write # Needed to deploy to GitHub Pages
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ permissions: {}
jobs:
update_release_draft:
name: Run
runs-on: ubuntu-slim
permissions:
contents: write
runs-on: ubuntu-slim
steps:
- uses: release-drafter/release-drafter@34d80673e067bdc0c24568d3af899c216adcfaa9 # v7.7.0
7 changes: 5 additions & 2 deletions .github/workflows/templating.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,22 @@ on:
- ".github/workflows/templating.yml"
workflow_dispatch: # Allow manual triggering

permissions: {}

jobs:
render-template:
name: Render template
runs-on: ubuntu-slim
permissions:
contents: write
pull-requests: write
contents: read
steps:
- id: create-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
client-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
permission-contents: write # Needed to push the templating branch
permission-pull-requests: write # Needed to open the templating pull request
- uses: munich-quantum-toolkit/templates@d0c5adb86d19a5095f871cb6184cfdab298e943c # v1.4.2
with:
token: ${{ steps.create-token.outputs.token }}
Expand Down
11 changes: 10 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,23 @@ repos:
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.38.0
hooks:
- id: check-codecov
priority: 0
- id: check-github-workflows
priority: 0
- id: check-readthedocs
priority: 0

## Check for security issues in GitHub Actions workflows
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.29.0
hooks:
- id: zizmor
priority: 0

## Check best practices for scientific Python code
- repo: https://github.com/scientific-python/cookie
rev: 2026.06.18
rev: 2026.08.14
hooks:
- id: sp-repo-review
additional_dependencies: ["repo-review[cli]"]
Expand Down
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
"sphinx.ext.intersphinx",
"sphinx.ext.napoleon",
"sphinx.ext.viewcode",
"sphinxcontrib.inkscapeconverter",
"sphinxcontrib.bibtex",
"sphinxext.opengraph",
]
Expand Down
8 changes: 4 additions & 4 deletions docs/references.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# References

*MQT ProblemSolver* has a strong foundation in peer‑reviewed research. Many of
its built‑in algorithms are based on methods published in scientific journals
and conferences. For an overview of *MQT ProblemSolver* and its features, see
MQT ProblemSolver has a strong foundation in peer‑reviewed research. Many of its
built‑in algorithms are based on methods published in scientific journals and
conferences. For an overview of MQT ProblemSolver and its features, see
{cite:p}`quetschlich2023mqtproblemsolver`. If you want to cite this article,
please use the following BibTeX entry:

Expand All @@ -17,7 +17,7 @@ please use the following BibTeX entry:
}
```

*MQT ProblemSolver* is part of the Munich Quantum Toolkit, which is described in
MQT ProblemSolver is part of the Munich Quantum Toolkit, which is described in
{cite:p}`mqt`. If you want to cite the Munich Quantum Toolkit, please use the
following BibTeX entry:

Expand Down
10 changes: 4 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ dependencies = [
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
Expand All @@ -63,22 +64,21 @@ classifiers = [
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
"Topic :: Scientific/Engineering :: Quantum Computing",
"Typing :: Typed",
]

[dependency-groups]
docs = [
"furo>=2025.09.25",
"graphviz>=0.21.0",
"myst-nb>=1.3.0",
"sphinx>=8.1.3",
"sphinx>=8.2.3; python_version >= '3.11'",
"sphinx-autoapi>=3.6.0",
"sphinx-copybutton>=0.5.2",
"sphinx-design>=0.6.1",
"sphinx-llm",
"sphinx-llm>=0.4.1",
"sphinxcontrib-bibtex>=2.6.5",
"sphinxcontrib-svg2pdfconverter>=1.3.0",
"sphinxext-opengraph>=0.13.0",
]
test = [
Expand Down Expand Up @@ -259,8 +259,6 @@ aer = "aer"

[tool.repo-review.ignore]
GH200 = "We use Renovate instead of Dependabot"
MY100 = "We use ty instead of mypy"
PC111 = "We use ruff instead of blacken-docs"
PC160 = "We use a mirror of crate-ci/typos"
PC170 = "We do not use rST files anymore"

Expand Down
20 changes: 1 addition & 19 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading