NVIDIA/cuda-quantum

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

schweitzpgi opened this issue · 0 comments

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.