CQCL / pytket-qiskit

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

Support diagonal gates in circuit converters #151

Open CalMacCQ opened 1 year ago

CalMacCQ commented 1 year ago

Qiskit have diagonal gates.

These seem to be implemented in the same way as pytket's DiagonalBox. We should be able to support this in the circuit converters.

CalMacCQ commented 1 year ago

Looks like qiskit's Diagonal inherits from QuantumCircuit rather than Instruction so the conversion isn't quite as clean as I thought.

EDIT: DiagonalGate inherits from Gate so this should be doable -> https://docs.quantum.ibm.com/api/qiskit/qiskit.circuit.library.DiagonalGate