Skip to content

Commit e32fe22

Browse files
sacpisbettinaheim
authored andcommitted
fixing qpu arch (#3288)
Signed-off-by: Sachin Pisal <[email protected]>
1 parent 1c183c6 commit e32fe22

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

runtime/cudaq/platform/default/rest/helpers/iqm/IQMServerHelper.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,18 @@ class IQMServerHelper : public ServerHelper {
9393
throw std::runtime_error("QPU architecture is not provided");
9494
}
9595
qpuArchitecture = iter->second;
96+
std::replace(qpuArchitecture.begin(), qpuArchitecture.end(), '_', ' ');
9697
cudaq::debug("qpuArchitecture = {}", qpuArchitecture);
9798

9899
// Set an alternate base URL if provided.
99100
iter = backendConfig.find("url");
100101
if (iter != backendConfig.end()) {
101102
iqmServerUrl = iter->second;
103+
// For running unittests
104+
if (iqmServerUrl.find("localhost") != std::string::npos) {
105+
std::replace(qpuArchitecture.begin(), qpuArchitecture.end(), ' ', '_');
106+
cudaq::debug("qpuArchitecture = {}", qpuArchitecture);
107+
}
102108
}
103109

104110
// Allow overriding IQM Server Url, the compiled program will still work if

0 commit comments

Comments
 (0)