Skip to content

Commit b792665

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

3 files changed

Lines changed: 27 additions & 27 deletions

File tree

.pre-commit-config.yaml

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

5353
## Ensure uv.lock is up to date
5454
- repo: https://github.com/astral-sh/uv-pre-commit
55-
rev: 0.11.21
55+
rev: 0.11.23
5656
hooks:
5757
- id: uv-lock
5858
priority: 0
@@ -110,7 +110,7 @@ repos:
110110

111111
## Format Markdown files with rumdl
112112
- repo: https://github.com/rvben/rumdl-pre-commit
113-
rev: v0.2.18
113+
rev: v0.2.20
114114
hooks:
115115
- id: rumdl
116116
args: [--fix]
@@ -138,7 +138,7 @@ repos:
138138

139139
## Format and lint Python files with ruff
140140
- repo: https://github.com/astral-sh/ruff-pre-commit
141-
rev: v0.15.17
141+
rev: v0.15.18
142142
hooks:
143143
- id: ruff-check
144144
require_serial: true
@@ -149,7 +149,7 @@ repos:
149149

150150
## Check Python types with ty
151151
- repo: https://github.com/astral-sh/ty-pre-commit
152-
rev: v0.0.49
152+
rev: v0.0.51
153153
hooks:
154154
- id: ty
155155
args: [--only-dev]

bindings/clifford_synthesis/clifford_synthesis.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -149,24 +149,24 @@ NB_MODULE(MQT_QMAP_MODULE_NAME, m) {
149149
"Class representing the results of the Clifford synthesis techniques.")
150150
.def(nb::init<>())
151151
.def_prop_ro("gates", &cs::Results::getGates,
152-
"Returns the number of gates in the circuit.")
152+
"The number of gates in the circuit.")
153153
.def_prop_ro("single_qubit_gates", &cs::Results::getSingleQubitGates,
154-
"Returns the number of single-qubit gates in the "
154+
"The number of single-qubit gates in the "
155155
"synthesized circuit.")
156156
.def_prop_ro("two_qubit_gates", &cs::Results::getTwoQubitGates,
157-
"Returns the number of two-qubit gates in the "
157+
"The number of two-qubit gates in the "
158158
"synthesized circuit.")
159159
.def_prop_ro("depth", &cs::Results::getDepth,
160-
"Returns the depth of the synthesized circuit.")
160+
"The depth of the synthesized circuit.")
161161
.def_prop_ro("runtime", &cs::Results::getRuntime,
162-
"Returns the runtime of the synthesis in seconds.")
162+
"The runtime of the synthesis in seconds.")
163163
.def_prop_ro("solver_calls", &cs::Results::getSolverCalls,
164-
"Returns the number of calls to the SAT solver.")
164+
"The number of calls to the SAT solver.")
165165
.def_prop_ro("circuit", &cs::Results::getResultCircuit,
166-
"Returns the synthesized circuit as a qasm string.")
167-
.def_prop_ro("tableau", &cs::Results::getResultTableau,
168-
"Returns a string representation of the "
169-
"synthesized circuit's tableau.")
166+
"The synthesized circuit as a qasm string.")
167+
.def_prop_ro(
168+
"tableau", &cs::Results::getResultTableau,
169+
"A string representation of the synthesized circuit's tableau.")
170170
.def("sat", &cs::Results::sat,
171171
"Returns `True` if the synthesis was successful.")
172172
.def("unsat", &cs::Results::unsat,
@@ -212,12 +212,12 @@ NB_MODULE(MQT_QMAP_MODULE_NAME, m) {
212212
"Runs the synthesis with the given configuration.");
213213
synthesizer.def_prop_ro("results", &cs::CliffordSynthesizer::getResults,
214214
nb::rv_policy::reference_internal,
215-
"Returns the results of the synthesis.");
215+
"The results of the synthesis.");
216216
synthesizer.def_prop_ro(
217217
"result_circuit",
218218
[](cs::CliffordSynthesizer& self) {
219219
return qasm3::Importer::imports(self.getResults().getResultCircuit());
220220
},
221-
"Returns the synthesized circuit as a "
222-
":class:`~mqt.core.ir.QuantumComputation` object.");
221+
"The synthesized circuit as a :class:`~mqt.core.ir.QuantumComputation` "
222+
"object.");
223223
}

python/mqt/qmap/clifford_synthesis.pyi

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -159,35 +159,35 @@ class SynthesisResults:
159159
def __init__(self) -> None: ...
160160
@property
161161
def gates(self) -> int:
162-
"""Returns the number of gates in the circuit."""
162+
"""The number of gates in the circuit."""
163163

164164
@property
165165
def single_qubit_gates(self) -> int:
166-
"""Returns the number of single-qubit gates in the synthesized circuit."""
166+
"""The number of single-qubit gates in the synthesized circuit."""
167167

168168
@property
169169
def two_qubit_gates(self) -> int:
170-
"""Returns the number of two-qubit gates in the synthesized circuit."""
170+
"""The number of two-qubit gates in the synthesized circuit."""
171171

172172
@property
173173
def depth(self) -> int:
174-
"""Returns the depth of the synthesized circuit."""
174+
"""The depth of the synthesized circuit."""
175175

176176
@property
177177
def runtime(self) -> float:
178-
"""Returns the runtime of the synthesis in seconds."""
178+
"""The runtime of the synthesis in seconds."""
179179

180180
@property
181181
def solver_calls(self) -> int:
182-
"""Returns the number of calls to the SAT solver."""
182+
"""The number of calls to the SAT solver."""
183183

184184
@property
185185
def circuit(self) -> str:
186-
"""Returns the synthesized circuit as a qasm string."""
186+
"""The synthesized circuit as a qasm string."""
187187

188188
@property
189189
def tableau(self) -> str:
190-
"""Returns a string representation of the synthesized circuit's tableau."""
190+
"""A string representation of the synthesized circuit's tableau."""
191191

192192
def sat(self) -> bool:
193193
"""Returns `True` if the synthesis was successful."""
@@ -234,8 +234,8 @@ class CliffordSynthesizer:
234234

235235
@property
236236
def results(self) -> SynthesisResults:
237-
"""Returns the results of the synthesis."""
237+
"""The results of the synthesis."""
238238

239239
@property
240240
def result_circuit(self) -> mqt.core.ir.QuantumComputation:
241-
"""Returns the synthesized circuit as a :class:`~mqt.core.ir.QuantumComputation` object."""
241+
"""The synthesized circuit as a :class:`~mqt.core.ir.QuantumComputation` object."""

0 commit comments

Comments
 (0)