Closed georgios-ts closed 3 years ago
Thank you for the report. This is indeed a bug in the pytket-qulacs
backend. We will fix it in the next release, due around the beginning of February.
(In the meantime if you want to patch your 0.3.3 installation you should change param
to -param
at line 73 of qulacs_convert.py
.)
Fixed in pytket-qulacs 0.4.0
From Qulacs documentation: Rotation gates RX, RY, and RZ operate as Pauli rotation exp(𝑖𝜃/2𝑃) based on corresponding Pauli operator 𝑃 and argument 𝜃
Since tket uses exp(-𝑖aπ/2𝑃) representation, arguments of rotation gates should be multiplied by -1 inside
tk_to_qulacs
.