Refactor internals of qiskit_to_tk
conversion further
#419
Labels
circuit_conversion
Issues and pull requests related to coverting qiskit circuits to pytket and vice versa
enhancement
New feature or request
good first issue
Good for newcomers
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
The text was updated successfully, but these errors were encountered: