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
5 changes: 4 additions & 1 deletion .cz.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ name = "cz_customize"
tag_format = "v$version"
version = "7.3.0"
version_scheme = "semver"
version_files = ["pyproject.toml"]
version_files = [
"pyproject.toml:version",
"uv.lock:version"
]
update_changelog_on_bump = true
template = "templates/CHANGELOG.md.j2"

Expand Down
22 changes: 22 additions & 0 deletions quantinuum_schemas/models/backend_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
# pylint: disable=too-many-lines,no-member
import abc
from typing import Any, Dict, Literal, Optional, Type, TypeVar, Union
import warnings

from pydantic import ConfigDict, PositiveInt, field_validator, model_validator
from pydantic.fields import Field
Expand Down Expand Up @@ -245,6 +246,27 @@ class QuantinuumConfig(BaseBackendConfig):
max_cost: Optional[int] = None
error_params: Optional[UserErrorParams] = None

@model_validator(mode="after")
def show_deprecation_warnings(self) -> Self:
"""Warn about deprecated usage."""

if self.user_group is not None:
warnings.warn(
"'QuantinuumConfig.user_group' is deprecated and will be "
"removed in a future release. Please specify user_group in the execute job"
"submission parameters instead.",
DeprecationWarning,
)

if self.device_name.startswith("Helios"):
warnings.warn(
"QuantinuumConfig is deprecated for submission to Helios systems and support "
"will be removed in a future release. Please use HeliosConfig instead.",
DeprecationWarning,
)

return self


class IBMQConfig(BaseBackendConfig):
"""Runs circuits on IBM's quantum devices."""
Expand Down
4 changes: 2 additions & 2 deletions uv.lock

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