Skip to content
Closed
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
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if(BUILD_MQT_CORE_BINDINGS)
endif()

# top-level call to find Python
find_package(Python 3.10 REQUIRED COMPONENTS Interpreter Development.Module
find_package(Python 3.11 REQUIRED COMPONENTS Interpreter Development.Module
${SKBUILD_SABI_COMPONENT})
endif()

Expand Down
2 changes: 1 addition & 1 deletion eval/dd_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# Licensed under the MIT License

# /// script
# requires-python = ">=3.10"
# requires-python = ">=3.11"
# dependencies = [
# "pandas[output-formatting]>=2.1.2",
# "pandas[output-formatting]>=2.2.3; python_version >= '3.13'",
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
nox.options.default_venv_backend = "uv"


PYTHON_ALL_VERSIONS = ["3.10", "3.11", "3.12", "3.13", "3.14"]
PYTHON_ALL_VERSIONS = ["3.11", "3.12", "3.13", "3.14"]

if os.environ.get("CI", None):
nox.options.error_on_missing_interpreters = True
Expand Down
12 changes: 5 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ classifiers = [
"Programming Language :: Python",
"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",
Expand All @@ -45,12 +44,12 @@ classifiers = [
"Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)",
"Typing :: Typed",
]
requires-python = ">=3.10"
requires-python = ">=3.11"
dynamic = ["version"]

[project.optional-dependencies]
pennylane = [
"pennylane>=0.45.1,<0.46; python_version >= '3.11'",
"pennylane>=0.45.1,<0.46",
]
qiskit = [
"qiskit[qasm3-import]>=1.1.0",
Expand Down Expand Up @@ -340,11 +339,10 @@ docs = [
"sphinxext-opengraph>=0.13.0",
"qiskit[visualization]>=1.1.0",
"openqasm-pygments>=0.2.0",
"pennylane>=0.45.1,<0.46; python_version >= '3.11'",
"pennylane>=0.45.1,<0.46",
"qirrunner~=0.9.6",
"graphviz>=0.21.0",
"sphinx>=8.1.3; python_version < '3.11'",
"sphinx>=9.0; python_version >= '3.11'",
"sphinx>=9.0",
"mlir-pygments>=1.0.0",
]
test-base = [
Expand All @@ -353,7 +351,7 @@ test-base = [
"pytest-cov>=7.1.0",
"pytest-sugar>=1.1.1",
"pytest-xdist>=3.8.0",
"pennylane>=0.45.1,<0.46; python_version >= '3.11'",
"pennylane>=0.45.1,<0.46",
"qiskit[qasm3-import]>=1.1.0",
"numpy>=2.1; python_version >= '3.13'",
"numpy>=2.3.2; python_version >= '3.14'",
Expand Down
5 changes: 1 addition & 4 deletions python/mqt/core/plugins/pennylane/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

from __future__ import annotations

import sys
from typing import TYPE_CHECKING

from ..._compat.optional import OptionalDependencyTester
Expand All @@ -22,9 +21,7 @@

__all__ = ["HAS_PENNYLANE"]

if TYPE_CHECKING or ( # ruff:ignore[non-empty-init-module] Optional plugin
sys.version_info >= (3, 11) and HAS_PENNYLANE
):
if TYPE_CHECKING or HAS_PENNYLANE: # ruff:ignore[non-empty-init-module] Optional plugin
from .converter import ConvertedProgram, convert_program
from .device import DDSIMDevice, QDMIDevice
from .exceptions import (
Expand Down
2 changes: 1 addition & 1 deletion python/mqt/core/plugins/qiskit/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def result(self) -> Result:
qobj_id=self.job_id(),
job_id=self.job_id(),
success=overall_success,
date=datetime.datetime.now(datetime.timezone.utc).isoformat(),
date=datetime.datetime.now(datetime.UTC).isoformat(),
results=experiment_results,
)

Expand Down
4 changes: 0 additions & 4 deletions test/python/plugins/qdmi_pennylane/test_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,11 @@

from __future__ import annotations

import sys
from typing import cast

import numpy as np
import pytest

if sys.version_info < (3, 11):
pytest.skip("PennyLane requires Python 3.11 or newer.", allow_module_level=True)

try:
import pennylane as qp
except ImportError:
Expand Down
5 changes: 0 additions & 5 deletions test/python/plugins/qdmi_pennylane/test_ddsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,9 @@

from __future__ import annotations

import sys

import numpy as np
import pytest

if sys.version_info < (3, 11):
pytest.skip("PennyLane requires Python 3.11 or newer.", allow_module_level=True)

try:
import pennylane as qp
except ImportError:
Expand Down
4 changes: 0 additions & 4 deletions test/python/plugins/qdmi_pennylane/test_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,11 @@

from __future__ import annotations

import sys
from typing import cast

import numpy as np
import pytest

if sys.version_info < (3, 11):
pytest.skip("PennyLane requires Python 3.11 or newer.", allow_module_level=True)

try:
import pennylane as qp
except ImportError:
Expand Down
20 changes: 0 additions & 20 deletions test/python/plugins/qdmi_pennylane/test_optional.py

This file was deleted.

Loading
Loading