Skip to content

Commit

Permalink
Fix two small bugs (#72)
Browse files Browse the repository at this point in the history
1) a `PosixPath` was just as a parameter where a `str` was expected
2) the headline in the RL jupyter evaluation notebook was not updated to
the new reward functions
  • Loading branch information
nquetschlich authored Feb 16, 2023
1 parent 9d07f59 commit 6ea593e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion notebooks/rl/evaluation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@
"id": "5cd42294",
"metadata": {},
"source": [
"# 3x3 Matrix With Mean Result and RL Optimization Criterion"
"# 4x4 Matrix With Mean Results and RL Optimization Criterion Comparison"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/mqt/predictor/rl/Predictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def evaluate_all_sample_circuits(self) -> None:
res_csv = []

results = Parallel(n_jobs=-1, verbose=3, backend="threading")(
delayed(self.evaluate_sample_circuit)(file)
delayed(self.evaluate_sample_circuit)(str(file))
for file in list(rl.helper.get_path_training_circuits().glob("*.qasm"))
)
res_csv.append(list(results[0].keys()))
Expand Down

0 comments on commit 6ea593e

Please sign in to comment.