the qiskit_to_tk function uses a somewhat complicated CircuitBuilder.add_qiskit_data method internally.
I think it would be nicer/ more readable if this method was refactored to a pattern match (python match-case) on the optype variable. Theres some special handling of PauliEvolutionGate , UnitaryGate and CU3 gates that complicate things slightly.
the
qiskit_to_tk
function uses a somewhat complicatedCircuitBuilder.add_qiskit_data
method internally.I think it would be nicer/ more readable if this method was refactored to a pattern match (python match-case) on the
optype
variable. Theres some special handling ofPauliEvolutionGate
,UnitaryGate
andCU3
gates that complicate things slightly.Related issue #313