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.
Summary
Implemented a
to_qiskit
method to convert BraketCircuit
s to QiskitQuantumCircuit
s.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 ameasure_all
instruction at the end because Braket measure all qubits.