You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
void getAmps(QubitRegister qureg, long long int startInd, long long int numAmps, REAL** reals, REAL**imags);
This mallocs two REAL lists (for the real and imaginary components) and populates them with amplitudes of the statevector in the given index range (startInd to startInd+numAmps).
In distributed mode, this involves a reduction.
Example use:
REAL *reals, *imags;
getAmps(qureg, 10, 500, &reals, &imags);
free(reals);
free(imags);
Alternatively, forcing the user to alloc (so that they may pass arrays) is ok too
The text was updated successfully, but these errors were encountered:
This mallocs two REAL lists (for the real and imaginary components) and populates them with amplitudes of the statevector in the given index range (startInd to startInd+numAmps).
In distributed mode, this involves a reduction.
Example use:
Alternatively, forcing the user to alloc (so that they may pass arrays) is ok too
The text was updated successfully, but these errors were encountered: