Function initDebugState

Source
pub unsafe extern "C" fn initDebugState(qureg: Qureg)
Expand description

Initialises \p qureg to be in the un-normalised, non-physical state with with \f$n\f$-th complex amplitude given by \f$2n/10 + i(2n+1)/10\f$.

This is used internally for debugging and testing.

@ingroup debug @param[in,out] qureg the register to have its amplitudes overwritten @author Ania Brown @author Tyson Jones (doc)