Skip to content

Commit

Permalink
cache pygates
Browse files Browse the repository at this point in the history
  • Loading branch information
ElePT committed Sep 12, 2024
1 parent 0b729b5 commit 8de52b5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/accelerate/src/unitary_synthesis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 8de52b5

Please sign in to comment.