| 451 | |
| 452 | |
| 453 | void 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 | } |