pub unsafe extern "C" fn getProbAmp(
qureg: Qureg,
index: c_longlong,
) -> f64Expand description
Get the probability of a state-vector at an index in the full state vector.
@see
- getAmp()
- getDensityAmp()
- getRealAmp()
- getImagAmp()
- getNumAmps()
- getNumQubits()
@ingroup calc @param[in] qureg object representing a set of qubits @param[in] index index in state vector of probability amplitudes @return realElrealEl + imagElimagEl @throws invalidQuESTInputError()
- if \p qureg is a density matrix
- if \p index is outside [0, \f$2^{N}\f$) where \f$N = \f$ \p qureg.numQubitsRepresented @author Ania Brown