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

cudaq::range(start,stop,step) added to API #1483

Closed
1 task
schweitzpgi opened this issue Apr 5, 2024 · 0 comments · Fixed by #1505
Closed
1 task

cudaq::range(start,stop,step) added to API #1483

schweitzpgi opened this issue Apr 5, 2024 · 0 comments · Fixed by #1505
Labels
documentation Improvements or additions to documentation RFC-approved

Comments

@schweitzpgi
Copy link
Collaborator

A new function was added to the cudaq API to generate monotonic sequences, either increasing or decreasing. This function generates a sequence of n integral values in the set { start, start+step, start+2*step, ... start+(n-1)*step } such that start+n*step is equal to or beyond stop. That is, the semi-open interval is defined as either [start, stop) or (stop, start] depending on whether step is positive or negative, resp.

The implementation support is in #1476 .

  • Add to documentation.
@schweitzpgi schweitzpgi added the RFC Request for Comments label Apr 5, 2024
@bettinaheim bettinaheim added RFC-approved and removed RFC Request for Comments labels Apr 5, 2024
@schweitzpgi schweitzpgi added the documentation Improvements or additions to documentation label Apr 8, 2024
schweitzpgi added a commit to schweitzpgi/cuda-quantum that referenced this issue Apr 12, 2024
schweitzpgi added a commit to schweitzpgi/cuda-quantum that referenced this issue Apr 12, 2024
Closes NVIDIA#1483

Add both signatures.
schweitzpgi added a commit to schweitzpgi/cuda-quantum that referenced this issue Apr 17, 2024
Closes NVIDIA#1483

Add both signatures.
schweitzpgi added a commit that referenced this issue Apr 17, 2024
* [docs] Add cudaq::range function.

Closes #1483

* Add both signatures.

* Add the new size_t overload.

* Prune out the size_t overload.
bettinaheim pushed a commit that referenced this issue Apr 30, 2024
* [docs] Add cudaq::range function.

Closes #1483

* Add both signatures.

* Add the new size_t overload.

* Prune out the size_t overload.
MarkusPfundstein pushed a commit to fermioniq/cuda-quantum that referenced this issue Sep 23, 2024
* [docs] Add cudaq::range function.

Closes NVIDIA#1483

* Add both signatures.

* Add the new size_t overload.

* Prune out the size_t overload.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation RFC-approved
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants