MCPcopy Create free account
hub / github.com/NVIDIA/cuda-quantum / get_state_impl

Function get_state_impl

python/runtime/cudaq/algorithms/py_state.cpp:173–180  ·  view source on GitHub ↗

@brief Run `cudaq::get_state` on the provided kernel and spin operator.

Source from the content-addressed store, hash-verified

171
172/// @brief Run `cudaq::get_state` on the provided kernel and spin operator.
173static state get_state_impl(const std::string &shortName, MlirModule mod,
174 cudaq::CompiledModule *compiled,
175 nanobind::args args) {
176 auto closure = [=]() {
177 return marshal_and_launch_module(shortName, mod, args, compiled);
178 };
179 return detail::extractState(std::move(closure));
180}
181
182static std::future<state> get_state_async_impl(const std::string &shortName,
183 MlirModule module,

Callers 1

bindPyStateMethod · 0.85

Calls 1

extractStateFunction · 0.85

Tested by

no test coverage detected