Skip to content

Commit

Permalink
Merge branch 'main' into defect_operational_domain_algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
Drewniok committed Oct 21, 2024
2 parents b07b9d3 + aadf0ca commit 814a51d
Show file tree
Hide file tree
Showing 18 changed files with 1,338 additions and 1,003 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ inline void post_layout_optimization(pybind11::module& m)
DOC(fiction_post_layout_optimization_params_optimize_pos_only))
.def_readwrite("planar_optimization", &fiction::post_layout_optimization_params::planar_optimization,
DOC(fiction_post_layout_optimization_params_planar_optimization))

;
.def_readwrite("timeout", &fiction::post_layout_optimization_params::timeout,
DOC(fiction_post_layout_optimization_params_timeout));

py::class_<fiction::post_layout_optimization_stats>(m, "post_layout_optimization_stats",
DOC(fiction_post_layout_optimization_stats))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ inline void wiring_reduction(pybind11::module& m)
namespace py = pybind11;
using namespace pybind11::literals;

py::class_<fiction::wiring_reduction_params>(m, "wiring_reduction_params", DOC(fiction_wiring_reduction_params))
.def(py::init<>())
.def_readwrite("timeout", &fiction::wiring_reduction_params::timeout,
DOC(fiction_wiring_reduction_params_timeout));

py::class_<fiction::wiring_reduction_stats>(m, "wiring_reduction_stats", DOC(fiction_wiring_reduction_stats))
.def(py::init<>())
.def("__repr__",
Expand Down Expand Up @@ -55,7 +60,7 @@ inline void wiring_reduction(pybind11::module& m)
;

m.def("wiring_reduction", &fiction::wiring_reduction<py_cartesian_gate_layout>, "layout"_a,
"statistics"_a = nullptr, DOC(fiction_wiring_reduction));
"parameters"_a = fiction::wiring_reduction_params{}, "statistics"_a = nullptr, DOC(fiction_wiring_reduction));
}

} // namespace pyfiction
Expand Down
Loading

0 comments on commit 814a51d

Please sign in to comment.