You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently BraketClientBackend goes from qibo -> braket directly using braket_translate.py. If we cannot proceed with qibo_braket_provider for some reason(s), we may want to look into the possibility of qibo -> qasm -> qiskit -> braket conversion.
How qibo -> qasm -> qiskit -> braket conversion works:
To do that, implement a function, either inside this backend or outside but called inside the execute_circuit here
The function will build a qiskit circuit starting from the qibo generated QASM + some custom instructions through the qasm2.loads and overriding the qiskit.from_qasm
Finally, make use of the existing qiskit -> braket conversion layer to create the braket circuit and send it through
Some issues we face with the qasm -> qiskit conversion:
Qiskit uses r to represent the phase RX gate while Qibo and Braket use prx.
Changing qibo's PRX gate qasm representation from prx to r doesn't work -- qasm loader for qiskit doesn't recognise it because it's not in Qiskit's LEGACY_CUSTOM_INSTRUCTIONS. (See comment)
Adding MY_CUSTOM_INSTRUCTIONS to LEGACY_CUSTOM_INSTRUCTIONS also doesn't work. (See comment)
The text was updated successfully, but these errors were encountered:
Currently BraketClientBackend goes from
qibo -> braket
directly usingbraket_translate.py
. If we cannot proceed withqibo_braket_provider
for some reason(s), we may want to look into the possibility ofqibo -> qasm -> qiskit -> braket
conversion.How
qibo -> qasm -> qiskit -> braket
conversion works:execute_circuit
hereqiskit
circuit starting from theqibo
generated QASM + some custom instructions through theqasm2.loads
and overriding theqiskit.from_qasm
qiskit -> braket
conversion layer to create the braket circuit and send it throughSome issues we face with the
qasm -> qiskit
conversion:r
to represent the phase RX gate while Qibo and Braket useprx
.prx
tor
doesn't work --qasm
loader forqiskit
doesn't recognise it because it's not in Qiskit'sLEGACY_CUSTOM_INSTRUCTIONS
. (See comment)MY_CUSTOM_INSTRUCTIONS to LEGACY_CUSTOM_INSTRUCTIONS
also doesn't work. (See comment)The text was updated successfully, but these errors were encountered: