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

Configurable paths, ppl; prevent log2(0) #505

Merged
merged 1 commit into from
Sep 20, 2018

Conversation

ysalatheZI
Copy link
Contributor

@ysalatheZI ysalatheZI commented Sep 20, 2018

@AdriaanRol: here are some small improvements of the precompensation models, which I made for my most recent simulations. The parameter ppl is now controlled via the wrapper function exponential_decay_correction_hw_friendly. There should be no change of the behavior of the functions as long as the default settings ppl = 2 and paths =8 are used.

In addition, I prevent a warning by avoiding taking the log2 of zero.

Make the parameters ppl and paths configurable via the wrapper function exponential_decay_correction_hw_friendly. Prevent taking the logarithm of 0. If the coefficient is zero, then the bit shift (bshift) does not matter (can be set to zero).
Copy link
Contributor

@AdriaanRol AdriaanRol left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for the pull request.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 3879

  • 1 of 5 (20.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.001%) to 34.863%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pycqed/measurement/kernel_functions_ZI.py 1 5 20.0%
Totals Coverage Status
Change from base Build 3776: -0.001%
Covered Lines: 20119
Relevant Lines: 57709

💛 - Coveralls

@AdriaanRol AdriaanRol merged commit a090839 into master Sep 20, 2018
@AdriaanRol AdriaanRol deleted the precomp_configurable_ppl branch September 20, 2018 16:11
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.

None yet

3 participants