#[unsafe(no_mangle)]pub extern "C" fn ket_process_append_block(
process: &mut Process,
block: *mut BasicBlock,
) -> i32Expand description
Appends a BasicBlock of gates to the process.
The block is consumed by this call and must not be used afterwards.
Returns an error if the process state does not allow gate appending
(GateAppendForbidden) or if a qubit index referenced in the block is
out of range (QubitIndexOutOfRange).
§Parameters
process: The process to which the block is appended.block: The block to consume and append. Ownership is transferred.
§Returns
0 on success, non-zero error code on failure (including
GateAppendForbidden and QubitIndexOutOfRange).