Skip to content

Commit 67d0197

Browse files
apply rabbit suggestion to expose include buffer to python
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Ludwig Schmid <[email protected]>
1 parent 920d6c1 commit 67d0197

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bindings/hybrid_mapper/hybrid_mapper.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,11 @@ PYBIND11_MODULE(MQT_QMAP_MODULE_NAME, m, py::mod_gil_not_used()) {
303303
"synthesis_steps"_a, "complete_remap"_a = false, "also_map"_a = false)
304304
.def(
305305
"complete_remap",
306-
[](na::HybridSynthesisMapper& mapper) { mapper.completeRemap(); },
307-
"Remaps the QuantumComputation to the hardware.")
306+
[](na::HybridSynthesisMapper& mapper, bool includeBuffer) {
307+
mapper.completeRemap(includeBuffer);
308+
},
309+
"Remaps the QuantumComputation to the hardware.",
310+
"include_buffer"_a = true)
308311
.def(
309312
"schedule",
310313
[](na::HybridSynthesisMapper& mapper, const bool verbose,

0 commit comments

Comments
 (0)