| 1554 | } |
| 1555 | |
| 1556 | void assertQuregDeploysEnabledByEnv(int isDistrib, int isGpuAccel, int isMultithread, QuESTEnv env, const char* caller) { |
| 1557 | |
| 1558 | // qureg cannot deploy to backend not already enabled by the environment |
| 1559 | if (!env.isDistributed) |
| 1560 | assertThat(isDistrib == 0 || isDistrib == modeflag::USE_AUTO, report::NEW_DISTRIB_QUREG_IN_NON_DISTRIB_ENV, caller); |
| 1561 | if (!env.isGpuAccelerated) |
| 1562 | assertThat(isGpuAccel == 0 || isGpuAccel == modeflag::USE_AUTO, report::NEW_GPU_QUREG_IN_NON_GPU_ACCEL_ENV, caller); |
| 1563 | if (!env.isMultithreaded) |
| 1564 | assertThat(isMultithread == 0 || isMultithread == modeflag::USE_AUTO, report::NEW_MULTITHREAD_QUREG_IN_NON_MULTITHREAD_ENV, caller); |
| 1565 | } |
| 1566 | |
| 1567 | void assertQuregTotalNumAmpsDontExceedMaxIndex(int numQubits, int isDensMatr, const char* caller) { |
| 1568 |
no test coverage detected