From ac9c319388f98a8e9dfb1649e37af9d692fc0301 Mon Sep 17 00:00:00 2001 From: Silas Dilkes <36165522+sjdilkes@users.noreply.github.com> Date: Tue, 19 Nov 2024 16:02:31 +0000 Subject: [PATCH] fix stirng --- pytket/binders/passes.cpp | 4 +++- pytket/binders/transform.cpp | 6 ++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pytket/binders/passes.cpp b/pytket/binders/passes.cpp index 0f40b2a51d..5258f14325 100644 --- a/pytket/binders/passes.cpp +++ b/pytket/binders/passes.cpp @@ -975,7 +975,9 @@ PYBIND11_MODULE(passes, m) { "single solution in one thread." "\n:param only_reduce: Only returns modified circuit if it has " "fewer two-qubit gates." - "\n:param trials: Sets maximum number of found solutions." + "\n:param trials: Sets maximum number of found solutions. The " + "smallest circuit is returned, prioritising the number of 2qb-gates, " + "then the number of gates, then the depth." "\n:return: a pass to perform the simplification", py::arg("discount_rate") = 0.7, py::arg("depth_weight") = 0.3, py::arg("max_lookahead") = 500, py::arg("max_tqe_candidates") = 500, diff --git a/pytket/binders/transform.cpp b/pytket/binders/transform.cpp index a4dc942217..286fc6062f 100644 --- a/pytket/binders/transform.cpp +++ b/pytket/binders/transform.cpp @@ -454,10 +454,8 @@ PYBIND11_MODULE(transform, m) { "\n:param thread_timeout: Sets maximum out of time spent finding a " "single solution in one thread." "\n:param trials: Sets maximum number of found solutions. The " - "circuit " - "smallest circuit is returned, priorising the number of 2qb-gates, " - "then " - "gates, then depth." + "smallest circuit is returned, prioritising the number of 2qb-gates, " + "then the number of gates, then the depth." "\n:return: a pass to perform the simplification", py::arg("discount_rate") = 0.7, py::arg("depth_weight") = 0.3, py::arg("max_tqe_candidates") = 500, py::arg("max_lookahead") = 500,