Skip to content
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

Improved code for selection of measurement start #656

Merged
merged 8 commits into from
Nov 16, 2023

Conversation

GabrielePalazzo
Copy link
Contributor

Fixed the start of the measurement pulse and improved code readability.

Checklist:

  • Reviewers confirm new code works as expected.
  • Tests are passing.
  • Coverage does not decrease.
  • Documentation is updated.

Copy link

codecov bot commented Nov 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (39bba83) 65.57% compared to head (9b4cc99) 65.65%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #656      +/-   ##
==========================================
+ Coverage   65.57%   65.65%   +0.07%     
==========================================
  Files          57       57              
  Lines        7945     7936       -9     
==========================================
  Hits         5210     5210              
+ Misses       2735     2726       -9     
Flag Coverage Δ
unittests 65.65% <100.00%> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@Jacfomg Jacfomg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the documentation for the errors the code seems to work as before.

src/qibolab/instruments/zhinst.py Outdated Show resolved Hide resolved
Comment on lines 930 to 931
# TODO: if the measure sequence starts after the last pulse, add a delay
# if the delay is too large (i.e. 5us),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you check the maximun before it crashes ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure.

@Jacfomg
Copy link
Contributor

Jacfomg commented Nov 14, 2023

If you removed the maximun delay comment can you document what we talked ?

Comment on lines 508 to 511
# self.experiment.save("saved_exp") # saving experiment
self.exp = self.session.compile(self.experiment, compiler_settings=COMPILER_SETTINGS)
# self.exp.save("saved_exp") # saving compiled experiment
self.results = self.session.run(self.exp)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before merging, please drop dead code.

Copy link
Contributor

@Jacfomg Jacfomg Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I asked him to get those lines there to document how to save the experiments in the case Zurich supports asks for them. I would like to have them somewhere.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then I would suggest the docstring :)

@GabrielePalazzo GabrielePalazzo merged commit acd612a into main Nov 16, 2023
@GabrielePalazzo GabrielePalazzo deleted the zh_qubit_readout_pulse_start branch November 16, 2023 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants