Skip to main content

register_compiled_kernel

Function register_compiled_kernel 

Source
pub fn register_compiled_kernel(
    name: &str,
    kernel_binary: &[u8],
) -> QuantRS2Result<()>
Expand description

Register a compiled kernel binary in an in-process cache.

This actually stores the binary keyed by name in a process-wide registry (so a subsequent lookup can retrieve it), rather than discarding the input and pretending to cache. Returns an error only if the registry lock is poisoned.