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

Function cpu_copyPauliStrSum

quest/src/cpu/cpu_config.cpp:453–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451
452
453void cpu_copyPauliStrSum(PauliStrSum out, PauliStr* strings, qcomp* coeffs) {
454
455 // serially copy data over to new heap memory
456 for (int i=0; i<out.numTerms; i++) {
457 out.strings[i] = strings[i];
458 out.coeffs[i] = coeffs[i];
459 }
460}

Callers 1

createPauliStrSumFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected