Compute the unitary of this kernel module.
| 16 | |
| 17 | /// Compute the unitary of this kernel module. |
| 18 | static nanobind::object get_unitary_impl(const std::string &shortName, |
| 19 | MlirModule module, |
| 20 | cudaq::CompiledModule *compiled, |
| 21 | nanobind::args args) { |
| 22 | auto f = [=]() { |
| 23 | return cudaq::marshal_and_launch_module(shortName, module, args, compiled); |
| 24 | }; |
| 25 | |
| 26 | // Return as numpy array (dim, dim), complex128 |
| 27 | auto temp = contrib::get_unitary_cmat(std::move(f)); |
| 28 | return detail::cmat_to_numpy(temp); |
| 29 | } |
| 30 | |
| 31 | /// Bind the get_unitary cudaq function |
| 32 | void cudaq::bindPyUnitary(nanobind::module_ &mod) { |
nothing calls this directly
no test coverage detected