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
5.22k stars 2.36k forks source link

RZX Weyl Decomposition should consider basis gate other than CX #9463

Open ehchen opened 1 year ago

ehchen commented 1 year ago

What should we add?

Brad Mitchell and I are interested in using this transformation pass on backends that do not have "cx" as a basis gate. The current decomposition hard codes the "CX" basis gate without any error handling mechanism for other entangling basis gates.

https://github.com/Qiskit/qiskit-terra/blob/85800ca1caf89189c927991cb86472ecb11da057/qiskit/transpiler/passes/optimization/echo_rzx_weyl_decomposition.py#L53

eggerdj commented 1 year ago

Looks related to #9308