Function ket_process_ctrl_push

Source
#[no_mangle]
pub unsafe extern "C" fn ket_process_ctrl_push(
    process: &mut Process,
    qubits: *const usize,
    qubits_size: usize,
) -> i32
Expand description

Pushes control qubits onto the control stack in the Process instance.

§Arguments

  • process - [in] A mutable reference to the Process instance.
  • qubits - [in] A pointer to an array of qubit indices to be pushed onto the control stack.
  • qubits_size - [in] The size of the qubits array.

§Returns

An integer representing the error code. 0 indicates success.

§Safety

This function is marked as unsafe due to the use of raw pointers.