Skip to content
Open
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
4 changes: 4 additions & 0 deletions runtime/cudaq/platform/quantum_platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@ cudaq::CodeGenConfig quantum_platform::get_codegen_config() {
return config;
}

const RuntimeTarget *quantum_platform::get_runtime_target() const {
return runtimeTarget.get();
}

KernelThunkResultType altLaunchKernel(const char *kernelName,
KernelThunkType kernelFunc,
void *kernelArgs, std::uint64_t argsSize,
Expand Down
6 changes: 6 additions & 0 deletions runtime/cudaq/platform/quantum_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,12 @@ class quantum_platform {
/// Get code generation configuration values
CodeGenConfig get_codegen_config();

/// Get runtime target information
// This includes information about the target configuration (config file) and
// any other user-defined settings (nvq++ target option compile flags or
// `set_target` arguments).
const RuntimeTarget *get_runtime_target() const;

/// @brief Turn off any noise models.
void reset_noise();

Expand Down
Loading