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

Function createCachedFullStateDiagMatrs

tests/utils/cache.cpp:177–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175 */
176
177void createCachedFullStateDiagMatrs() {
178
179 // must not be called twice
180 DEMAND( matrices.empty() );
181
182 // only add supported-deployment matrices to the cache
183 for (auto [label, mpi, gpu, omp] : getSupportedDeployments())
184 matrices[label] = createCustomFullStateDiagMatr(getNumCachedQubits(), mpi, gpu, omp);
185}
186
187void destroyCachedFullStateDiagMatrs() {
188

Callers 1

mainFunction · 0.85

Calls 3

getSupportedDeploymentsFunction · 0.85
getNumCachedQubitsFunction · 0.85

Tested by

no test coverage detected