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

Function assert_exponentMatchesTemplateParam

quest/src/core/errors.cpp:374–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374void assert_exponentMatchesTemplateParam(qcomp exponent, bool hasPower) {
375
376 // require hasPower==false => exponent==1
377 if (!hasPower && exponent != qcomp(1,0))
378 raiseInternalError("A CPU or GPU subroutine received a matrix exponent that was inconsistent with its compile-time template parameter, as dispatched by accelerator.cpp.");
379}
380
381void assert_exponentMatchesTemplateParam(qcomp exponent, bool hasPower, bool useRealPow) {
382

Calls 1

raiseInternalErrorFunction · 0.85

Tested by

no test coverage detected