diff --git a/CHANGELOG.md b/CHANGELOG.md index 99b77df59f..359b4a2928 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,7 +26,7 @@ releases may include breaking changes. - ✨ Add Python bindings for the MQT Compiler Collection ([#1815]) ([**@burgholzer**], [**@denialhaag**]) - ✨ Add support for QDMI child devices to the driver and FoMaC libraries - ([#1897]) ([**@burgholzer**]) + ([#1897], [#1952]) ([**@burgholzer**]) - ✨ Add typed custom property and result queries to the C++ and Python FoMaC libraries ([#1895]) ([**@burgholzer**]) - ✨ Add support for custom job parameters to C++ and Python FoMaC library @@ -652,6 +652,7 @@ changelogs._ +[#1952]: https://github.com/munich-quantum-toolkit/core/pull/1952 [#1938]: https://github.com/munich-quantum-toolkit/core/pull/1938 [#1936]: https://github.com/munich-quantum-toolkit/core/pull/1936 [#1935]: https://github.com/munich-quantum-toolkit/core/pull/1935 diff --git a/include/mqt-core/qdmi/common/Common.hpp b/include/mqt-core/qdmi/common/Common.hpp index c3586e6013..0e21332eea 100644 --- a/include/mqt-core/qdmi/common/Common.hpp +++ b/include/mqt-core/qdmi/common/Common.hpp @@ -249,6 +249,8 @@ constexpr auto toString(const QDMI_Device_Session_Parameter param) -> const return "USERNAME"; case QDMI_DEVICE_SESSION_PARAMETER_PASSWORD: return "PASSWORD"; + case QDMI_DEVICE_SESSION_PARAMETER_CHILDDEVICE: + return "CHILD DEVICE"; case QDMI_DEVICE_SESSION_PARAMETER_MAX: return "MAX"; case QDMI_DEVICE_SESSION_PARAMETER_CUSTOM1: @@ -386,6 +388,8 @@ constexpr auto toString(const QDMI_Device_Property prop) -> const char* { return "PULSE SUPPORT"; case QDMI_DEVICE_PROPERTY_SUPPORTEDPROGRAMFORMATS: return "SUPPORTED PROGRAM FORMATS"; + case QDMI_DEVICE_PROPERTY_CHILDDEVICES: + return "CHILD DEVICES"; case QDMI_DEVICE_PROPERTY_MAX: return "MAX"; case QDMI_DEVICE_PROPERTY_CUSTOM1: diff --git a/test/fomac/test_fomac.cpp b/test/fomac/test_fomac.cpp index 935091d847..690936b469 100644 --- a/test/fomac/test_fomac.cpp +++ b/test/fomac/test_fomac.cpp @@ -346,6 +346,8 @@ TEST(FoMaCTest, DevicePropertyToString) { "MIN ATOM DISTANCE"); EXPECT_STREQ(qdmi::toString(QDMI_DEVICE_PROPERTY_SUPPORTEDPROGRAMFORMATS), "SUPPORTED PROGRAM FORMATS"); + EXPECT_STREQ(qdmi::toString(QDMI_DEVICE_PROPERTY_CHILDDEVICES), + "CHILD DEVICES"); EXPECT_STREQ(qdmi::toString(QDMI_DEVICE_PROPERTY_MAX), "MAX"); EXPECT_STREQ(qdmi::toString(QDMI_DEVICE_PROPERTY_CUSTOM1), "CUSTOM1"); EXPECT_STREQ(qdmi::toString(QDMI_DEVICE_PROPERTY_CUSTOM2), "CUSTOM2"); @@ -358,6 +360,11 @@ TEST(FoMaCTest, SessionPropertyToString) { EXPECT_STREQ(qdmi::toString(QDMI_SESSION_PROPERTY_DEVICES), "DEVICES"); } +TEST(FoMaCTest, DeviceSessionParameterToString) { + EXPECT_STREQ(qdmi::toString(QDMI_DEVICE_SESSION_PARAMETER_CHILDDEVICE), + "CHILD DEVICE"); +} + TEST(FoMaCTest, ThrowIfError) { EXPECT_NO_THROW(qdmi::throwIfError(QDMI_SUCCESS, "Test")); EXPECT_NO_THROW(qdmi::throwIfError(QDMI_WARN_GENERAL, "Test"));