-
Notifications
You must be signed in to change notification settings - Fork 61
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
Missing wire_names
raises ValueError: The circuit qubits are not in the connectivity graph.
#1550
Comments
The "not-the-best" issues are not extremely useful. If we had many more issues to triage, I'd be tempted to close them right away. In general, you should qualify an issue as either a bug report or feature request. That in the end boil down to the same resolution process: clarify what is happening, and aim for something different. In short, they both require a proposal of an alternative behavior (more or less specific). If you do not have any clear plan for anything better, but you'd like to discuss an alternative anyhow, to stimulate ideas from other contributors, a discussion (https://github.com/qiboteam/qibo/discussions/) may be more appropriate. |
Well, this is pretty clearly a problem in my opinion. I did not mark it as a bug (yet) because I usually wait until someone who is more familiar with the specific part of the code confirms that it is indeed a problem. I clarified the problem and provided the code to reproduce it (the proposal is somewhat implicit: don't require the user to know which are the names of the qubits in the runcard), thus, this to me has the dignity to remain an issue. |
The comment above was not much directed to the problem (which I'm just not judging) or its description (which is arguably detailed). But rather what you would expect as a solution. Whenever there is something ambiguous in the specification, failing is a decent alternative. Surprises are much worse than failures, and harder to debug. The error itself is also pretty telling. You may still desire a different behavior, and discussing it would be definitely appreciated. But you should then explain which is the behavior that you wish/would expect. |
Sorry, I edited the answer to add it.
let me know which other details you need. Btw, I did not find any documentation about the use of the |
This was the purpose of this PR, #1531, which should not be released yet.
As it has been discussed during some presentation, the idea is that you want to look at the platform and select the qubits you prefer. Or at least you want to be able to do that. Now, you may argue that you also want automatic placement to happen if you do not specify any. I'm not sure why it's not happening with the default transpiler, but if it's what you want, it should be fairly simple to implement. In any case, since Qibo is not deployed on any production system, automatic placement is something that is barely useful in practice, because it would not take into account the qubits calibration (this is what @csookim started working on at the end of November), and the result of anything else would be poor and unusable. |
Running a circuit on the
qw11q
at theqrc cluster
fails with a transpiler error if thewire_names
are not specified, or if they are but don't have the names found in the runcard https://github.com/qiboteam/qibolab_platforms_qrc/blob/0.1/qw11q/parameters.json.I am not sure whether this is an expected behaviour, but if it is I would argue it is not very user friendly.
The text was updated successfully, but these errors were encountered: