Skip to content

Commit

Permalink
Fix: Remove redundant clone
Browse files Browse the repository at this point in the history
  • Loading branch information
raynelfss committed Oct 10, 2024
1 parent 82d22f1 commit 709d706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/accelerate/src/basis/basis_translator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ fn run(
.map(|x| x.to_string())
.collect();
source_basis = extract_basis(py, &dag, min_qubits)?;
new_target_basis = target_basis.clone().unwrap();
new_target_basis = target_basis.unwrap();
}
new_target_basis = new_target_basis
.union(&basic_instrs)
Expand Down

0 comments on commit 709d706

Please sign in to comment.