#[unsafe(no_mangle)]pub unsafe extern "C" fn ket_process_dump(
process: &mut Process,
qubits: *const usize,
qubits_size: usize,
result: &mut usize,
) -> i32Expand description
Dumps the state of the specified qubits in the Process instance.
§Arguments
process- [in] A mutable reference to theProcessinstance.qubits- [in] A pointer to an array of qubit indices to be dumped.qubits_size- [in] The size of thequbitsarray.result- [out] A mutable pointer to ausizerepresenting the result index of the dump.
§Returns
An integer representing the error code. 0 indicates success.
§Safety
This function is marked as unsafe due to the use of raw pointers.