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

Changes for compatibility with upcoming export format #353

Merged
merged 11 commits into from
Apr 1, 2022

Conversation

HGSilveri
Copy link
Collaborator

  • Added new operators to OpSupport
  • Removed Variable.__len__() to allow for applications of numpy ufuncs without unpacking
  • Blocked reference to channels and measurement basis with variables

@HGSilveri HGSilveri requested a review from CdeTerra March 31, 2022 17:20
@@ -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:
Copy link
Collaborator

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.

Copy link
Collaborator Author

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().

@HGSilveri
Copy link
Collaborator Author

Thank you for the review @CdeTerra !

@HGSilveri HGSilveri merged commit c34dffb into develop Apr 1, 2022
@HGSilveri HGSilveri deleted the json-schema-compatibility branch April 1, 2022 15:37
@HGSilveri HGSilveri mentioned this pull request May 13, 2022
HGSilveri added a commit that referenced this pull request May 13, 2022
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)
HGSilveri added a commit that referenced this pull request May 13, 2022
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)
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.

2 participants