Function initZeroState

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

Initialise \p qureg into the zero state.

If \p qureg is a state-vector of \f$N\f$ qubits, it is modified to state \f$ {| 0 \rangle}^{\otimes N} \f$. \n If \p qureg is a density matrix of \f$ N \f$ qubits, it is modified to state \f$ {| 0 \rangle\langle 0 |}^{\otimes N} \f$

@ingroup init @param[in,out] qureg the object representing the set of all qubits to initialise @author Ania Brown (state-vector) @author Tyson Jones (density matrix, doc)