| 2018 | } |
| 2019 | |
| 2020 | void validate_newCompMatrParams(int numQubits, const char* caller) { |
| 2021 | validate_envIsInit(caller); |
| 2022 | |
| 2023 | // CompMatr can never be distributed nor multithreaded |
| 2024 | int useDistrib = 0; |
| 2025 | int useMultithread = 0; |
| 2026 | |
| 2027 | // CompMatr is always GPU accelerated whenever enabled by the environment |
| 2028 | bool useGpu = getQuESTEnv().isGpuAccelerated; |
| 2029 | |
| 2030 | // CompMatr stores 2^(2*numQubits) elems |
| 2031 | bool isDenseType = true; |
| 2032 | |
| 2033 | assertNewMatrixParamsAreValid(numQubits, useDistrib, useGpu, useMultithread, isDenseType, caller); |
| 2034 | } |
| 2035 | void validate_newDiagMatrParams(int numQubits, const char* caller) { |
| 2036 | validate_envIsInit(caller); |
| 2037 |
no test coverage detected