pub unsafe extern "C" fn getNumAmps(qureg: Qureg) -> c_longlongExpand description
Returns the number of complex amplitudes in a state-vector \p qureg.
In distributed mode, this returns the total number of amplitudes in the full representation of \p qureg, and so may be larger than the number stored on each node. For the latter, refer to Qureg.numAmpsPerChunk.
@see
- getNumQubits()
@ingroup calc @param[in] qureg a state-vecotor @return the total number of complex amplitudes representing \p qureg. @throws invalidQuESTInputError()
- if \p qureg is a density matrix @author Tyson Jones