From fa15676ff76d22202f35b81b1a2d08dad86527db Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 24 Jul 2024 14:20:45 +0200 Subject: [PATCH] small fix to gate library pybind --- src/python_bindings/bindings/gate_library.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python_bindings/bindings/gate_library.cpp b/src/python_bindings/bindings/gate_library.cpp index a51437d02ce..83154502a12 100644 --- a/src/python_bindings/bindings/gate_library.cpp +++ b/src/python_bindings/bindings/gate_library.cpp @@ -101,7 +101,7 @@ namespace hal :rtype: hal_py.GateType or None )"); - py_gate_library.def_property_readonly("gate_types", &GateLibrary::get_gate_types, R"( + py_gate_library.def_property_readonly("gate_types", [](const GateLibrary& self) { return self.get_gate_types(); }, R"( All gate types of the gate library as as dict from gate type names to gate types. :type: dict[str,hal_py.GateType]