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
45 changes: 45 additions & 0 deletions .license-tools-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"author": {
"name": "Chair for Design Automation, TUM\nCopyright (c) 2025 - 2026 Munich Quantum Software Company GmbH",
"years": [2023, 2026]
},
"force_author": true,
"force_license": true,
"license": "MIT",
"title": false,
"include": ["**/*"],
"style_override_for_suffix": {
".pyi": "DOCSTRING_STYLE",
".js": "C_STYLE",
".ts": "C_STYLE"
},
"exclude": [
"^\\.[^/]+",
"/\\.[^/]+",
".*\\.qasm",
".*\\.md",
".*\\.bib",
".*\\.cff",
".*\\.css",
".*\\.json",
".*\\.html",
".*\\.tfc",
".*\\.qc",
".*\\.real",
".*\\.tex",
".*\\.toml",
".*\\.yaml",
"uv\\.lock",
"py\\.typed",
".*build.*",
".*\\.ipynb",
".*\\.atsp",
".*\\.csv",
".*\\.hcp",
".*\\.tsp",
".*\\.tsx",
".*\\.txt",
".*\\.sop",
".*\\.vrp"
]
}
8 changes: 7 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ repos:
- id: rst-directive-colons
- id: rst-inline-touching-normal

# Check for license headers
- repo: https://github.com/emzeat/mz-lictools
rev: v2.9.0
hooks:
- id: license-tools

# Ensure uv lock file is up-to-date
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.9.24
Expand Down Expand Up @@ -102,7 +108,7 @@ repos:
- mqt-bench>=2.0.1

# Check for spelling
- repo: https://github.com/crate-ci/typos
- repo: https://github.com/adhtruong/mirrors-typos
rev: v1.42.0
hooks:
- id: typos
Expand Down
4 changes: 2 additions & 2 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
MIT License

Copyright (c) 2023 - 2025 Chair for Design Automation, TUM
Copyright (c) 2025 Munich Quantum Software Company GmbH
Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 10 additions & 0 deletions docs/_static/error_budget_approach.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) 2023 - 2025 Chair for Design Automation, TUM
# Copyright (c) 2025 Munich Quantum Software Company GmbH
# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
Expand Down Expand Up @@ -48,7 +48,7 @@
project = "MQT ProblemSolver"
author = "Chair for Design Automation, TUM & Munich Quantum Software Company"
language = "en"
project_copyright = "2023 - 2025 Chair for Design Automation, TUM & 2025 Munich Quantum Software Company"
project_copyright = "2023 - 2026 Chair for Design Automation, TUM & 2025 - 2026 Munich Quantum Software Company"

master_doc = "index"

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion notebooks/qubo_tools/tsp.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"metadata": {},
"outputs": [],
"source": [
"with Path(\"input/graph\").open(encoding=locale.getpreferredencoding(False)) as file:\n",
"with Path(\"input/graph.txt\").open(encoding=locale.getpreferredencoding(False)) as file:\n",
" graph = Graph.read(file)"
]
},
Expand Down
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env -S uv run --script --quiet
# Copyright (c) 2023 - 2025 Chair for Design Automation, TUM
# Copyright (c) 2025 Munich Quantum Software Company GmbH
# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
Expand Down
11 changes: 8 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,19 @@ dependencies = [
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
"Typing :: Typed",
]

[dependency-groups]
Expand Down Expand Up @@ -256,7 +258,10 @@ aer = "aer"


[tool.repo-review]
ignore = ["GH200"]
ignore = [
"GH200", # We use Renovate instead of Dependabot
"PC160", # We use a mirror of crate-ci/typos
]


[tool.check-sdist]
Expand Down
4 changes: 2 additions & 2 deletions sitecustomize.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (c) 2023 - 2025 Chair for Design Automation, TUM
# Copyright (c) 2025 Munich Quantum Software Company GmbH
# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
Expand Down
8 changes: 8 additions & 0 deletions src/mqt/problemsolver/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License

from __future__ import annotations

from ._version import version as __version__
Expand Down
8 changes: 8 additions & 0 deletions src/mqt/problemsolver/_version.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License

__version__: str
version: str
__version_tuple__: tuple[int, int, int, str, str] | tuple[int, int, int]
Expand Down
8 changes: 8 additions & 0 deletions src/mqt/problemsolver/csp.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License

from __future__ import annotations

from typing import TYPE_CHECKING, TypedDict
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License

"""This module provides functions to check the equivalence of two circuits using Grover's algorithm."""

from __future__ import annotations
Expand Down
8 changes: 8 additions & 0 deletions src/mqt/problemsolver/partial_compiler/evaluator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License

from __future__ import annotations

from time import time
Expand Down
8 changes: 8 additions & 0 deletions src/mqt/problemsolver/partial_compiler/qaoa.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License

from __future__ import annotations

from typing import TYPE_CHECKING
Expand Down
8 changes: 8 additions & 0 deletions src/mqt/problemsolver/qubo_tools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License

"""A package for generating QUBO formulations automatically from a set of constraints for different problem classes.

It allows users to create a `QuboGenerator` object, and gradually add penalty terms and constraints to it.
Expand Down
8 changes: 8 additions & 0 deletions src/mqt/problemsolver/qubo_tools/device.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License

"""Represents device information and utility methods for quantum devices."""

from __future__ import annotations
Expand Down
8 changes: 8 additions & 0 deletions src/mqt/problemsolver/qubo_tools/pathfinder/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License

"""This module implements the pathfinding functionalities of the `qubo_tools`.

This, in particular, includes all pathfinding-related cost functions and the specialized QUBO generator for pathfinding problems.
Expand Down
8 changes: 8 additions & 0 deletions src/mqt/problemsolver/qubo_tools/pathfinder/cost_functions.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License

"""Includes all cost functions supported by the pathfinding QuboGenerator."""

from __future__ import annotations
Expand Down
8 changes: 8 additions & 0 deletions src/mqt/problemsolver/qubo_tools/pathfinder/graph.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License

"""Provides a simple implementation for graphs to be used with `qubo_tools`."""

from __future__ import annotations
Expand Down
8 changes: 8 additions & 0 deletions src/mqt/problemsolver/qubo_tools/pathfinder/pathfinder.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License

"""This module is responsible for the pathfinding version of the QuboGenerator."""

from __future__ import annotations
Expand Down
8 changes: 8 additions & 0 deletions src/mqt/problemsolver/qubo_tools/pathfinder/tsplib.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License

"""Provides support for the TSPLib format as input for the pathfinding `QuboGenerator`."""

from __future__ import annotations
Expand Down
8 changes: 8 additions & 0 deletions src/mqt/problemsolver/qubo_tools/qubo_generator.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License

"""Provides a base class for QUBO generators that can be extended for different problem classes."""

from __future__ import annotations
Expand Down
7 changes: 7 additions & 0 deletions src/mqt/problemsolver/resource_estimation/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License

from __future__ import annotations

from .evaluate import evaluate, plot_results
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License

from __future__ import annotations

from typing import TYPE_CHECKING
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License

from __future__ import annotations

import copy
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Copyright (c) 2023 - 2026 Chair for Design Automation, TUM
# Copyright (c) 2025 - 2026 Munich Quantum Software Company GmbH
# All rights reserved.
#
# SPDX-License-Identifier: MIT
#
# Licensed under the MIT License

from __future__ import annotations

from typing import TYPE_CHECKING
Expand Down
Loading
Loading