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

In VZ signal experiment sweep phase as absolute, instead of relative to match the non-signal experiment #1017

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

hay-k
Copy link
Contributor

@hay-k hay-k commented Oct 18, 2024

resolves #1004

Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.47%. Comparing base (bb83a11) to head (7d6af84).
Report is 19 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1017      +/-   ##
==========================================
+ Coverage   97.46%   97.47%   +0.01%     
==========================================
  Files         123      123              
  Lines        9722     9722              
==========================================
+ Hits         9476     9477       +1     
+ Misses        246      245       -1     
Flag Coverage Δ
unittests 97.47% <ø> (+0.01%) ⬆️

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

Files with missing lines Coverage Δ
...s/two_qubit_interaction/virtual_z_phases_signal.py 100.00% <ø> (ø)

... and 2 files with indirect coverage changes

Copy link
Contributor

@igres26 igres26 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 to me. Both should be the same. Thanks!

@Edoardo-Pedicillo Edoardo-Pedicillo added this to the Qibocal 0.1.1 milestone Oct 18, 2024
@igres26
Copy link
Contributor

igres26 commented Oct 18, 2024

Actually, could we do it the other way around? Change the the other routine to match with the signal one? The point of this is that after setting the virtual phase, you want to see both signals starting at the same point.

@Edoardo-Pedicillo Edoardo-Pedicillo dismissed their stale review October 18, 2024 12:43

not ready to be merged

@Edoardo-Pedicillo
Copy link
Contributor

Actually, could we do it the other way around? Change the the other routine to match with the signal one? The point of this is that after setting the virtual phase, you want to see both signals starting at the same point.

I prefer the current implementation (just theta) because it does not hide non-documented post-processing.
I am also not sure the sign is correct: if theta = 0, I am expecting the correction phase to be the one in the platform and
not the opposite.

@andrea-pasquale
Copy link
Contributor

Actually, could we do it the other way around? Change the the other routine to match with the signal one? The point of this is that after setting the virtual phase, you want to see both signals starting at the same point.

I prefer the current implementation (just theta) because it does not hide non-documented post-processing. I am also not sure the sign is correct: if theta = 0, I am expecting the correction phase to be the one in the platform and not the opposite.

Indeed, to be more clear we can draw a vertical line where the virtual phase is supposed to be.

@igres26
Copy link
Contributor

igres26 commented Oct 22, 2024

Okay, the vertical line might add clarity. I would also encourage to keep the virtual phases modulo 2\pi then, as otherwise they might not appear on the graph.

@hay-k
Copy link
Contributor Author

hay-k commented Oct 22, 2024

Somehow visualizing the calculated angles (be it a vertical line, or other means) sounds good. Using angles modulo 2*pi if it is not the case already - completely agree. Since these are irrelevant to the problem that this PR is addressing, let's create separate issue(s) for these requests and address in them in a separate PR.

@Edoardo-Pedicillo Edoardo-Pedicillo added this pull request to the merge queue Oct 22, 2024
Merged via the queue into main with commit 03e65d0 Oct 22, 2024
21 checks passed
@Edoardo-Pedicillo Edoardo-Pedicillo deleted the vz_fix branch October 22, 2024 06:44
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.

Results from virtual_z_phases and virtual_z_phases_signal do not match
4 participants