Skip to content

Commit 49ef206

Browse files
🎨 pre-commit fixes
1 parent 1d0ab48 commit 49ef206

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/mqt/problemsolver/satellitesolver/algorithms.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def compute_expectation(counts: dict[str, int], Q: NDArray[np.float64]) -> float
7676
A dictionary where keys are bitstrings and values are their counts.
7777
Q : NDArray[np.float64]
7878
The QUBO matrix represented as a NumPy array.
79-
79+
8080
Returns
8181
-------
8282
float
@@ -171,7 +171,7 @@ def cost_func(self, params: list[float], circuit: QuantumCircuit) -> float:
171171
The parameters for the QAOA circuit, where params[0] is beta and params[1] is gamma.
172172
circuit : QuantumCircuit
173173
The QAOA circuit to be evaluated.
174-
174+
175175
Returns
176176
-------
177177
float
@@ -195,7 +195,7 @@ def optimize_with_multiple_init_parameters(self, circuit: QuantumCircuit) -> lis
195195
----------
196196
circuit : QuantumCircuit
197197
The QAOA circuit to be optimized.
198-
198+
199199
Returns
200200
-------
201201
list[float]
@@ -228,7 +228,7 @@ def evaluate_result(self, circuit: QuantumCircuit) -> tuple[str, int, float]:
228228
----------
229229
circuit : QuantumCircuit
230230
The QAOA circuit to be evaluated.
231-
231+
232232
Returns
233233
-------
234234
tuple[str, int, float]

src/mqt/problemsolver/satellitesolver/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,14 @@ def check_solution(ac_reqs: list[LocationRequest], solution_vector: list[int]) -
149149

150150
def create_satellite_qubo(all_acqs: list[LocationRequest], penalty: int = 8) -> QUBO:
151151
"""Creates a QUBO matrix directly for the satellite location request problem
152-
152+
153153
Parameters
154154
----------
155155
all_acqs : list[LocationRequest]
156156
List of all acquisition requests.
157157
penalty : int, optional
158158
Penalty for conflicting requests, by default 8
159-
159+
160160
Returns
161161
-------
162162
QUBO: QUBO
@@ -187,7 +187,7 @@ def qubo_to_matrix(qubo: QUBO) -> NDArray[np.float64]:
187187
----------
188188
qubo : QUBO
189189
A QUBO object representing the problem.
190-
190+
191191
Returns
192192
-------
193193
NDArray[np.float64]

0 commit comments

Comments
 (0)