Description:
Based on @jakelishman analysis and explanation here: #15297 (comment), we should refactor the C API functions below to make writing data to uninitialized arrays safer.
|
pub unsafe extern "C" fn qk_transpile_layout_initial_layout( |
|
pub unsafe extern "C" fn qk_transpile_layout_output_permutation( |
|
pub unsafe extern "C" fn qk_transpile_layout_final_layout( |
Description:
Based on @jakelishman analysis and explanation here: #15297 (comment), we should refactor the C API functions below to make writing data to uninitialized arrays safer.
qiskit/crates/cext/src/transpiler/transpile_layout.rs
Line 98 in ea01d99
qiskit/crates/cext/src/transpiler/transpile_layout.rs
Line 153 in ea01d99
qiskit/crates/cext/src/transpiler/transpile_layout.rs
Line 207 in ea01d99