-
Notifications
You must be signed in to change notification settings - Fork 14
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
Split RX from RXY #1050
Split RX from RXY #1050
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 0.2 #1050 +/- ##
==========================================
- Coverage 52.34% 52.10% -0.24%
==========================================
Files 63 63
Lines 2820 2806 -14
==========================================
- Hits 1476 1462 -14
Misses 1344 1344
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
I was discussing with @stavros11 about this yesterday. What about just |
To be fair, I'm not even completely sure that it should be a native. I see it better as a compilation rule, since the native should just store the calibrated pulse. However, by now I'm entering more and more in feature freeze mode. If there is a sufficient agreement about the above statement, it will become an issue for 0.3, and that's it (this "parametrized pi-pulse" is there since months, and I won't change the last day before release). For me, all names are good enough, just tell me your favorite (one for which there is some consensus), and I can change it. |
I would say
I actually think the proper solution is this, have only the Generally, I would only call natives what we are actually calibrating. If we are calibrating the RX90 directly I would then call it native, but unfortunately I don't think we have support for that in 0.2, native kinds are fixed. If we need to further manipulations to get other gates, I would do them outside the |
Ah, wait, maybe that name is the one already used: |
I perfectly agree with you, but I'd also like to save whichever user the gymnastics you mentioned. |
There is no strong reason why single qubit gates should be single pulses or applied on individual channels. Let's just leave it to users' responsibility. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @alecandido, looks good to me.
|
||
def create_sequence(self) -> PulseSequence: | ||
return deepcopy(self) | ||
``theta`` will be the angle of the rotation, while ``phi`` the angle that the rotation axis forms with x axis. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In principle, we could leave the Args:
structure in the docstring here, as it was before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we could.
This is something I'm doing on my own: frequently the Args:
(and equivalents) contain redundant information (essentially repeating the variable names), and redundant type hints.
It was not the case of this docstring in particular, as it is essentially unchanged. But I'm trying to keep the style more discursive.
However, I'm not pushing to enforce it. Not now, at least.
@andrea-pasquale is it fine for you like this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, fine by me. Just a tiny suggestion.
I'm merging as soon as the CI will pass |
Unfortunately, the
RXY
name is non-standard, but I was lacking a better one.Any suggestion? @stavros11 @andrea-pasquale
restore some validation?