System and Environment Information
mqt.core 3.9.2
Bug Description
mqt.core.ir.QuantumComputation exposes v/vdg as gate methods (V = RX(π/2), V† = RX(-π/2)) and
MQT QMAP's router emits exactly this gate type when producing mapped circuits. However, mqt.core.plugins.qiskit.mqt_to_qiskit's internal _add_standard_operation dispatch has no case for OpType.v/OpType.vdg it falls through to an explicit raise TypeError(...) for any operation type
it doesn't recognize.
Steps to Reproduce
from mqt.core.ir import QuantumComputation
from mqt.core.plugins.qiskit import mqt_to_qiskit
qc = QuantumComputation(1)
qc.v(0) # V = RX(pi/2)
print(mqt_to_qiskit(qc))
Output
Traceback (most recent call last):
...
File ".../mqt/core/plugins/qiskit/mqt_to_qiskit.py", line 331, in _add_operation
_add_standard_operation(circ, op, qubit_map)
File ".../mqt/core/plugins/qiskit/mqt_to_qiskit.py", line 217, in _add_standard_operation
raise TypeError(msg)
TypeError: Unsupported operation type: OpType.v
System and Environment Information
mqt.core3.9.2Bug Description
mqt.core.ir.QuantumComputationexposesv/vdgas gate methods (V = RX(π/2),V† = RX(-π/2)) andMQT QMAP's router emits exactly this gate type when producing mapped circuits. However,
mqt.core.plugins.qiskit.mqt_to_qiskit's internal_add_standard_operationdispatch has no case forOpType.v/OpType.vdgit falls through to an explicitraise TypeError(...)for any operation typeit doesn't recognize.
Steps to Reproduce
Output