Qiskit / qiskit

Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and primitives.
https://www.ibm.com/quantum/qiskit
Apache License 2.0
4.82k stars 2.29k forks source link

Incoherence in notation for RZX gate #12684

Open bowangle opened 3 days ago

bowangle commented 3 days ago

URL to the relevant documentation

https://docs.quantum.ibm.com/api/qiskit/qiskit.circuit.library.RZXGate

In examples section, third equation

Select all that apply

Describe the fix.

If we follow the notation introduce for RZX(θ) q0,q1=exp(−i θ/2 X⊗Z) which are the default notation, it would mean that in the "examples" section, we should have RZX(θ=π)=−iX⊗Z instead of −iZ⊗X. It's not coherent with the fact that in the note section, we use big-endian convention for the tensor notation. Or else we have to tell in which way we apply the gate by adding the q1,q0 index like this: RZX(θ=π)q1,q0=−iZ⊗X.

Eric-Arellano commented 3 days ago

Thanks! This is an issue in the API docs, so it needs to be fixed in qiskit/qiskit. I'm transferring it there.