From ee7e0ea227d3edefc0aa1547e801cd42132e4066 Mon Sep 17 00:00:00 2001 From: Raynel Sanchez <87539502+raynelfss@users.noreply.github.com> Date: Wed, 18 Sep 2024 15:41:47 -0400 Subject: [PATCH] Add: `cache_py_gates` feature to `accelerate` crate. (#13183) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Elena Peña-Tapia <57907331+ElePT@users.noreply.github.com> Co-authored-by: Matthew Treinish --- crates/accelerate/Cargo.toml | 3 +++ crates/pyext/Cargo.toml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/accelerate/Cargo.toml b/crates/accelerate/Cargo.toml index 4c570f4a5285..d91523cd7cc6 100644 --- a/crates/accelerate/Cargo.toml +++ b/crates/accelerate/Cargo.toml @@ -58,3 +58,6 @@ features = ["ndarray"] [dependencies.pulp] version = "0.18.22" features = ["macro"] + +[features] +cache_pygates = ["qiskit-circuit/cache_pygates"] \ No newline at end of file diff --git a/crates/pyext/Cargo.toml b/crates/pyext/Cargo.toml index 413165e84b1f..eccc3ba8a87a 100644 --- a/crates/pyext/Cargo.toml +++ b/crates/pyext/Cargo.toml @@ -17,7 +17,7 @@ crate-type = ["cdylib"] # crates as standalone binaries, executables, we need `libpython` to be linked in, so we make the # feature a default, and run `cargo test --no-default-features` to turn it off. default = ["pyo3/extension-module"] -cache_pygates = ["pyo3/extension-module", "qiskit-circuit/cache_pygates"] +cache_pygates = ["pyo3/extension-module", "qiskit-circuit/cache_pygates", "qiskit-accelerate/cache_pygates"] [dependencies] pyo3.workspace = true