Quantinuum/pytket-qiskit

Refactor internals of `qiskit_to_tk` conversion further

Open

#419 opened on Nov 20, 2024

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Python (16 forks)auto 404
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

Contributor guide