From 8de52b58f6d0d274c7acac85f03d53686ac8249f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elena=20Pe=C3=B1a=20Tapia?= Date: Thu, 12 Sep 2024 12:41:36 +0200 Subject: [PATCH] cache pygates --- crates/accelerate/src/unitary_synthesis.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/accelerate/src/unitary_synthesis.rs b/crates/accelerate/src/unitary_synthesis.rs index bafb57896ef9..13675fe1176d 100644 --- a/crates/accelerate/src/unitary_synthesis.rs +++ b/crates/accelerate/src/unitary_synthesis.rs @@ -10,8 +10,7 @@ // copyright notice, and modified files need to carry a notice indicating // that they have been altered from the originals. -// #[cfg(feature = "cache_pygates")] -// use std::cell::OnceCell; +use std::cell::OnceCell; use std::f64::consts::PI; use std::hash::Hash; @@ -185,8 +184,7 @@ fn dag_from_2q_gate_sequence( clbits: target_dag.cargs_interner.get_default(), params: new_params, extra_attrs: None, - // #[cfg(feature = "cache_pygates")] - // py_op: OnceCell::new(), + py_op: OnceCell::new(), }; instructions.push(pi); }