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

Avoid flaky test execution in z_phase_calibration_test #6928

Merged

Conversation

pavoljuhas
Copy link
Collaborator

@pavoljuhas pavoljuhas commented Jan 8, 2025

Remove test dependence on the pytest randomly-seed value by passing
random_state to calibrate_z_phases and z_phase_calibration_workflow.

Choose seed value from several trial runs with a faster fit convergence
and shorter execution time.

Related to #6906

Remove test dependence on the randomly-seed value by passing `random_state`
argument to `calibrate_z_phases` and `z_phase_calibration_workflow`.

Choose seed value from several trial runs with a faster fit convergence
and shorter execution time.

Related to quantumlib#6906
@CirqBot CirqBot added the size: S 10< lines changed <50 label Jan 8, 2025
Copy link

codecov bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.86%. Comparing base (3e16e15) to head (b6b5afc).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6928   +/-   ##
=======================================
  Coverage   97.86%   97.86%           
=======================================
  Files        1084     1084           
  Lines       94309    94315    +6     
=======================================
+ Hits        92298    92305    +7     
+ Misses       2011     2010    -1     

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

@pavoljuhas pavoljuhas marked this pull request as ready for review January 8, 2025 17:47
@pavoljuhas pavoljuhas requested review from mrwojtek, vtomole and a team as code owners January 8, 2025 17:47
Copy link
Contributor

@mhucka mhucka left a comment

Choose a reason for hiding this comment

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

This is great idea!

LGTM.

@pavoljuhas pavoljuhas merged commit bb86fb1 into quantumlib:main Jan 8, 2025
37 checks passed
@pavoljuhas pavoljuhas deleted the freeze-seed-for-z-phase-cal-test branch January 8, 2025 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: S 10< lines changed <50
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants