| 372 | } |
| 373 | |
| 374 | void 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 | |
| 381 | void assert_exponentMatchesTemplateParam(qcomp exponent, bool hasPower, bool useRealPow) { |
| 382 |
no test coverage detected