Open sorewachigauyo opened 2 weeks ago
This is expected, and even [documented], though the error is not necessarily that helpful.
Qibolab is not transpiling any longer, and you should explicitly transpile using Qibo.
The idea to improve the process is to make a transpiler part of the Qibo GlobalBackend
(as much as a backend is already part of it), but it has not been done yet. Cf. #883 and #884
So, you are receiving an error because the circuit has not been transpiled, and the compiler does not know about the X
gate.
Definitely poor UX, and maybe correspondingly poor docs, for the time being. I'm sorry for that.
In principle we could add the X gate in the default compiler, since it's pulse representation is quite straighforward (it's exactly the pi-pulse saved in the platform runcard). However, this opens another discussion of which gates are considered as native by default.
Another issue is that some algorithms/routines are affected by how the compilation is done, eg. RB results could be different if X is used and compiled as one or two pulses. This is why we decided to use GPI2 as the only native single qubit gate, since it is always mapped to a single pulse (+ virtual phases) and unlike X it is sufficient to implement any other gate.
Another issue is that some algorithms/routines are affected by how the compilation is done, eg. RB results could be different if X is used and compiled as one or two pulses. This is why we decided to use GPI2 as the only native single qubit gate, since it is always mapped to a single pulse (+ virtual phases) and unlike X it is sufficient to implement any other gate.
Indeed, and that's why I'd keep it like that.
It is true that there is not a unique definition of native gates, but I would keep the minimal universal set. Instead, we could support specialized compilation through compiler extensions, that should already be available (I would not invest much in that right now, but just keep that in mind for the future).
When setting up Qibolab 0.1.8 for the emulator VM, I encountered an issue running a simple Qibo example. I was able to replicate the issue on my own machine
which fails with this error
I also had this issue when using the dummy platform.