From 3ab0af16927ec9288af98cd5e5c74f850797097e Mon Sep 17 00:00:00 2001 From: Shelly Garion Date: Wed, 6 Mar 2024 08:55:00 +0000 Subject: [PATCH] fix misprint in formula --- qiskit/synthesis/two_qubit/two_qubit_decompose.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qiskit/synthesis/two_qubit/two_qubit_decompose.py b/qiskit/synthesis/two_qubit/two_qubit_decompose.py index c8af4002fb27..9985d7cf50c6 100644 --- a/qiskit/synthesis/two_qubit/two_qubit_decompose.py +++ b/qiskit/synthesis/two_qubit/two_qubit_decompose.py @@ -541,7 +541,7 @@ def _closest_partial_swap(a, b, c) -> float: am, bm, cm = a - m, b - m, c - m ab, bc, ca = a - b, b - c, c - a - return m + am * bm * cm * (6 + ab * ab + bc * bc * ca * ca) / 18 + return m + am * bm * cm * (6 + ab * ab + bc * bc + ca * ca) / 18 class TwoQubitWeylPartialSWAPEquiv(TwoQubitWeylDecomposition):