MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / assert_mixedQuregIsDensityMatrix

Function assert_mixedQuregIsDensityMatrix

quest/src/core/errors.cpp:412–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410 */
411
412void assert_mixedQuregIsDensityMatrix(Qureg qureg) {
413
414 if (!qureg.isDensityMatrix)
415 raiseInternalError("An internal function invoked by mixQureg() received a statevector where a density matrix was expected.");
416}
417
418void assert_mixedQuregIsStatevector(Qureg qureg) {
419

Calls 1

raiseInternalErrorFunction · 0.85

Tested by

no test coverage detected