Skip to content

Commit 5116393

Browse files
⬆️🩹 Update patch updates (#1816)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 5fbf29e commit 5116393

8 files changed

Lines changed: 22 additions & 26 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ repos:
5454

5555
## Ensure uv.lock is up to date
5656
- repo: https://github.com/astral-sh/uv-pre-commit
57-
rev: 0.11.21
57+
rev: 0.11.23
5858
hooks:
5959
- id: uv-lock
6060
priority: 0
@@ -112,7 +112,7 @@ repos:
112112

113113
## Format Markdown files with rumdl
114114
- repo: https://github.com/rvben/rumdl-pre-commit
115-
rev: v0.2.18
115+
rev: v0.2.20
116116
hooks:
117117
- id: rumdl
118118
args: [--fix]
@@ -145,7 +145,7 @@ repos:
145145

146146
## Format and lint Python files with ruff
147147
- repo: https://github.com/astral-sh/ruff-pre-commit
148-
rev: v0.15.17
148+
rev: v0.15.18
149149
hooks:
150150
- id: ruff-format
151151
types_or: [python, pyi, jupyter, markdown]
@@ -156,7 +156,7 @@ repos:
156156

157157
## Check Python types with ty
158158
- repo: https://github.com/astral-sh/ty-pre-commit
159-
rev: v0.0.49
159+
rev: v0.0.51
160160
hooks:
161161
- id: ty
162162
args: [--only-dev]

bindings/fomac/fomac.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,16 +158,16 @@ All authentication parameters are optional and can be provided as keyword argume
158158
"Returns the sparse probabilities from the job (typically only "
159159
"available from simulator devices).");
160160

161-
job.def_prop_ro("id", &fomac::Session::Job::getId, "Returns the job ID.");
161+
job.def_prop_ro("id", &fomac::Session::Job::getId, "The job ID.");
162162

163163
job.def_prop_ro("program_format", &fomac::Session::Job::getProgramFormat,
164-
"Returns the program format used for the job.");
164+
"The format of the submitted program.");
165165

166166
job.def_prop_ro("program", &fomac::Session::Job::getProgram,
167-
"Returns the quantum program submitted for the job.");
167+
"The submitted program.");
168168

169169
job.def_prop_ro("num_shots", &fomac::Session::Job::getNumShots,
170-
"Returns the number of shots for the job.");
170+
"The number of shots.");
171171

172172
job.def(nb::self == nb::self,
173173
nb::sig("def __eq__(self, arg: object, /) -> bool"));

python/mqt/core/_compat/optional.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,7 @@ def disable_locally(self) -> Generator[None, None, None]:
158158

159159
@property
160160
def module_name(self) -> str:
161-
"""Get the module name being tested.
162-
163-
Returns:
164-
The module name string.
165-
"""
161+
"""The name of the module being tested."""
166162
return self._module
167163

168164
def __repr__(self) -> str:

python/mqt/core/fomac.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,19 +117,19 @@ class Job:
117117

118118
@property
119119
def id(self) -> str:
120-
"""Returns the job ID."""
120+
"""The job ID."""
121121

122122
@property
123123
def program_format(self) -> ProgramFormat:
124-
"""Returns the program format used for the job."""
124+
"""The format of the submitted program."""
125125

126126
@property
127127
def program(self) -> str:
128-
"""Returns the quantum program submitted for the job."""
128+
"""The submitted program."""
129129

130130
@property
131131
def num_shots(self) -> int:
132-
"""Returns the number of shots for the job."""
132+
"""The number of shots."""
133133

134134
def __eq__(self, arg: object, /) -> bool: ...
135135
def __ne__(self, arg: object, /) -> bool: ...

python/mqt/core/plugins/qiskit/backend.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,22 +186,22 @@ def __init__(self, device: fomac.Device, provider: QDMIProvider | None = None) -
186186

187187
@property
188188
def target(self) -> Target:
189-
"""Return the Target describing backend capabilities."""
189+
"""The Target describing the capabilities of the backend."""
190190
return self._target
191191

192192
@property
193193
def provider(self) -> Any | None: # noqa: ANN401
194-
"""Return the provider that created this backend."""
194+
"""The provider that created the backend."""
195195
return self._provider
196196

197197
@property
198198
def max_circuits(self) -> int | None:
199-
"""Maximum number of circuits that can be run in a single job."""
199+
"""The maximum number of circuits that can be run in a single job."""
200200
return None # No limit, processed sequentially
201201

202202
@property
203203
def options(self) -> Options:
204-
"""Return backend options."""
204+
"""The backend options."""
205205
return self._options
206206

207207
@classmethod

python/mqt/core/plugins/qiskit/estimator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def __init__(
6464

6565
@property
6666
def backend(self) -> QDMIBackend:
67-
"""Return the backend used by this estimator."""
67+
"""The backend used by the estimator."""
6868
return self._backend
6969

7070
def run(
@@ -136,7 +136,7 @@ def _run_pub(self, pub: EstimatorPub) -> PubResult:
136136

137137
# Flatten all combinations of bound circuits and measurement preparations
138138
total_circuits_to_run = []
139-
metadata_map = [] # type: list[tuple[tuple[int, ...], complex, NDArray[np.int_]]]
139+
metadata_map = []
140140

141141
for index in np.ndindex(*bc_bound_circuits.shape):
142142
bound_circuit = bc_bound_circuits[index]

python/mqt/core/plugins/qiskit/sampler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __init__(
6565

6666
@property
6767
def backend(self) -> QDMIBackend:
68-
"""Return the backend used by this sampler."""
68+
"""The backend used by the sampler."""
6969
return self._backend
7070

7171
def run(

test/python/plugins/qiskit/test_mock_backend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,12 +150,12 @@ def __init__(self, num_clbits: int, shots: int) -> None:
150150

151151
@property
152152
def id(self) -> str:
153-
"""Return job ID."""
153+
"""The job ID."""
154154
return self._id
155155

156156
@property
157157
def num_shots(self) -> int:
158-
"""Return number of shots."""
158+
"""The number of shots."""
159159
return self._shots
160160

161161
def check(self) -> fomac.Job.Status:

0 commit comments

Comments
 (0)