From 43f61ec8b2f410e09cb9dfdfef125aeda0bfc9d6 Mon Sep 17 00:00:00 2001 From: Takuya Yoshioka <88071178+yoshioka1128@users.noreply.github.com> Date: Tue, 6 Aug 2024 15:34:59 +0900 Subject: [PATCH] Fix RYYGate decomposition bug --- .../openqaoa/qaoa_components/ansatz_constructor/gatemap.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openqaoa-core/openqaoa/qaoa_components/ansatz_constructor/gatemap.py b/src/openqaoa-core/openqaoa/qaoa_components/ansatz_constructor/gatemap.py index fdf5fe37a..09408ae96 100644 --- a/src/openqaoa-core/openqaoa/qaoa_components/ansatz_constructor/gatemap.py +++ b/src/openqaoa-core/openqaoa/qaoa_components/ansatz_constructor/gatemap.py @@ -246,8 +246,8 @@ def _decomposition_standard(self) -> List[Tuple]: ), (CX, [self.qubit_1, self.qubit_2]), ( - RY, - [self.qubit_2, RotationAngle(lambda x: x, self.gate_label, -np.pi / 2)], + RX, + [self.qubit_1, RotationAngle(lambda x: x, self.gate_label, -np.pi / 2)], ), ( RX,