Quantinuum/pytket-qiskit
View on GitHubRefactor internals of `qiskit_to_tk` conversion further
Open
#419 opened on Nov 20, 2024
circuit_conversionenhancementgood first issue
Repository metrics
- Stars
- (22 stars)
- PR merge metrics
- (PR metrics pending)
Description
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.
Related issue #313