-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running on qw11q (with/without transpiler) #209
Comments
Thank you for reporting the issue. I have not tried to execute myself, but here is some quick feedback that could possibly help. Note that I am assuming you are using qibolab 0.1 (and the corresponding platforms) for these tests. In principle we could make it work with 0.2 as well, but is easier to focus on one version first.
Looking at the chip schematic, it should be: connectivity = nx.Graph([("B1", "B2"), ("B1", "B3"), ("B2", "B4"), ("B3", "B4"), ("B4", "B5")]) However, I would suggest checking with @hay-k or @HishamKazim before attempting to execute something, because the runcards on main/0.1 branch are certainly outdated and I am not sure what is the latest status regarding calibration (particularly of 2q gates).
from qibolab.backends import QibolabBackend
backend = QibolabBackend(platform="qw11q") should work, if you prefer instantiating the backend object manually, instead of relying on qibo's By "handle transpilation", I mean make sure that the circuits passed to
Not tested by myself, but following https://qibo.science/qibo/latest/code-examples/advancedexamples.html#how-to-select-specific-hardware-qubits-for-circuit-execution it should be sufficient to do circuit = Circuit(2, qubits=["B1", "B2"]) or setting
Since you mention the Bell experiement, we are typically running this through Qibocal, using the circuits defined in https://github.com/qiboteam/qibocal/blob/main/src/qibocal/protocols/two_qubit_interaction/chsh/circuits.py. However, in Qibocal there are some transpiler related utilities (https://github.com/qiboteam/qibocal/blob/main/src/qibocal/auto/transpile.py) which allow to deploy these circuits to the proper qubits of each platform. However, if you are not familiar with Qibocal it may actually be harder to go to that direction. I believe for your example, it should be sufficient to specify the
If you are interested only in single or two-qubit circuits, you should not have any connectivity constraints, as long as you select two qubits that are connected (one of the pairs mentioned above), so you could even simplify and skip the connectivity related transpilers (as a first step). |
Thanks, @stavros11, for the detailed answer. In general, I believe it would help to limit the amount of hypotheses if you could post the entire stack trace, instead of just the error. To your first question, the answer is that all backends have a Expanding on @stavros11's answer to your second question, you can even avoid any extra knowledge beyond that you need for |
Thank you @stavros11 and @alecandido for the information and the detailed guidance. Let me try to run a simple Bell circuit without transpilation, i.e. I manually transpile the standard The goal is to do gate set tomography on Sorry for the late reply, I was clearing the year-end leave and am back now. Wishing you a fantastic 2025 ahead! |
Hi! I have been trying to run GST on
qw11q
. This is the code I'm using to run:An error message pops up:
ValueError: invalid literal for int() with base 10: 'A1'
.Within
GST
, all circuits are constructed withq0
for single qubit GST andq0
+q1
for two qubit GST.I think the error pops up because
qw11q
is expecting a transpiled circuit.I have two question:
connectivity
qibo.set_backend("qibolab", platform="qw11q")
to set the backend. But is there a way to set the backend withinbackend
to pass intoGST
?Alternatively, if transpiler is turned off, is there a way to target specific qubits in the B-line? I'll be happy to use a modified version of the
GST
code that takes into account the native gates ofqw11q
and the connectivity. If there is an example on how to execute a Bell circuit on the B-line, I could follow that and modify the GST code myself.Thank you so much. Wishing everyone a Merry Christmas!
The text was updated successfully, but these errors were encountered: