Function ket::c_api::process::ket_process_measure
source · #[no_mangle]
pub unsafe extern "C" fn ket_process_measure(
process: &mut Process,
qubits: *const usize,
qubits_size: usize,
result: &mut usize
) -> i32
Expand description
Measures the specified qubits in the Process
instance.
§Arguments
process
- [in] A mutable reference to theProcess
instance.qubits
- [in] A mutable pointer to an array of mutable references toQubit
instances.qubits_size
- [in] The size of thequbits
array.result
- [out] A mutable pointer to ausize
where the measurement result will be stored.
§Returns
An integer representing the error code. 0
indicates success.
§Safety
This function is marked as unsafe due to the use of raw pointers.