-
Notifications
You must be signed in to change notification settings - Fork 186
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
Labels
Comments
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
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 thatstart+n*step
is equal to or beyondstop
. That is, the semi-open interval is defined as either[start, stop)
or(stop, start]
depending on whetherstep
is positive or negative, resp.The implementation support is in #1476 .
The text was updated successfully, but these errors were encountered: