Function getDensityAmp

Source
pub unsafe extern "C" fn getDensityAmp(
    qureg: Qureg,
    row: c_longlong,
    col: c_longlong,
) -> Complex
Expand description

Get an amplitude from a density matrix at a given row and column.

@see

  • getAmp()
  • getRealAmp()
  • getImagAmp()
  • getProbAmp()
  • getNumAmps()
  • getNumQubits()

@ingroup calc @param[in] qureg object representing a density matrix @param[in] row row of the desired amplitude in the density matrix @param[in] col column of the desired amplitude in the density matrix @return a Complex scalar representing the desired amplitude @throws invalidQuESTInputError()

  • if \p qureg is a state-vector,
  • if \p row or \p col are outside [0, \f$2^{N}\f$) where \f$N = \f$ \p qureg.numQubitsRepresented @author Tyson Jones