Skip to content

Commit

Permalink
fix misprint in formula (Qiskit#11953)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShellyGarion authored and IsmaelCesar committed Mar 13, 2024
1 parent 08584ac commit f35cfd5
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 f35cfd5

Please sign in to comment.