From a9a96c9a9cdeb54f5a5129bcc6a27ea2aedec3d1 Mon Sep 17 00:00:00 2001 From: donghufeng Date: Tue, 13 Apr 2021 11:23:08 +0800 Subject: [PATCH] change quantum simulator position --- mindspore/ccsrc/CMakeLists.txt | 2 +- .../cpu/quantum/evolution_cpu_kernel.h | 8 ++++---- .../kernel_compiler/cpu/quantum/pqc_cpu_kernel.h | 8 ++++---- .../cpu/quantum/quantum_simulator}/CMakeLists.txt | 2 +- .../cpu/quantum/quantum_simulator}/circuit.cc | 2 +- .../cpu/quantum/quantum_simulator}/circuit.h | 6 +++--- .../quantum/quantum_simulator}/gates/basic_gates.cc | 2 +- .../quantum/quantum_simulator}/gates/basic_gates.h | 4 ++-- .../cpu/quantum/quantum_simulator}/gates/gates.cc | 2 +- .../cpu/quantum/quantum_simulator}/gates/gates.h | 4 ++-- .../gates/intrinsic_one_para_gate.cc | 2 +- .../gates/intrinsic_one_para_gate.h | 4 ++-- .../quantum_simulator}/gates/non_parameter_gate.cc | 2 +- .../quantum_simulator}/gates/non_parameter_gate.h | 4 ++-- .../quantum_simulator}/gates/parameter_gate.cc | 2 +- .../quantum_simulator}/gates/parameter_gate.h | 4 ++-- .../cpu/quantum/quantum_simulator}/hamiltonian.cc | 2 +- .../cpu/quantum/quantum_simulator}/hamiltonian.h | 6 +++--- .../quantum/quantum_simulator}/parameter_resolver.cc | 2 +- .../quantum/quantum_simulator}/parameter_resolver.h | 2 +- .../cpu/quantum/quantum_simulator}/pqc_simulator.cc | 2 +- .../cpu/quantum/quantum_simulator}/pqc_simulator.h | 12 ++++++------ .../cpu/quantum/quantum_simulator}/sparse.cc | 2 +- .../cpu/quantum/quantum_simulator}/sparse.h | 2 +- .../cpu/quantum/quantum_simulator}/transformer.cc | 2 +- .../cpu/quantum/quantum_simulator}/transformer.h | 10 +++++----- .../cpu/quantum/quantum_simulator}/utils.cc | 2 +- .../cpu/quantum/quantum_simulator}/utils.h | 0 28 files changed, 51 insertions(+), 51 deletions(-) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/CMakeLists.txt (92%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/circuit.cc (96%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/circuit.h (84%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/gates/basic_gates.cc (94%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/gates/basic_gates.h (90%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/gates/gates.cc (98%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/gates/gates.h (93%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/gates/intrinsic_one_para_gate.cc (95%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/gates/intrinsic_one_para_gate.h (89%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/gates/non_parameter_gate.cc (92%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/gates/non_parameter_gate.h (87%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/gates/parameter_gate.cc (91%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/gates/parameter_gate.h (86%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/hamiltonian.cc (97%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/hamiltonian.h (87%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/parameter_resolver.cc (94%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/parameter_resolver.h (95%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/pqc_simulator.cc (98%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/pqc_simulator.h (82%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/sparse.cc (97%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/sparse.h (96%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/transformer.cc (98%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/transformer.h (86%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/utils.cc (96%) rename mindspore/ccsrc/{mindquantum => backend/kernel_compiler/cpu/quantum/quantum_simulator}/utils.h (100%) diff --git a/mindspore/ccsrc/CMakeLists.txt b/mindspore/ccsrc/CMakeLists.txt index fee2fb6541..6b6167b6fe 100644 --- a/mindspore/ccsrc/CMakeLists.txt +++ b/mindspore/ccsrc/CMakeLists.txt @@ -223,7 +223,7 @@ set(SUB_COMP frontend/operator pipeline/jit pipeline/pynative - common debug pybind_api utils vm profiler ps mindquantum + common debug pybind_api utils vm profiler ps ) foreach(_comp ${SUB_COMP}) diff --git a/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/evolution_cpu_kernel.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/evolution_cpu_kernel.h index 4a553aa459..5499ae6034 100644 --- a/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/evolution_cpu_kernel.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/evolution_cpu_kernel.h @@ -19,10 +19,10 @@ #include #include "backend/kernel_compiler/cpu/cpu_kernel.h" #include "backend/kernel_compiler/cpu/cpu_kernel_factory.h" -#include "mindquantum/pqc_simulator.h" -#include "mindquantum/transformer.h" -#include "mindquantum/circuit.h" -#include "mindquantum/parameter_resolver.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/pqc_simulator.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/transformer.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/circuit.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/parameter_resolver.h" namespace mindspore { namespace kernel { diff --git a/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/pqc_cpu_kernel.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/pqc_cpu_kernel.h index 9a83619721..41e49ba3d3 100644 --- a/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/pqc_cpu_kernel.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/pqc_cpu_kernel.h @@ -21,10 +21,10 @@ #include #include "backend/kernel_compiler/cpu/cpu_kernel.h" #include "backend/kernel_compiler/cpu/cpu_kernel_factory.h" -#include "mindquantum/pqc_simulator.h" -#include "mindquantum/transformer.h" -#include "mindquantum/circuit.h" -#include "mindquantum/parameter_resolver.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/pqc_simulator.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/transformer.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/circuit.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/parameter_resolver.h" namespace mindspore { namespace kernel { diff --git a/mindspore/ccsrc/mindquantum/CMakeLists.txt b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/CMakeLists.txt similarity index 92% rename from mindspore/ccsrc/mindquantum/CMakeLists.txt rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/CMakeLists.txt index b3836eb010..69e6cd35cd 100644 --- a/mindspore/ccsrc/mindquantum/CMakeLists.txt +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/CMakeLists.txt @@ -1,6 +1,6 @@ if(ENABLE_CPU AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND ${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "x86_64") - message("compiled mindquantum") + message("compiled quantum simulator") file(GLOB_RECURSE _MINDQUANTUM_SRC_LIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.cc") set_property(SOURCE ${_MINDQUANTUM_SRC_LIST} PROPERTY COMPILE_DEFINITIONS SUBMODULE_ID=mindspore::SubModuleId::SM_MINDQUANTUM) diff --git a/mindspore/ccsrc/mindquantum/circuit.cc b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/circuit.cc similarity index 96% rename from mindspore/ccsrc/mindquantum/circuit.cc rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/circuit.cc index d43121aa7a..6813334436 100644 --- a/mindspore/ccsrc/mindquantum/circuit.cc +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/circuit.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "mindquantum/circuit.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/circuit.h" namespace mindspore { namespace mindquantum { diff --git a/mindspore/ccsrc/mindquantum/circuit.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/circuit.h similarity index 84% rename from mindspore/ccsrc/mindquantum/circuit.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/circuit.h index d2e22a4ce9..a33b4293e3 100644 --- a/mindspore/ccsrc/mindquantum/circuit.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/circuit.h @@ -19,9 +19,9 @@ #include #include #include -#include "mindquantum/gates/non_parameter_gate.h" -#include "mindquantum/gates/gates.h" -#include "mindquantum/utils.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/non_parameter_gate.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/gates.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/utils.h" namespace mindspore { namespace mindquantum { diff --git a/mindspore/ccsrc/mindquantum/gates/basic_gates.cc b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/basic_gates.cc similarity index 94% rename from mindspore/ccsrc/mindquantum/gates/basic_gates.cc rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/basic_gates.cc index 1f95b36349..4570f30825 100644 --- a/mindspore/ccsrc/mindquantum/gates/basic_gates.cc +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/basic_gates.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "mindquantum/gates/basic_gates.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/basic_gates.h" #include diff --git a/mindspore/ccsrc/mindquantum/gates/basic_gates.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/basic_gates.h similarity index 90% rename from mindspore/ccsrc/mindquantum/gates/basic_gates.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/basic_gates.h index 2f7f52e6b2..bec1f96774 100644 --- a/mindspore/ccsrc/mindquantum/gates/basic_gates.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/basic_gates.h @@ -17,8 +17,8 @@ #ifndef MINDQUANTUM_ENGINE_BASIC_GATES_H_ #define MINDQUANTUM_ENGINE_BASIC_GATES_H_ #include -#include "mindquantum/parameter_resolver.h" -#include "mindquantum/utils.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/parameter_resolver.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/utils.h" namespace mindspore { namespace mindquantum { diff --git a/mindspore/ccsrc/mindquantum/gates/gates.cc b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/gates.cc similarity index 98% rename from mindspore/ccsrc/mindquantum/gates/gates.cc rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/gates.cc index 0589de47d2..4c0aa6e814 100644 --- a/mindspore/ccsrc/mindquantum/gates/gates.cc +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/gates.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "mindquantum/gates/gates.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/gates.h" #include diff --git a/mindspore/ccsrc/mindquantum/gates/gates.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/gates.h similarity index 93% rename from mindspore/ccsrc/mindquantum/gates/gates.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/gates.h index 57e0b05a41..5d5b69d496 100644 --- a/mindspore/ccsrc/mindquantum/gates/gates.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/gates.h @@ -16,8 +16,8 @@ #ifndef MINDQUANTUM_ENGINE_GATES_H_ #define MINDQUANTUM_ENGINE_GATES_H_ -#include "mindquantum/gates/intrinsic_one_para_gate.h" -#include "mindquantum/utils.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/intrinsic_one_para_gate.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/utils.h" namespace mindspore { namespace mindquantum { diff --git a/mindspore/ccsrc/mindquantum/gates/intrinsic_one_para_gate.cc b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/intrinsic_one_para_gate.cc similarity index 95% rename from mindspore/ccsrc/mindquantum/gates/intrinsic_one_para_gate.cc rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/intrinsic_one_para_gate.cc index 238f43f60e..7d1e8b7268 100644 --- a/mindspore/ccsrc/mindquantum/gates/intrinsic_one_para_gate.cc +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/intrinsic_one_para_gate.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "mindquantum/gates/intrinsic_one_para_gate.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/intrinsic_one_para_gate.h" #include diff --git a/mindspore/ccsrc/mindquantum/gates/intrinsic_one_para_gate.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/intrinsic_one_para_gate.h similarity index 89% rename from mindspore/ccsrc/mindquantum/gates/intrinsic_one_para_gate.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/intrinsic_one_para_gate.h index 39d12c8c70..c998e56d60 100644 --- a/mindspore/ccsrc/mindquantum/gates/intrinsic_one_para_gate.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/intrinsic_one_para_gate.h @@ -17,8 +17,8 @@ #ifndef MINDQUANTUM_ENGINE_INTRINSIC_ONE_PARAGATE_H_ #define MINDQUANTUM_ENGINE_INTRINSIC_ONE_PARAGATE_H_ #include -#include "mindquantum/gates/parameter_gate.h" -#include "mindquantum/utils.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/parameter_gate.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/utils.h" namespace mindspore { namespace mindquantum { diff --git a/mindspore/ccsrc/mindquantum/gates/non_parameter_gate.cc b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/non_parameter_gate.cc similarity index 92% rename from mindspore/ccsrc/mindquantum/gates/non_parameter_gate.cc rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/non_parameter_gate.cc index f1c7b037ce..8ef6a4bded 100644 --- a/mindspore/ccsrc/mindquantum/gates/non_parameter_gate.cc +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/non_parameter_gate.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "mindquantum/gates/non_parameter_gate.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/non_parameter_gate.h" #include diff --git a/mindspore/ccsrc/mindquantum/gates/non_parameter_gate.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/non_parameter_gate.h similarity index 87% rename from mindspore/ccsrc/mindquantum/gates/non_parameter_gate.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/non_parameter_gate.h index 1389293bc7..e31040ef7d 100644 --- a/mindspore/ccsrc/mindquantum/gates/non_parameter_gate.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/non_parameter_gate.h @@ -17,8 +17,8 @@ #ifndef MINDQUANTUM_ENGINE_NON_PARAMETER_GATE_H_ #define MINDQUANTUM_ENGINE_NON_PARAMETER_GATE_H_ #include -#include "mindquantum/gates/basic_gates.h" -#include "mindquantum/utils.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/basic_gates.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/utils.h" namespace mindspore { namespace mindquantum { diff --git a/mindspore/ccsrc/mindquantum/gates/parameter_gate.cc b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/parameter_gate.cc similarity index 91% rename from mindspore/ccsrc/mindquantum/gates/parameter_gate.cc rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/parameter_gate.cc index d5e78c1bbb..d518698b55 100644 --- a/mindspore/ccsrc/mindquantum/gates/parameter_gate.cc +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/parameter_gate.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "mindquantum/gates/parameter_gate.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/parameter_gate.h" #include diff --git a/mindspore/ccsrc/mindquantum/gates/parameter_gate.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/parameter_gate.h similarity index 86% rename from mindspore/ccsrc/mindquantum/gates/parameter_gate.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/parameter_gate.h index 3ae0089dfc..321816bba4 100644 --- a/mindspore/ccsrc/mindquantum/gates/parameter_gate.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/parameter_gate.h @@ -17,8 +17,8 @@ #ifndef MINDQUANTUM_ENGINE_PARAMETER_GATE_H_ #define MINDQUANTUM_ENGINE_PARAMETER_GATE_H_ #include -#include "mindquantum/gates/basic_gates.h" -#include "mindquantum/utils.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/basic_gates.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/utils.h" namespace mindspore { namespace mindquantum { diff --git a/mindspore/ccsrc/mindquantum/hamiltonian.cc b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/hamiltonian.cc similarity index 97% rename from mindspore/ccsrc/mindquantum/hamiltonian.cc rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/hamiltonian.cc index c43596621c..78d51e8396 100644 --- a/mindspore/ccsrc/mindquantum/hamiltonian.cc +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/hamiltonian.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "mindquantum/hamiltonian.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/hamiltonian.h" #include namespace mindspore { diff --git a/mindspore/ccsrc/mindquantum/hamiltonian.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/hamiltonian.h similarity index 87% rename from mindspore/ccsrc/mindquantum/hamiltonian.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/hamiltonian.h index ca6afaa155..606d662966 100644 --- a/mindspore/ccsrc/mindquantum/hamiltonian.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/hamiltonian.h @@ -17,9 +17,9 @@ #ifndef MINDQUANTUM_ENGINE_CHAMILTONIAN_H_ #define MINDQUANTUM_ENGINE_CHAMILTONIAN_H_ #include "projectq/backends/_sim/_cppkernels/simulator.hpp" -#include "mindquantum/gates/basic_gates.h" -#include "mindquantum/sparse.h" -#include "mindquantum/utils.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/basic_gates.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/sparse.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/utils.h" namespace mindspore { namespace mindquantum { diff --git a/mindspore/ccsrc/mindquantum/parameter_resolver.cc b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/parameter_resolver.cc similarity index 94% rename from mindspore/ccsrc/mindquantum/parameter_resolver.cc rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/parameter_resolver.cc index f470e41e30..d54b8d6175 100644 --- a/mindspore/ccsrc/mindquantum/parameter_resolver.cc +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/parameter_resolver.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "mindquantum/parameter_resolver.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/parameter_resolver.h" namespace mindspore { namespace mindquantum { diff --git a/mindspore/ccsrc/mindquantum/parameter_resolver.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/parameter_resolver.h similarity index 95% rename from mindspore/ccsrc/mindquantum/parameter_resolver.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/parameter_resolver.h index 49829c132d..08569ba9ae 100644 --- a/mindspore/ccsrc/mindquantum/parameter_resolver.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/parameter_resolver.h @@ -19,7 +19,7 @@ #include #include #include -#include "mindquantum/utils.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/utils.h" namespace mindspore { namespace mindquantum { diff --git a/mindspore/ccsrc/mindquantum/pqc_simulator.cc b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/pqc_simulator.cc similarity index 98% rename from mindspore/ccsrc/mindquantum/pqc_simulator.cc rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/pqc_simulator.cc index 8dd82574eb..16fe9c8827 100644 --- a/mindspore/ccsrc/mindquantum/pqc_simulator.cc +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/pqc_simulator.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "mindquantum/pqc_simulator.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/pqc_simulator.h" #include #include diff --git a/mindspore/ccsrc/mindquantum/pqc_simulator.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/pqc_simulator.h similarity index 82% rename from mindspore/ccsrc/mindquantum/pqc_simulator.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/pqc_simulator.h index 852c27f39d..134b86a03a 100644 --- a/mindspore/ccsrc/mindquantum/pqc_simulator.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/pqc_simulator.h @@ -22,12 +22,12 @@ #include #include "projectq/backends/_sim/_cppkernels/simulator.hpp" #include "utils/log_adapter.h" -#include "mindquantum/gates/basic_gates.h" -#include "mindquantum/parameter_resolver.h" -#include "mindquantum/circuit.h" -#include "mindquantum/hamiltonian.h" -#include "mindquantum/utils.h" -#include "mindquantum/transformer.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/basic_gates.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/parameter_resolver.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/circuit.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/hamiltonian.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/utils.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/transformer.h" namespace mindspore { namespace mindquantum { diff --git a/mindspore/ccsrc/mindquantum/sparse.cc b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/sparse.cc similarity index 97% rename from mindspore/ccsrc/mindquantum/sparse.cc rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/sparse.cc index d48bb3f1c0..d8e5635171 100644 --- a/mindspore/ccsrc/mindquantum/sparse.cc +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/sparse.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "mindquantum/sparse.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/sparse.h" namespace mindspore { namespace mindquantum { diff --git a/mindspore/ccsrc/mindquantum/sparse.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/sparse.h similarity index 96% rename from mindspore/ccsrc/mindquantum/sparse.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/sparse.h index 155e2e1e72..15f8cc4abc 100644 --- a/mindspore/ccsrc/mindquantum/sparse.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/sparse.h @@ -24,7 +24,7 @@ #include #include #include -#include "mindquantum/utils.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/utils.h" namespace mindspore { namespace mindquantum { diff --git a/mindspore/ccsrc/mindquantum/transformer.cc b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/transformer.cc similarity index 98% rename from mindspore/ccsrc/mindquantum/transformer.cc rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/transformer.cc index 7040ad245d..44b2b1790a 100644 --- a/mindspore/ccsrc/mindquantum/transformer.cc +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/transformer.cc @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "mindquantum/transformer.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/transformer.h" #include #include diff --git a/mindspore/ccsrc/mindquantum/transformer.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/transformer.h similarity index 86% rename from mindspore/ccsrc/mindquantum/transformer.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/transformer.h index dcbd455622..43d334a6ac 100644 --- a/mindspore/ccsrc/mindquantum/transformer.h +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/transformer.h @@ -18,11 +18,11 @@ #define MINDQUANTUM_ENGINE_TRANSFORMER_H_ #include #include -#include "mindquantum/gates/gates.h" -#include "mindquantum/circuit.h" -#include "mindquantum/utils.h" -#include "mindquantum/parameter_resolver.h" -#include "mindquantum/hamiltonian.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/gates/gates.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/circuit.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/utils.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/parameter_resolver.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/hamiltonian.h" namespace mindspore { namespace mindquantum { diff --git a/mindspore/ccsrc/mindquantum/utils.cc b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/utils.cc similarity index 96% rename from mindspore/ccsrc/mindquantum/utils.cc rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/utils.cc index 848b5263e3..2b3c03928e 100644 --- a/mindspore/ccsrc/mindquantum/utils.cc +++ b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/utils.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "mindquantum/utils.h" +#include "backend/kernel_compiler/cpu/quantum/quantum_simulator/utils.h" namespace mindspore { namespace mindquantum { diff --git a/mindspore/ccsrc/mindquantum/utils.h b/mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/utils.h similarity index 100% rename from mindspore/ccsrc/mindquantum/utils.h rename to mindspore/ccsrc/backend/kernel_compiler/cpu/quantum/quantum_simulator/utils.h