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

Function assert_mixedQuregIsStatevector

quest/src/core/errors.cpp:418–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416}
417
418void assert_mixedQuregIsStatevector(Qureg qureg) {
419
420 if (qureg.isDensityMatrix)
421 raiseInternalError("An internal function invoked by mixQureg() received a density matrix where a statevector was expected.");
422}
423
424void assert_mixedQuregIsDistributed(Qureg qureg) {
425

Callers 2

Calls 1

raiseInternalErrorFunction · 0.85

Tested by

no test coverage detected