-
Notifications
You must be signed in to change notification settings - Fork 6
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
Incorrect parameters in the RB runcard example #1011
Comments
@biankawolo just a general comment: to provide help for a bug, it is important to be able to reproduce (otherwise there will be a lot more guessing-in-the-wild involved). So, please, whenever you file a bug report (starting from this one), provide:
|
@alecandido |
That's great, I'm confident @Edoardo-Pedicillo will be able to help you :) However, the purpose of issues is also to track possible problems even as a reference to the other users (which may encounter the same ones), and to the other developers (which may help to solve it, or point it to other users). |
@alecandido good point! I have not thought about that:) thankx! |
So Edoardo told me to put it all, because it might be a bigger issue.
The routine tries to execute itself and then at the end it crashes Traceback (most recent call last):
File "/nfs/users/bianka.woloncewicz/.envs/october/bin/qq", line 8, in <module>
sys.exit(command())
File "/nfs/users/bianka.woloncewicz/.envs/october/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/nfs/users/bianka.woloncewicz/.envs/october/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/nfs/users/bianka.woloncewicz/.envs/october/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/nfs/users/bianka.woloncewicz/.envs/october/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/nfs/users/bianka.woloncewicz/.envs/october/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/nfs/users/bianka.woloncewicz/qibocal/src/qibocal/cli/_base.py", line 75, in auto
autocalibrate(runcard, folder, force, update)
File "/nfs/users/bianka.woloncewicz/qibocal/src/qibocal/cli/autocalibration.py", line 42, in autocalibrate
history = runcard.run(
File "/nfs/users/bianka.woloncewicz/qibocal/src/qibocal/auto/runcard.py", line 63, in run
instance.run_protocol(
File "/nfs/users/bianka.woloncewicz/qibocal/src/qibocal/auto/execute.py", line 131, in run_protocol
completed = task.run(platform=self.platform, targets=self.targets, mode=mode)
File "/nfs/users/bianka.woloncewicz/qibocal/src/qibocal/auto/task.py", line 160, in run
completed.results, completed.results_time = operation.fit(completed.data)
File "/nfs/users/bianka.woloncewicz/qibocal/src/qibocal/auto/operation.py", line 42, in wrapper
out = func(*args, **kwds)
File "/nfs/users/bianka.woloncewicz/qibocal/src/qibocal/protocols/randomized_benchmarking/standard_rb.py", line 104, in _fit
return fit(data.qubits, data)
File "/nfs/users/bianka.woloncewicz/qibocal/src/qibocal/protocols/randomized_benchmarking/utils.py", line 710, in fit
error_bars = data_uncertainties(
File "/nfs/users/bianka.woloncewicz/qibocal/src/qibocal/protocols/randomized_benchmarking/utils.py", line 211, in data_uncertainties
(100 - method) / 2,
TypeError: unsupported operand type(s) for -: 'int' and 'str' If you need anything else please let me know! |
I assume you're using the Qibolab So, the problem apparently is that Investigation
Not sure in the first place why it is called
The qibocal/src/qibocal/protocols/randomized_benchmarking/standard_rb.py Lines 94 to 104 in 731c9b1
generated by the rb_acquisition()
(everything linear here). The
qibocal/src/qibocal/protocols/randomized_benchmarking/utils.py Lines 520 to 528 in 731c9b1
which is setting the .uncertainties attribute after the params one
which in this case are the StandardRBParameters qibocal/src/qibocal/protocols/randomized_benchmarking/standard_rb.py Lines 26 to 36 in 731c9b1
So, the question is: why the I.e. the error is all generated by this: uncertainties: std |
I guess you just used the runcard from qibocal/runcards/actions_qq.yml Lines 370 to 379 in 731c9b1
that's the explanation. Which is now conflicting with the documentation of that field qibocal/src/qibocal/protocols/randomized_benchmarking/standard_rb.py Lines 36 to 42 in 731c9b1
That was changed in 8fde113 in #718. |
Thanx I ll try that! |
Whenever you tried, remember to report the outcome! |
It works! |
Thanks for the confirmation! |
Dear Qibo!
Fot standard RB for one qubit "if a dictionary is given (in actions.yml) the list will be built" - not true :) There seems to be a problem with yml file. I put in my actions:
and it does not generate any report.
Thanks for help!
The text was updated successfully, but these errors were encountered: