Skip to main content

ket_process_new

Function ket_process_new 

Source
#[unsafe(no_mangle)]
pub extern "C" fn ket_process_new( qpu_config: *mut QPUConfig, process: &mut *mut Process, ) -> i32
Expand description

Allocates a new Process using the provided QPU configuration.

qpu_config is consumed by this call: ownership is transferred to the newly created Process and the pointer must not be used afterwards.

§Parameters

§Returns

0 on success, non-zero error code on failure.