qiskit-community / qiskit-braket-provider

Qiskit-Braket provider to execute Qiskit programs on quantum computing hardware devices through Amazon Braket.
https://qiskit-community.github.io/qiskit-braket-provider/
Apache License 2.0
58 stars 45 forks source link

Convert braket circuits to qiskit circuits #136

Closed jcjaskula-aws closed 8 months ago

jcjaskula-aws commented 9 months ago

Summary

Implemented a to_qiskit method to convert Braket Circuits to Qiskit QuantumCircuits.

Details and comments

We keep track of the free parameter names to reuse them if they appear several times in the circuits. Because the dicts construct parametric gates with a standalone Parameter, one needs to extra the class object to recreate a new gate with the right circuit Parameters. We add a measure_all instruction at the end because Braket measure all qubits.