From 709d7061b8ab362fea81b044fb522379df99bfcd Mon Sep 17 00:00:00 2001 From: Raynel Sanchez Date: Thu, 10 Oct 2024 09:57:39 -0400 Subject: [PATCH] Fix: Remove redundant clone --- crates/accelerate/src/basis/basis_translator/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/accelerate/src/basis/basis_translator/mod.rs b/crates/accelerate/src/basis/basis_translator/mod.rs index c16646a5e587..71df4c849c69 100644 --- a/crates/accelerate/src/basis/basis_translator/mod.rs +++ b/crates/accelerate/src/basis/basis_translator/mod.rs @@ -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)