Skip to content

Align Qblox attenuation with parameters convention#1370

Merged
alecandido merged 1 commit intomainfrom
qblox-lo-att
Jan 27, 2026
Merged

Align Qblox attenuation with parameters convention#1370
alecandido merged 1 commit intomainfrom
qblox-lo-att

Conversation

@alecandido
Copy link
Member

@alecandido alecandido commented Jan 22, 2026

The original purpose of calling it .power was to also allow amplification.

Despite amplification not being available in Qblox, we should preserve the meaning of the configuration value, to make it consistent with other instruments (especially for the sake of exposing a uniform interface to Qibocal and similar projects).

@codecov
Copy link

codecov bot commented Jan 22, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 39.44%. Comparing base (9b6c12a) to head (91db3dd).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/qibolab/_core/instruments/qblox/config/port.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1370   +/-   ##
=======================================
  Coverage   39.44%   39.44%           
=======================================
  Files         114      114           
  Lines        5697     5697           
=======================================
  Hits         2247     2247           
  Misses       3450     3450           
Flag Coverage Δ
unittests 39.44% <0.00%> (ø)

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@RoyStegeman RoyStegeman marked this pull request as ready for review January 23, 2026 13:07
Base automatically changed from qblox-probe-mixers to main January 23, 2026 14:02

def att_(self, lo: OscillatorConfig) -> None:
self.att = int(lo.power)
self.att = -int(lo.power)

Choose a reason for hiding this comment

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

great! we just need to propagate this to the platforms using qblox.

@alecandido alecandido merged commit 7461f97 into main Jan 27, 2026
38 of 63 checks passed
@alecandido alecandido deleted the qblox-lo-att branch January 27, 2026 14:13
@alecandido alecandido linked an issue Feb 12, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Qblox LO power is attenuation

3 participants