Skip to content

Use the platform sampling rate in calibrate_state_discrimination - #1812

Open
rodolfocarobene wants to merge 1 commit into
mainfrom
fix_kernel_calib
Open

rodolfocarobene wants to merge 1 commit into
mainfrom
fix_kernel_calib

Conversation

@rodolfocarobene

Copy link
Copy Markdown
Contributor

calibrate_state_discrimination assumed the raw traces were sampled at 1 GSps when low-pass filtering them. That gives the wrong filter on platforms with a different trace rate, e.g. 307.2 MS/s on a ZCU216 with qibosoq. The protocol now stores platform.sampling_rate with the data and filters with it. When the platform reports no sampling rate it falls back to 1 GSps, so other platforms behave as before. Tested on a ZCU216 (tProc v2, loopback) together with the qibosoq weighted-buffer.

@rodolfocarobene
rodolfocarobene requested review from a team, alecandido and lballerio December 3, 2026 10:22
@rodolfocarobene rodolfocarobene added the ai Not human-authored. But human-supervised label Dec 3, 2026
@codecov

codecov Bot commented Dec 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 71.42857% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.82%. Comparing base (9d98866) to head (f0b99d2).

Files with missing lines Patch % Lines
...gnal_experiments/calibrate_state_discrimination.py 71.42% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1812      +/-   ##
==========================================
- Coverage   88.86%   88.82%   -0.05%     
==========================================
  Files         155      155              
  Lines       13085    13091       +6     
==========================================
  Hits        11628    11628              
- Misses       1457     1463       +6     
Flag Coverage Δ
unittests 88.82% <71.42%> (-0.05%) ⬇️

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

Files with missing lines Coverage Δ
...gnal_experiments/calibrate_state_discrimination.py 98.03% <71.42%> (-1.97%) ⬇️

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@rodolfocarobene

Copy link
Copy Markdown
Contributor Author

Codcov fails, but I dont think a new test is really needed. I will fix it if you ask :-)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai Not human-authored. But human-supervised

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant