Incorrect conversion of parameterised gates with large angles with qiskit_to_tk
#367
Labels
bug
Something isn't working
circuit_conversion
Issues and pull requests related to coverting qiskit circuits to pytket and vice versa
QASM output
The operators for
rx(0.21875*pi)
andrx(0.12*pi)
are not unitarily equivalent. Seems like there is some rounding error occuring when converting the large parameter value to pytket.As far as I know for the converision from qiskit params to pytket params simply consists in dividing by
sympy.pi
(for numeric values) to account for the differing angle conventions.See https://github.com/CQCL/pytket-qiskit/blob/main/pytket/extensions/qiskit/qiskit_convert.py#L571
The text was updated successfully, but these errors were encountered: