Skip to content

Commit

Permalink
fix misprint in formula (#11953)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShellyGarion committed Mar 6, 2024
1 parent f4b50fb commit 3e7f8b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit/synthesis/two_qubit/two_qubit_decompose.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 3e7f8b8

Please sign in to comment.