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

Function validate_newCompMatrParams

quest/src/core/validation.cpp:2020–2034  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2018}
2019
2020void 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}
2035void validate_newDiagMatrParams(int numQubits, const char* caller) {
2036 validate_envIsInit(caller);
2037

Callers 3

createCompMatrFunction · 0.85
createInlineCompMatrFunction · 0.85

Calls 3

validate_envIsInitFunction · 0.85
getQuESTEnvFunction · 0.85

Tested by

no test coverage detected