Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -652,6 +652,7 @@ changelogs._

<!-- PR links -->

[#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
Expand Down
4 changes: 4 additions & 0 deletions include/mqt-core/qdmi/common/Common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
7 changes: 7 additions & 0 deletions test/fomac/test_fomac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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"));
Expand Down
Loading