diff --git a/mindspore/ccsrc/CMakeLists.txt b/mindspore/ccsrc/CMakeLists.txt index fee2fb65419..6b6167b6feb 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 4a553aa4590..5499ae60340 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 9a83619721e..41e49ba3d3a 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 b3836eb010f..69e6cd35cd5 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 d43121aa7ab..68133344368 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 d2e22a4ce96..a33b4293e37 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 1f95b363494..4570f30825e 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 2f7f52e6b26..bec1f967748 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 0589de47d20..4c0aa6e8147 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 57e0b05a412..5d5b69d4963 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 238f43f60e6..7d1e8b72685 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 39d12c8c70c..c998e56d601 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 f1c7b037ce5..8ef6a4bded7 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 1389293bc74..e31040ef7d0 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 d5e78c1bbb4..d518698b554 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 3ae0089dfc2..321816bba47 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 c43596621cf..78d51e8396a 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 ca6afaa155e..606d6629666 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 f470e41e307..d54b8d6175d 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 49829c132d9..08569ba9ae7 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 8dd82574ebf..16fe9c88278 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 852c27f39d8..134b86a03a8 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 d48bb3f1c0b..d8e5635171b 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 155e2e1e72b..15f8cc4abce 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 7040ad245d5..44b2b1790af 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 dcbd4556223..43d334a6ac0 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 848b5263e37..2b3c03928e7 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