CQCL / pytket-qiskit

pytket-qiskit, extensions for pytket quantum SDK
Apache License 2.0
17 stars 13 forks source link

Refactor internals of `qiskit_to_tk` conversion further #419

Open CalMacCQ opened 1 week ago

CalMacCQ commented 1 week ago

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