Skip to content

Commit 72a9fad

Browse files
chore: Remove 3.9 related code (#335)
Co-authored-by: ABC <16929811+abenseny@users.noreply.github.com>
1 parent 6d55f26 commit 72a9fad

7 files changed

Lines changed: 15 additions & 17 deletions

File tree

.github/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Q-CTRL Open Controls
22

3-
![Python](https://img.shields.io/badge/python-3.9+-blue.svg)
3+
![Python](https://img.shields.io/badge/python-3.10+-blue.svg)
44

55
Q-CTRL Open Controls is an open-source Python package that makes it easy to create and deploy established error-robust quantum control protocols from the open literature. The aim of the package is to be the most comprehensive library of published and tested quantum control techniques developed by the community, with easy to use export functions allowing users to deploy these controls on:
66

.github/workflows/on-pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
container: qctrl/ci-images:python-${{ matrix.python }}-ci
5353
strategy:
5454
matrix:
55-
python: ["3.9", "3.10", "3.11"]
55+
python: ["3.10", "3.11", "3.12", "3.13"]
5656
steps:
5757
- uses: actions/checkout@v4
5858
- name: Download CI tool

docs/conf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import inspect
2929
import sys
3030
from pathlib import Path
31-
from typing import List
3231

3332
import tomli
3433

@@ -68,7 +67,7 @@
6867
# List of patterns, relative to source directory, that match files and
6968
# directories to ignore when looking for source files.
7069
# This pattern also affects html_static_path and html_extra_path.
71-
exclude_patterns: List[str] = []
70+
exclude_patterns: list[str] = []
7271

7372

7473
# -- Options for HTML output -------------------------------------------------

qctrlopencontrols/__init__.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,25 +55,25 @@
5555
"DynamicDecouplingSequence",
5656
"convert_dds_to_driven_control",
5757
"new_bb1_control",
58+
"new_carr_purcell_sequence",
5859
"new_corpse_control",
5960
"new_corpse_in_bb1_control",
6061
"new_corpse_in_scrofulous_control",
6162
"new_corpse_in_sk1_control",
63+
"new_cpmg_sequence",
64+
"new_drag_control",
6265
"new_gaussian_control",
6366
"new_modulated_gaussian_control",
64-
"new_drag_control",
65-
"new_primitive_control",
66-
"new_scrofulous_control",
67-
"new_sk1_control",
68-
"new_wamf1_control",
69-
"new_carr_purcell_sequence",
70-
"new_cpmg_sequence",
7167
"new_periodic_sequence",
68+
"new_primitive_control",
7269
"new_quadratic_sequence",
7370
"new_ramsey_sequence",
71+
"new_scrofulous_control",
72+
"new_sk1_control",
7473
"new_spin_echo_sequence",
7574
"new_uhrig_sequence",
7675
"new_walsh_sequence",
76+
"new_wamf1_control",
7777
"new_x_concatenated_sequence",
7878
"new_xy_concatenated_sequence",
7979
]

qctrlopencontrols/driven_controls/driven_control.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def export_to_file(
522522

523523
check_arguments(
524524
file_type in _file_types,
525-
"Requested file type is not supported. Please use " f"one of {_file_types}",
525+
f"Requested file type is not supported. Please use one of {_file_types}",
526526
{"file_type": file_type},
527527
)
528528

qctrlopencontrols/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ def create_repr_from_attributes(class_instance=None, attributes=None) -> str:
6767
for attribute in attributes:
6868
if not isinstance(attribute, str):
6969
raise ArgumentsValueError(
70-
"Each attribute name must be a string. Found "
71-
f"{type(attribute)} type.",
70+
f"Each attribute name must be a string. Found {type(attribute)} type.",
7271
{"attribute": attribute, "type(attribute)": type(attribute)},
7372
)
7473

tests/test_dynamical_decoupling.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def test_pretty_string_format():
217217
)
218218
_pretty_string.append(
219219
f"Rabi Rotations = [{_rabi_rotations[0] / np.pi},"
220-
f" {_rabi_rotations[1] / np.pi}, {_rabi_rotations[2]/ np.pi}] × pi"
220+
f" {_rabi_rotations[1] / np.pi}, {_rabi_rotations[2] / np.pi}] × pi"
221221
)
222222
_pretty_string.append(
223223
f"Azimuthal Angles = [{_azimuthal_angles[0] / np.pi},"
@@ -247,11 +247,11 @@ def test_pretty_string_format():
247247
)
248248
_pretty_string.append(
249249
f"Rabi Rotations = [{_rabi_rotations[0] / np.pi},"
250-
f" {_rabi_rotations[1] / np.pi}, {_rabi_rotations[2]/ np.pi}] × pi"
250+
f" {_rabi_rotations[1] / np.pi}, {_rabi_rotations[2] / np.pi}] × pi"
251251
)
252252
_pretty_string.append(
253253
f"Azimuthal Angles = [{_azimuthal_angles[0] / np.pi},"
254-
f" {_azimuthal_angles[1] / np.pi}, {_azimuthal_angles[2]/ np.pi}] × pi"
254+
f" {_azimuthal_angles[1] / np.pi}, {_azimuthal_angles[2] / np.pi}] × pi"
255255
)
256256
_pretty_string.append(
257257
f"Detuning Rotations = [{_detuning_rotations[0] / np.pi},"

0 commit comments

Comments
 (0)