From 309e67749279971d009e0cf6793937b0b52b6cbe Mon Sep 17 00:00:00 2001 From: Lukas Burgholzer Date: Mon, 27 Jul 2026 15:31:05 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20Complete=20QDMI=20child-devi?= =?UTF-8?q?ce=20string=20conversions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Assisted-by: GPT-5.6-sol via Codex --- include/mqt-core/qdmi/common/Common.hpp | 4 ++++ test/fomac/test_fomac.cpp | 7 +++++++ 2 files changed, 11 insertions(+) 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")); From a84093eaa5daecc78ff991c1562fd888978614c3 Mon Sep 17 00:00:00 2001 From: Lukas Burgholzer Date: Mon, 27 Jul 2026 16:15:38 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9D=20Attribute=20the=20child-devi?= =?UTF-8?q?ce=20string=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Assisted-by: gpt-5.6-sol via Codex --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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