Skip to content

Commit

Permalink
renamed variables; added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MozammilQ committed Jan 14, 2025
1 parent 2bdaaae commit 843c220
Show file tree
Hide file tree
Showing 2 changed files with 176 additions and 88 deletions.
3 changes: 1 addition & 2 deletions crates/accelerate/src/synthesis/linear/pmh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,7 @@ pub fn synth_cnot_count_full_pmh(
matrix: PyReadonlyArray2<bool>,
section_size: Option<i64>,
) -> PyResult<CircuitData> {
let arrayview = matrix.as_array();
let mat: Array2<bool> = arrayview.to_owned();
let mat: Array2<bool> = matrix.as_array().to_owned();
let num_qubits = mat.nrows();
let section_size: Option<usize> =
section_size.and_then(|num| if num >= 0 { Some(num as usize) } else { None });
Expand Down
Loading

0 comments on commit 843c220

Please sign in to comment.