-
Notifications
You must be signed in to change notification settings - Fork 65
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
Changes for compatibility with upcoming export format #353
Conversation
@@ -1263,11 +1249,12 @@ def _target( | |||
self._last_target[channel] = tf | |||
self._add_to_schedule(channel, _TimeSlot("target", ti, tf, qubits_set)) | |||
|
|||
def _delay(self, duration: int, channel: str) -> None: | |||
def _delay(self, duration: Union[int, Parametrized], channel: str) -> None: |
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.
It seems surprising to me to allow parametrized values here, since the function not decorated with _store
.
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.
_store
actually does not block the call to the decorated function, it simply stores it. So, in fact, the parametrized values can reach _delay()
.
Thank you for the review @CdeTerra ! |
Main changes: - 3921795 Remove string variables (#365) - b23ff22 Splitting `pulser` into `pulser-core` and `pulser-simulation`. (#362) - 4f684f3 Address qubits with indices (#356) - f2ee5e2 Make evaluation times uniform including final time (#330) - c34dffb Changes for compatibility with upcoming export format (#353) - 3ac1f66 Sequence sampler (#345)
Main changes: - 3921795 Remove string variables (#365) - b23ff22 Splitting `pulser` into `pulser-core` and `pulser-simulation`. (#362) - 4f684f3 Address qubits with indices (#356) - f2ee5e2 Make evaluation times uniform including final time (#330) - c34dffb Changes for compatibility with upcoming export format (#353) - 3ac1f66 Sequence sampler (#345)
OpSupport
Variable.__len__()
to allow for applications of numpy ufuncs without unpacking