pub unsafe extern "C" fn createCloneQureg(
qureg: Qureg,
env: QuESTEnv,
) -> QuregExpand description
Create a new ::Qureg which is an exact clone of the passed qureg, which can be either a state-vector or a density matrix.
The returned \ref Qureg will have the same dimensions as the passed \p qureg and begin in an identical quantum state. This must be destroyed by the user later with destroyQureg().
@see
- destroyQureg()
- cloneQureg()
- createQureg()
- createDensityQureg()
@ingroup type @returns an object representing the set of qubits @param[in] qureg an existing \ref Qureg to be cloned @param[in] env the ::QuESTEnv @author Tyson Jones