Skip to content

Commit

Permalink
small fix to gate library pybind
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonKlx committed Jul 24, 2024
1 parent 83f0a69 commit fa15676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python_bindings/bindings/gate_library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit fa15676

Please sign in to comment.