-
Notifications
You must be signed in to change notification settings - Fork 15
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
Remove folder argument from platform create
#784
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @stavros11, indeed it is better update the documentation accordingly given that we dropped the folder argument in https://github.com/qiboteam/qibolab_platforms_qrc
Thanks, the only issue is that doctest requires qibo to be updated, because |
Ahhh, too many repositories. |
Btw, shall we release qibolab now that the milestone is complete? @scarrazza @stavros11 @alecandido |
Fine by me :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of suggestions. Other than that, is perfectly fine.
@@ -611,8 +628,10 @@ in this case ``"twpa_pump"``. | |||
from qibolab.instruments.dummy import DummyInstrument | |||
from qibolab.instruments.oscillator import LocalOscillator | |||
|
|||
FOLDER = Path.cwd() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FOLDER = Path.cwd() | |
FOLDER = Path(__file__).absolute().parent |
Since you never know in which directory is the person launching it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also don't like this, because it's not what the user is supposed to use, but Path(__file__)
was causing doctest to fail, I guess because it's not really a file.
https://github.com/qiboteam/qibolab/actions/runs/7669260031/job/20902792936
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right after writing this, I realized that could be the reason...
I thought a while about that, but the only two proposals I have are:
- avoid testing or
- leave it as it is, but add a comment explaining
It's not great to see a comment for internal testing reasons, but you should do in this other way. But I would leave a simpler comment anyhow
FOLDER = Path.cwd() | |
FOLDER = Path.cwd() # Path(__file__).absolute().parent |
at least the reader has a chance of understanding the difference.
@andrea-pasquale fine by me too. |
@andrea-pasquale @alecandido I updated qibo to 0.2.6. As soon as CI passes, I will merge this. |
bad luck... |
@alecandido in 2603611 I dropped the default transpiler from The reason for dropping is that otherwise we are testing the transpiler in qibolab tests while the code is in qibo (which leads to the failures above). It is still possible to add a transpiler of choice manually: backend = QibolabBackend("my_platform")
backend.transpiler = ... # my transpiler imported from qibo or even better the user transpiles their circuit manually: backend = QibolabBackend("my_platform")
circuit = Circuit(...)
...
native_circuit = my_transpiler(circuit)
result = backend.execute_circuit(native_circuit) |
After https://github.com/qiboteam/qibolab/actions/runs/8360122834/job/22885054536?pr=784 I think I should officially give up
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #784 +/- ##
=======================================
Coverage 66.56% 66.57%
=======================================
Files 50 50
Lines 6063 6061 -2
=======================================
- Hits 4036 4035 -1
+ Misses 2027 2026 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Yes, please, just merge. All in all, Qibolab is the low-level layer, it is fine to require circuits to be transpiled by someone else (i.e. Qibo). |
Following the discussion in qiboteam/qibolab_platforms_qrc#108 (comment).
I believe some lines in qibo (and maybe also qibocal) need to be updated.
Checklist: