Skip to content

Commit 544f689

Browse files
committed
formatting
Signed-off-by: Sachin Pisal <[email protected]>
1 parent d4dd04f commit 544f689

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

python/runtime/utils/PyRemoteSimulatorQPU.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ static void launchVqeImpl(cudaq::ExecutionContext *executionContextPtr,
3737

3838
std::string errorMsg;
3939
const bool requestOkay = m_client->sendRequest(
40-
*mlirContext, *executionContextPtr,
41-
gradient, &optimizer, n_params, m_simName, name, /*kernelFunc=*/nullptr,
42-
wrapper->rawArgs, /*argSize=*/0, &errorMsg);
40+
*mlirContext, *executionContextPtr, gradient, &optimizer, n_params,
41+
m_simName, name, /*kernelFunc=*/nullptr, wrapper->rawArgs, /*argSize=*/0,
42+
&errorMsg);
4343
if (!requestOkay)
4444
throw std::runtime_error("Failed to launch VQE. Error: " + errorMsg);
4545
}

runtime/common/BaseRemoteSimulatorQPU.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ class BaseRemoteSimulatorQPU : public cudaq::QPU {
104104

105105
std::string errorMsg;
106106
const bool requestOkay = m_client->sendRequest(
107-
*m_mlirContext, *executionContextPtr,
108-
gradient, &optimizer, n_params, m_simName, name, /*kernelFunc=*/nullptr,
109-
kernelArgs, /*argSize=*/0, &errorMsg);
107+
*m_mlirContext, *executionContextPtr, gradient, &optimizer, n_params,
108+
m_simName, name, /*kernelFunc=*/nullptr, kernelArgs, /*argSize=*/0,
109+
&errorMsg);
110110
if (!requestOkay)
111111
throw std::runtime_error("Failed to launch VQE. Error: " + errorMsg);
112112
}
@@ -203,7 +203,7 @@ class BaseRemoteSimulatorQPU : public cudaq::QPU {
203203
" bytes overflows the argument buffer.");
204204
// Currently, we only support result buffer serialization on LittleEndian
205205
// CPUs (x86, ARM, PPC64LE).
206-
// Note: If the client (e.g., compiled from source) is built for
206+
// Note: If the client (e.g., compiled from source) is built for
207207
// big-endian, we will throw an error if result buffer data is returned.
208208
if (llvm::sys::IsBigEndianHost)
209209
throw std::runtime_error(

runtime/common/BaseRestRemoteClient.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,9 @@ class BaseRemoteRestRuntimeClient : public RemoteRuntimeClient {
355355
" operation is not supported with cudaq target remote-mqpu!");
356356

357357
cudaq::RestRequest request = [&]() {
358-
return constructJobRequest(mlirContext, io_context,
359-
backendSimName, kernelName, kernelFunc,
360-
kernelArgs, argsSize, rawArgs);
358+
return constructJobRequest(mlirContext, io_context, backendSimName,
359+
kernelName, kernelFunc, kernelArgs, argsSize,
360+
rawArgs);
361361
}();
362362

363363
if (request.code.empty()) {

runtime/cudaq/remote_capabilities.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ struct RemoteCapabilities {
2323
bool isRemoteSimulator = false;
2424
/// Constructor that broadcasts \p initValue to all fields.
2525
RemoteCapabilities(bool initValue)
26-
: stateOverlap(initValue), vqe(initValue),
27-
isRemoteSimulator(initValue) {}
26+
: stateOverlap(initValue), vqe(initValue), isRemoteSimulator(initValue) {}
2827
};
2928

3029
} // namespace cudaq

0 commit comments

Comments
 (0)