From 75193850d83285b6b451d2a34406cc61e6dc587e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Alfredo=20Nu=C3=B1ez=20Meneses?= Date: Fri, 3 Jan 2025 13:07:26 -0500 Subject: [PATCH] added SX to LK --- .../core/src/gates/Constant.hpp | 2 +- pennylane_lightning/core/src/gates/Gates.hpp | 7 +-- .../gates/BasicGateFunctors.hpp | 51 +++++++++++++++++++ .../cpu_kernels/GateImplementationsLM.hpp | 4 +- 4 files changed, 58 insertions(+), 6 deletions(-) diff --git a/pennylane_lightning/core/src/gates/Constant.hpp b/pennylane_lightning/core/src/gates/Constant.hpp index 0cb8d98c01..fa850dfafb 100644 --- a/pennylane_lightning/core/src/gates/Constant.hpp +++ b/pennylane_lightning/core/src/gates/Constant.hpp @@ -368,8 +368,8 @@ using CGateNParams = typename std::pair; CGateNParams{ControlledGateOperation::Hadamard, 0}, CGateNParams{ControlledGateOperation::S, 0}, CGateNParams{ControlledGateOperation::T, 0}, - CGateNParams{ControlledGateOperation::PhaseShift, 1}, CGateNParams{ControlledGateOperation::SX, 0}, + CGateNParams{ControlledGateOperation::PhaseShift, 1}, CGateNParams{ControlledGateOperation::RX, 1}, CGateNParams{ControlledGateOperation::RY, 1}, CGateNParams{ControlledGateOperation::RZ, 1}, diff --git a/pennylane_lightning/core/src/gates/Gates.hpp b/pennylane_lightning/core/src/gates/Gates.hpp index 4fee37da40..65bbf0971c 100644 --- a/pennylane_lightning/core/src/gates/Gates.hpp +++ b/pennylane_lightning/core/src/gates/Gates.hpp @@ -110,9 +110,10 @@ static constexpr auto getHadamard() -> std::vector> { * of SX data. */ template