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
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ permissions:
jobs:
build-sdist:
name: 🐍 Packaging
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-sdist.yml@d6314c45667c131055a0389afc110e8dedc6da3f # v1.17.11
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-sdist.yml@c54be38945ae206affae9925ecd9c346f54c71b7 # v1.17.12

build-wheel:
name: 🐍 Packaging
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-build.yml@d6314c45667c131055a0389afc110e8dedc6da3f # v1.17.11
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-build.yml@c54be38945ae206affae9925ecd9c346f54c71b7 # v1.17.12

deploy:
if: github.event_name == 'release' && github.event.action == 'published'
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ permissions:
jobs:
change-detection:
name: 🔍 Change
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-change-detection.yml@d6314c45667c131055a0389afc110e8dedc6da3f # v1.17.11
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-change-detection.yml@c54be38945ae206affae9925ecd9c346f54c71b7 # v1.17.12

python-tests:
name: 🐍 Test
Expand All @@ -29,15 +29,15 @@ jobs:
fail-fast: false
matrix:
runs-on: [ubuntu-24.04, ubuntu-24.04-arm, macos-15, windows-2025]
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-tests.yml@d6314c45667c131055a0389afc110e8dedc6da3f # v1.17.11
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-tests.yml@c54be38945ae206affae9925ecd9c346f54c71b7 # v1.17.12
with:
runs-on: ${{ matrix.runs-on }}

python-coverage:
name: 🐍 Coverage
needs: [change-detection, python-tests]
if: fromJSON(needs.change-detection.outputs.run-python-tests)
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-coverage.yml@d6314c45667c131055a0389afc110e8dedc6da3f # v1.17.11
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-coverage.yml@c54be38945ae206affae9925ecd9c346f54c71b7 # v1.17.12
permissions:
contents: read
id-token: write
Expand All @@ -46,19 +46,19 @@ jobs:
name: 🐍 Lint
needs: change-detection
if: fromJSON(needs.change-detection.outputs.run-python-tests)
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-linter.yml@d6314c45667c131055a0389afc110e8dedc6da3f # v1.17.11
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-linter.yml@c54be38945ae206affae9925ecd9c346f54c71b7 # v1.17.12

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@d6314c45667c131055a0389afc110e8dedc6da3f # v1.17.11
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-sdist.yml@c54be38945ae206affae9925ecd9c346f54c71b7 # v1.17.12

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@d6314c45667c131055a0389afc110e8dedc6da3f # v1.17.11
uses: munich-quantum-toolkit/workflows/.github/workflows/reusable-python-packaging-wheel-build.yml@c54be38945ae206affae9925ecd9c346f54c71b7 # v1.17.12

required-checks-pass: # This job does nothing and is only used for branch protection
name: 🚦 Check
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ repos:

## Check the pyproject.toml file
- repo: https://github.com/henryiii/validate-pyproject-schema-store
rev: 2026.02.15
rev: 2026.02.20
hooks:
- id: validate-pyproject
priority: 0
Expand All @@ -56,7 +56,7 @@ repos:

## Check for spelling
- repo: https://github.com/adhtruong/mirrors-typos
rev: v1.43.4
rev: v1.43.5
hooks:
- id: typos
priority: 0
Expand All @@ -78,7 +78,7 @@ repos:

## Ensure uv lock file is up-to-date
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.10.3
rev: 0.10.4
hooks:
- id: uv-lock
priority: 0
Expand Down Expand Up @@ -114,7 +114,7 @@ repos:

## Python linting using ruff
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.1
rev: v0.15.2
hooks:
- id: ruff-format
priority: 1
Expand Down
2 changes: 1 addition & 1 deletion notebooks/precompilation/evaluation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"\n",
"\n",
"def order_of_magnitude(number: float) -> int:\n",
" return -math.ceil(math.log(number, 10))"
" return -math.ceil(math.log10(number))"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from __future__ import annotations

import copy
import logging
import math
import os
import zipfile
Expand All @@ -22,6 +23,8 @@
from qsharp.estimator import ErrorBudgetPartition, EstimatorParams, LogicalCounts
from qsharp.interop.qiskit import estimate

logger = logging.getLogger(__name__)

if TYPE_CHECKING:
from collections.abc import Iterator

Expand Down Expand Up @@ -238,8 +241,8 @@ def generate_data(
"rotations": combinations[2],
})
results.append(specific_data)
except Exception as e:
print(f"Error processing circuit {qc.name}: {e}")
except Exception:
logger.exception(f"Error processing circuit {qc.name}.")

elif logical_counts:
results = []
Expand All @@ -261,7 +264,7 @@ def generate_data(
"rotations": combinations[2],
})
results.append(specific_data)
except Exception as e:
print(f"Error processing logical counts entry {c}: {e}")
except Exception:
logger.exception(f"Error processing logical counts entry {c}.")

return results
14 changes: 7 additions & 7 deletions webpage/package-lock.json

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

Loading