From 6a5f3890b64b5e5a098271424f2a8b0a2a583ad3 Mon Sep 17 00:00:00 2001 From: Sebastian Brandhofer <148463728+sbrandhsn@users.noreply.github.com> Date: Fri, 16 Aug 2024 14:02:05 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Raynel Sanchez <87539502+raynelfss@users.noreply.github.com> --- crates/accelerate/src/commutation_checker.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/accelerate/src/commutation_checker.rs b/crates/accelerate/src/commutation_checker.rs index 293b2f4fb30b..4f6cbc02fb2c 100644 --- a/crates/accelerate/src/commutation_checker.rs +++ b/crates/accelerate/src/commutation_checker.rs @@ -659,12 +659,11 @@ impl ToPyObject for CommutationCacheEntry { py, k.0.iter() .map(|q| q.map(|t| t.0)) - .collect::>>(), ); let params0 = - PyTuple::new_bound(py, k.1 .0.iter().map(|pk| pk.0).collect::>()); + PyTuple::new_bound(py, k.1 .0.iter().map(|pk| pk.0)); let params1 = - PyTuple::new_bound(py, k.1 .1.iter().map(|pk| pk.0).collect::>()); + PyTuple::new_bound(py, k.1 .1.iter().map(|pk| pk.0)); out_dict .set_item( PyTuple::new_bound(py, [qubits, PyTuple::new_bound(py, [params0, params1])]),